Skip to content

Macroeconomics

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

πt−πte=α+β (ut−ut∗)+γ′zt+et\pi_t - \pi^e_t = \alpha + \beta\,(u_t - u^*_t) + \gamma' z_t + e_tβ^,α^ by least squares\hat\beta, \hat\alpha \text{ by least squares}VNW=(X′X)−1S^(X′X)−1V_{\mathrm{NW}} = (X'X)^{-1} \hat S (X'X)^{-1}

Where

πt\pi_t
Inflation in period t inflation
πte\pi^e_t
Expected inflation in period t expected_inflation
α\alpha
The intercept intercept
β\beta
The slope: the response of the inflation surprise to the unemployment gap slope
utu_t
The unemployment rate in period t unemployment
ut∗u^*_t
The natural rate of unemployment in period t natural_unemployment
γ\gamma
The coefficients on the supply shocks control_coefficients
ztz_t
The supply shocks in period t supply_shocks
ete_t
The residual in period t
VNWV_{\mathrm{NW}}
The Newey-West covariance matrix of the coefficients
S^\hat S
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

Inputs
NameDescription
CovariancecovariancetextStandard errors: 'newey_west' (heteroskedasticity and autocorrelation consistent), 'hc1' (heteroskedasticity consistent) or 'classical'
Lagslagscount · [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]Inflation each period
Expected inflationexpected_inflationrate (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]The unemployment rate each period
Natural unemploymentnatural_unemploymentrate (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]Up to four supply-shock controls, one series each (relative import price inflation, say), as extra regressors

Outputs

Outputs
NameDescription
Slopesloperatio · [-1e+09, 1e+09]The coefficient on the gap
Interceptinterceptratio · [-1e+09, 1e+09]The constant
Slope standard errorslope_standard_errorratio · [0, 1e+09]The slope's standard error
Intercept standard errorintercept_standard_errorratio · [0, 1e+09]The intercept's standard error
Slope t statisticslope_t_statisticratio · [-1e+09, 1e+09]The slope over its standard error; None for a fit exact to rounding
R squaredr_squaredratio · [0, 1]R-squared; None when the dependent variable does not vary
Observationsobservationscount · [3, 1000]Observations in the regression
HAC lagshac_lagscount · [0, 100]Newey-West lags used; 0 for the others
Control coefficientscontrol_coefficientsratio (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]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.

Profile: Default
FieldConceptRead asSources (licence class; hosted)
inflationCore PCE inflation, year over yearus.inflation.pce_core.yoythe last 60 observations on or before the date; real time: as published by the datetransform convert(to=quarterly,method=last)
  • US Bureau of Economic Analysis (hosted-safe; hosted)
  • FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted)
expected_inflationSPF median ten-year PCE inflationus.spf.pce.median_10ythe last 60 observations on or before the date; real time: as published by the date
  • Federal Reserve Bank of Philadelphia (library-only; not hosted)
unemploymentUnemployment rateus.unemployment.ratethe last 60 observations on or before the date; real time: as published by the datetransform convert(to=quarterly,method=last)
  • US Bureau of Labor Statistics (hosted-safe; hosted)
  • FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted)
natural_unemploymentNoncyclical rate of unemploymentus.unemployment.noncyclical_ratethe last 60 observations on or before the date; real time: as published by the date
  • Congressional Budget Office (hosted-safe; hosted)
  • FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted)
Profile: US CPI inflation (us_cpi)
FieldConceptRead asSources (licence class; hosted)
inflationCPI inflation, year over yearus.inflation.cpi.yoythe last 120 observations on or before the date; real time: as published by the datetransform convert(to=quarterly,method=last)
  • US Bureau of Labor Statistics (hosted-safe; hosted)
  • FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted)
expected_inflationSPF median ten-year CPI inflationus.spf.cpi.median_10ythe last 120 observations on or before the date; real time: as published by the date
  • Federal Reserve Bank of Philadelphia (library-only; not hosted)
unemploymentUnemployment rateus.unemployment.ratethe last 120 observations on or before the date; real time: as published by the datetransform convert(to=quarterly,method=last)
  • US Bureau of Labor Statistics (hosted-safe; hosted)
  • FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted)
natural_unemploymentNoncyclical rate of unemploymentus.unemployment.noncyclical_ratethe last 120 observations on or before the date; real time: as published by the date
  • Congressional Budget Office (hosted-safe; hosted)
  • FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted)

Citations

  1. 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)
  2. 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)
  3. 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)
  4. 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_model with 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:

Python
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())
Command line
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