iizy's picture
docs: strip Figshare DOI refs (account disabled, in support review)
b132a5d verified
|
Raw
History Blame Contribute Delete
11.8 kB

A newer version of the Gradio SDK is available: 6.27.0

Upgrade
metadata
title: US Treasury Yield Curve Spread
emoji: πŸ“‰
colorFrom: purple
colorTo: indigo
sdk: gradio
sdk_version: 4.44.0
python_version: '3.10'
app_file: app.py
pinned: true
license: cc-by-4.0
short_description: 2Y vs 10Y Treasury β€” recession indicator.
datasets:
  - iizy/calcfi-open-data
tags:
  - finance
  - treasury
  - yield-curve
  - recession
  - federal-reserve
  - data-viz
  - open-data
  - gradio

US Treasury Yield Curve Spread

Figshare DOI Zenodo DOI CC BY 4.0

Visualize the 2-year vs 10-year Treasury yield spread alongside the Federal Funds Rate. When the 10Y drops below the 2Y, the curve inverts β€” historically a leading indicator of US recessions with a 12-24 month lead time.

Why these series matter

The 2s/10s yield curve has inverted before every US recession since 1955, with a single false signal in the mid-1960s. The inversion itself is not the cause; it is the bond market pricing in expected Fed rate cuts in response to slowing growth. The lead time from inversion to recession averages 14 months but has ranged from 6 to 24 months. Pair this with the Federal Funds Rate to see how Fed policy itself drives the front end of the curve.

A library of free, primary-source-cited financial calculators that use these macro indicators as inputs is available at calcfi.app.

Methodology

No smoothing, no imputation, no seasonal adjustment. Each observation passes through verbatim from the primary source. Provenance headers are preserved in the underlying CalcFi Open Data dataset.

Data source

The Space loads data live from the CalcFi Open Data dataset on Hugging Face: iizy/calcfi-open-data.

The same dataset is mirrored with permanent DOIs at:

Related Spaces

Part of a small collection of CalcFi Open Data interactive explorers:

Citation & DOIs

This Space visualizes data from the CalcFi Open Data project. Source rate series are archived under CC-BY 4.0 across multiple persistent registries.

2026-06-06 snapshot DOIs (Zenodo community):

Multi-registry mirror:

Discovery surfaces:

Related work

Other HF Spaces in this set (10 total):

Long-form Observable notebooks built on the same dataset:

CodePen calculator demos (vanilla JS, MIT) β€” view all 6 in collection:

Static dataset documentation:

Author profiles (Person entity graph):

Live tools at calcfi.app: 300+ free personal-finance calculators built on the same primary-source data layer (FRED, BLS, Freddie Mac, US Treasury).

Citation

Salmisto, J. (2026). CalcFi Open Data: 34 Free CC-BY Financial and Macro Time Series Mirrored from Primary Sources [Dataset]. Figshare. https://doi.org/10.6084/m9.figshare.32332290

ORCID: 0009-0000-0916-8684


Companion surfaces

Built by Jere Salmisto β€” founder of calcfi.app.


Distribution mesh β€” also available on

Static landing pages (8 mirrors):

Permanent DOIs (5):

Packages: PyPI calcfidata Β· npm calcfidata Β· Anaconda Β· Go pkg Β· Julia Β· dbt Β· Read the Docs

Data catalogs / warehouses: BigQuery Public Β· data.world Β· DoltHub Β· MotherDuck

Repos: GitLab Β· GitHub Β· Codeberg

Companion website: calcfi.app β€” free personal-finance calculators built on this dataset.

Author: Jere Salmisto Β· ORCID 0009-0000-0916-8684

License: CC BY 4.0 (data) Β· MIT (code)