Expectations-augmented Phillips curve
Inflation less expected inflation regressed on the unemployment gap, with optional supply-shock controls and Newey-West errors: the slope, intercept, standard errors and R-squared.
- Model id
macro.phillips_curve, version 1- Domain
- Macroeconomics
- Evidence
- contested
- Cost class
- instant: A closed-form calculation; a hosted run may take up to 2 seconds.
Formula
Where
- Inflation in period t
inflation - Expected inflation in period t
expected_inflation - The intercept
intercept - The slope: the response of the inflation surprise to the unemployment gap
slope - The unemployment rate in period t
unemployment - The natural rate of unemployment in period t
natural_unemployment - The coefficients on the supply shocks
control_coefficients - The supply shocks in period t
supply_shocks - The residual in period t
- The Newey-West covariance matrix of the coefficients
- The Newey-West estimate of the long-run covariance of the regressors times the residuals
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 |
|---|---|---|---|
Covariancecovariancetext | text | Standard errors: 'newey_west' (heteroskedasticity and autocorrelation consistent), 'hc1' (heteroskedasticity consistent) or 'classical' | |
Lagslagscount · [0, 100] | count | [0, 100] | Newey-West lags; left out, Newey and West's rule floor(4 (n/100)^(2/9)) |
Inflationinflationrate (array) · length min 3, max 1000; each [-0.2, 0.5] | rate (array) | length min 3, max 1000; each [-0.2, 0.5] | Inflation each period |
Expected inflationexpected_inflationrate (array) · length min 3, max 1000; each [-0.2, 0.5] | rate (array) | length min 3, max 1000; each [-0.2, 0.5] | Inflation expected for each period |
Unemploymentunemploymentrate (array) · length min 3, max 1000; each [0, 0.3] | rate (array) | length min 3, max 1000; each [0, 0.3] | The unemployment rate each period |
Natural unemploymentnatural_unemploymentrate (array) · length min 3, max 1000; each [0, 0.3] | rate (array) | length min 3, max 1000; each [0, 0.3] | The natural rate of unemployment each period |
Supply shockssupply_shocksratio (array) (array) · length min 1, max 4; each length min 3, max 1000; each [-10, 10] | ratio (array) (array) | length min 1, max 4; each length min 3, max 1000; each [-10, 10] | Up to four supply-shock controls, one series each (relative import price inflation, say), as extra regressors |
Outputs
| Name | Unit | Bounds | Description |
|---|---|---|---|
Slopesloperatio · [-1e+09, 1e+09] | ratio | [-1e+09, 1e+09] | The coefficient on the gap |
Interceptinterceptratio · [-1e+09, 1e+09] | ratio | [-1e+09, 1e+09] | The constant |
Slope standard errorslope_standard_errorratio · [0, 1e+09] | ratio | [0, 1e+09] | The slope's standard error |
Intercept standard errorintercept_standard_errorratio · [0, 1e+09] | ratio | [0, 1e+09] | The intercept's standard error |
Slope t statisticslope_t_statisticratio · [-1e+09, 1e+09] | ratio | [-1e+09, 1e+09] | The slope over its standard error; None for a fit exact to rounding |
R squaredr_squaredratio · [0, 1] | ratio | [0, 1] | R-squared; None when the dependent variable does not vary |
Observationsobservationscount · [3, 1000] | count | [3, 1000] | Observations in the regression |
HAC lagshac_lagscount · [0, 100] | count | [0, 100] | Newey-West lags used; 0 for the others |
Control coefficientscontrol_coefficientsratio (array) · length max 4; each [-1e+09, 1e+09] | ratio (array) | length max 4; each [-1e+09, 1e+09] | The coefficient on each supply-shock control, in order |
Control standard errorscontrol_standard_errorsratio (array) · length max 4; each [0, 1e+09] | ratio (array) | length max 4; each [0, 1e+09] | Their standard errors |
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.
Live data runs on your own computer only
This model reads SPF median ten-year PCE inflation. Its source, Federal Reserve Bank of Philadelphia, lets pyeconomics read the data on your own computer but not serve them from this website.
Here, enter your own values, or bring them as a file with "Use my own data". To run this page with every profile's live data, install the local app and start it: pip install "pyeconomics[app]" then pyeconomics serve.
Loading the calculator…
Worked example
Example eight_quarters. Inputs:
{
"covariance": "newey_west",
"expected_inflation": [0.021, 0.021, 0.022, 0.022, 0.022, 0.021, 0.021, 0.021],
"inflation": [0.031, 0.034, 0.038, 0.035, 0.029, 0.026, 0.024, 0.023],
"lags": null,
"natural_unemployment": [0.044, 0.044, 0.044, 0.044, 0.044, 0.044, 0.043, 0.043],
"supply_shocks": null,
"unemployment": [0.041, 0.038, 0.036, 0.037, 0.039, 0.041, 0.042, 0.043]
}Outputs:
{
"control_coefficients": [],
"control_standard_errors": [],
"hac_lags": 2,
"intercept": 0.0017076923076923126,
"intercept_standard_error": 0.0008455133907878389,
"observations": 8,
"r_squared": 0.8604521235321506,
"slope": -1.6769230769230767,
"slope_standard_error": 0.07104157217756105,
"slope_t_statistic": -23.604813710087683
}Assumptions
- Expected inflation is given (a survey, or a forecast), not estimated; the natural rate is given each period.
- The coefficients are least squares; Newey-West errors use Bartlett weights with no small-sample correction and, with no lag given, floor(4 (n/100)^(2/9)) lags.
- Profiles: default binds 60 quarters of core PCE inflation over four quarters (the quarter's last month), the SPF's median 10-year PCE inflation expectation, the unemployment rate (the quarter's last month) and CBO's noncyclical rate; us_cpi binds 120 quarters of CPI inflation with the SPF's 10-year CPI expectation.
Limitations
- The curve's slope and stability are disputed: estimates flattened after the 1990s and differ by sample and measure. Read the slope as a summary of the sample, not a structural constant.
- Long-run expectations stand in for expected inflation in the profiles; with year-over-year inflation the errors overlap, which the Newey-West errors allow for.
- A monthly series is read at each quarter's last month: a quarter's average is missing when the source left a month out (BLS published no October 2025 household survey), and a window never takes a gap.
- An unemployment gap that barely varies leaves the slope unidentified: DomainError.
- In hosted mode, where FRED is refused, the originators serve too short a history for the default windows (BLS about three years, CBO's potential and natural rate from 2021), so the bind raises: supply the series instead.
Evidence
Status: contested. Under active academic or policy debate.
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) |
|---|---|---|---|
inflation | Core PCE inflation, year over yearus.inflation.pce_core.yoy | the last 60 observations on or before the date; real time: as published by the datetransform convert(to=quarterly,method=last) |
|
expected_inflation | SPF median ten-year PCE inflationus.spf.pce.median_10y | the last 60 observations on or before the date; real time: as published by the date |
|
unemployment | Unemployment rateus.unemployment.rate | the last 60 observations on or before the date; real time: as published by the datetransform convert(to=quarterly,method=last) |
|
natural_unemployment | Noncyclical rate of unemploymentus.unemployment.noncyclical_rate | the last 60 observations on or before the date; real time: as published by the date |
|
| Field | Concept | Read as | Sources (licence class; hosted) |
|---|---|---|---|
inflation | CPI inflation, year over yearus.inflation.cpi.yoy | the last 120 observations on or before the date; real time: as published by the datetransform convert(to=quarterly,method=last) |
|
expected_inflation | SPF median ten-year CPI inflationus.spf.cpi.median_10y | the last 120 observations on or before the date; real time: as published by the date |
|
unemployment | Unemployment rateus.unemployment.rate | the last 120 observations on or before the date; real time: as published by the datetransform convert(to=quarterly,method=last) |
|
natural_unemployment | Noncyclical rate of unemploymentus.unemployment.noncyclical_rate | the last 120 observations on or before the date; real time: as published by the date |
|
Citations
- Phelps, E. S. (1967). Phillips Curves, Expectations of Inflation and Optimal Unemployment over Time. Economica, 34(135), 254-281. doi:10.2307/2552025 (The expectations-augmented curve)
- Friedman, M. (1968). The Role of Monetary Policy. American Economic Review, 58(1), 1-17. https://www.aeaweb.org/aer/top20/58.1.1-17.pdf (The natural rate of unemployment and expected inflation)
- Gordon, R. J. (1982). Inflation, Flexible Exchange Rates, and the Natural Rate of Unemployment. In M. N. Baily (ed.), Workers, Jobs, and Inflation, pp. 89-158. Brookings Institution. https://www.nber.org/papers/w0708 (The triangle model's supply-shock terms)
- Newey, W. K. and West, K. D. (1987). A simple, positive semi-definite, heteroskedasticity and autocorrelation consistent covariance matrix. Econometrica, 55(3), 703-708. doi:10.2307/1913610 (Bartlett weights 1 - j / (L + 1))
Changelog
- Version 1: First version.
Use it elsewhere
- Documentation
- The model's reference page
- REST API
GET or POST /v1/models/macro.phillips_curve/run- MCP tool
run_modelwith the model's id,macro.phillips_curve. Connect an assistant- Command line
pyeconomics models run macro.phillips_curve --help
The worked example, from Python and from the command line:
import pyeconomics
inputs = {
"covariance": "newey_west",
"expected_inflation": [0.021, 0.021, 0.022, 0.022, 0.022, 0.021, 0.021, 0.021],
"inflation": [0.031, 0.034, 0.038, 0.035, 0.029, 0.026, 0.024, 0.023],
"lags": None,
"natural_unemployment": [0.044, 0.044, 0.044, 0.044, 0.044, 0.044, 0.043, 0.043],
"supply_shocks": None,
"unemployment": [0.041, 0.038, 0.036, 0.037, 0.039, 0.041, 0.042, 0.043],
}
result = pyeconomics.run("macro.phillips_curve", inputs)
print(result.to_json())
pyeconomics models run macro.phillips_curve --inputs - <<'JSON'
{
"covariance": "newey_west",
"expected_inflation": [0.021, 0.021, 0.022, 0.022, 0.022, 0.021, 0.021, 0.021],
"inflation": [0.031, 0.034, 0.038, 0.035, 0.029, 0.026, 0.024, 0.023],
"lags": null,
"natural_unemployment": [0.044, 0.044, 0.044, 0.044, 0.044, 0.044, 0.043, 0.043],
"supply_shocks": null,
"unemployment": [0.041, 0.038, 0.036, 0.037, 0.039, 0.041, 0.042, 0.043]
}
JSON