Yield-curve recession probability
The New York Fed's probit of a US recession twelve months ahead from the spread of the 10-year Treasury yield over the 3-month bill.
- Model id
macro.recession_probability, version 1- Domain
- Macroeconomics
- Evidence
- practitioner
- Cost class
- instant: A closed-form calculation; a hosted run may take up to 2 seconds.
Formula
Where
- The probability of a recession twelve months ahead
probability - The standard normal cumulative distribution
- The term spread, in percentage points
spread - The ten-year Treasury yield
ten_year_yield - The three-month Treasury bill's bond-equivalent yield
bill_bond_equivalent - The bill's rate when it is quoted on a discount basis
three_month_yield
Each symbol's field is named beside it; the inputs and outputs, with their units and bounds, are under Variables, and the citations give each formula's source.
Variables
Rates, returns and yields are decimals: 0.05 is five percent. Bounds in brackets include their end; in parentheses they exclude it.
Inputs
| Name | Unit | Bounds | Description |
|---|---|---|---|
Ten year yieldten_year_yieldrate · [-0.05, 0.5] | rate | [-0.05, 0.5] | The 10-year Treasury yield, a monthly average |
Three month yieldthree_month_yieldrate · [-0.05, 0.5] | rate | [-0.05, 0.5] | The 3-month Treasury bill rate, a monthly average |
Bill basisbill_basistext | text | How the bill rate is quoted: 'bond_equivalent' (an investment yield, as Treasury's par curve gives it) or 'discount' (as H.15 publishes secondary-market bills) |
Outputs
| Name | Unit | Bounds | Description |
|---|---|---|---|
Probabilityprobabilityprobability · [0, 1] | probability | [0, 1] | The probability of a recession twelve months ahead |
Spreadspreadrate · [-1, 1] | rate | [-1, 1] | The 10-year yield less the bond-equivalent bill rate |
Bill bond equivalentbill_bond_equivalentrate · [-1, 1] | rate | [-1, 1] | The bill rate on a bond-equivalent basis |
Calculator
Run the model on your own inputs, starting from its example. Rates are decimals: 0.05 is five percent. The run goes to the pyeconomics API on this site: your values travel only in the request, and nothing is stored.
Loading the calculator…
Worked example
An inverted curve, as in May 2023.
Example inverted_curve. Inputs:
{
"bill_basis": "bond_equivalent",
"ten_year_yield": 0.0357,
"three_month_yield": 0.0528
}Outputs:
{
"bill_bond_equivalent": 0.0528,
"probability": 0.7085418807011454,
"spread": -0.017099999999999997
}Assumptions
- The coefficients are the New York Fed's, fixed; they apply to the spread in percentage points, so the decimal spread is converted with decimal_to_percent.
- Both yields are monthly averages. The New York Fed uses the 10-year constant-maturity yield and the 3-month secondary-market bill on a bond-equivalent basis; Treasury's par curve gives the 3-month rate as an investment yield already.
- Profile: default binds the monthly averages of Treasury's 10-year and 3-month par yields (the last complete month by the date).
Limitations
- A probability from one spread, not a forecast of the economy: the model was fitted to 1959-2009 and says nothing about why a curve inverts.
- The default profile's 3-month rate is Treasury's constant-maturity yield, close to but not the New York Fed's converted secondary-market rate; pass the H.15 discount rate with bill_basis='discount' to reproduce its file.
Evidence
Status: practitioner. A widely used rule of thumb or convention.
Every model declares one status: standard (textbook consensus), practitioner (a widely used convention), contested (under active debate), rejected (failed out of sample) or historical (a superseded methodology).
Syllabus
The 2027 CFA® Program's topic areas this model relates to, as factual tags. Each links to CFA Institute's page for its level; pyeconomics holds none of the curriculum's text.
Data
This model can read its data for you: each bound field names a data series, and the sources listed can fill it, in the order they are tried. This website reads only the sources whose terms let it serve their data (marked "hosted"); every source is available when you run pyeconomics on your own computer.
| Field | Concept | Read as | Sources (licence class; hosted) |
|---|---|---|---|
ten_year_yield | Treasury 10-year yieldus.treasury.nominal_10y | last observation on or before the date; real time: as published by the datetransform convert(to=monthly,method=mean) |
|
three_month_yield | Treasury 3-month yieldus.treasury.nominal_3m | last observation on or before the date; real time: as published by the datetransform convert(to=monthly,method=mean) |
|
Citations
- Estrella, A. and Trubin, M. R. (2006). The Yield Curve as a Leading Indicator: Some Practical Issues. Current Issues in Economics and Finance, 12(5). Federal Reserve Bank of New York. https://www.newyorkfed.org/research/current_issues/ci12-5.html (The probit of a recession twelve months ahead on the spread, and footnote 4's bond-equivalent conversion of the bill rate)
- Estrella, A. and Mishkin, F. S. (1998). Predicting U.S. Recessions: Financial Variables as Leading Indicators. Review of Economics and Statistics, 80(1), 45-61. doi:10.1162/003465398557320 (The term spread as the leading probit predictor of recessions)
- Federal Reserve Bank of New York. The Yield Curve as a Leading Indicator: probability of US recession predicted by the Treasury spread. https://www.newyorkfed.org/research/capital_markets/ycfaq (The data file allmonth.xls and its chart notes: alpha -0.5333 and beta -0.6330, estimated over 1959 to 2009)
Changelog
- Version 1: First version.
Use it elsewhere
- Documentation
- The model's reference page
- REST API
GET or POST /v1/models/macro.recession_probability/run- MCP tool
run_modelwith the model's id,macro.recession_probability. Connect an assistant- Command line
pyeconomics models run macro.recession_probability --help
The worked example, from Python and from the command line:
import pyeconomics
inputs = {
"bill_basis": "bond_equivalent",
"ten_year_yield": 0.0357,
"three_month_yield": 0.0528,
}
result = pyeconomics.run("macro.recession_probability", inputs)
print(result.to_json())
pyeconomics models run macro.recession_probability --inputs - <<'JSON'
{
"bill_basis": "bond_equivalent",
"ten_year_yield": 0.0357,
"three_month_yield": 0.0528
}
JSON