Macroeconomics
Monetary-policy rules Taylor (1993 and 1999), balanced-approach, shortfalls, adjusted and first-difference rules, smoothed and floored, on a gap measured in output or unemployment, and over forecast paths.
Run the calculator Formula Variables Worked example Citations Model id macro.policy_rule, version 1Domain Macroeconomics Evidence practitioner Cost class instant: A closed-form calculation; a hosted run may take up to 2 seconds. Variables Rates, returns and yields are decimals: 0.05 is five percent. Bounds in brackets include their end; in parentheses they exclude it.
Inputs The Taylor (1993) rule (taylor_1993): 15 inputs Inputs of the calculation taylor_1993 Name Unit Bounds Description Inflation inflationrate · [-0.2, 0.5] rate [-0.2, 0.5] Inflation the rule answers: over the past four quarters, or a forecast Inflation target inflation_targetrate · [0, 0.1] rate [0, 0.1] The inflation objective Gap measure gap_measuretext text How the resource gap is measured; left out, it follows the fields given Output gap output_gaprate · [-0.3, 0.3] rate [-0.3, 0.3] Output gap: real GDP over potential, less one Unemployment unemploymentrate · [0, 0.3] rate [0, 0.3] The unemployment rate Natural unemployment natural_unemploymentrate · [0, 0.3] rate [0, 0.3] The natural (longer-run) rate of unemployment Okun coefficient okun_coefficientratio · [0.1, 4] ratio [0.1, 4] Output-gap points per point of unemployment gap (Okun's law) Inflation weight inflation_weightratio · [0, 4] ratio [0, 4] Weight on the inflation gap Smoothing smoothingratio · [0, 1] ratio [0, 1] Weight on the previous rate (the inertial form); 0 is none Lower bound lower_boundrate · [-0.1, 0.1] rate [-0.1, 0.1] An effective lower bound that floors the prescription Resource weight resource_weightratio · [0, 4] ratio [0, 4] Weight on the resource gap Neutral real rate neutral_real_raterate · [-0.1, 0.1] rate [-0.1, 0.1] The real neutral rate, r* Neutral nominal rate neutral_nominal_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The nominal neutral rate, r* plus the target (the SEP's longer-run rate) Previous rate previous_raterate · [-0.1, 1] rate [-0.1, 1] The policy rate before the rule's date, for smoothing Calculation calculationtext text The Taylor (1993) rule
The Taylor (1999) rule (taylor_1999): 15 inputs Inputs of the calculation taylor_1999 Name Unit Bounds Description Inflation inflationrate · [-0.2, 0.5] rate [-0.2, 0.5] Inflation the rule answers: over the past four quarters, or a forecast Inflation target inflation_targetrate · [0, 0.1] rate [0, 0.1] The inflation objective Gap measure gap_measuretext text How the resource gap is measured; left out, it follows the fields given Output gap output_gaprate · [-0.3, 0.3] rate [-0.3, 0.3] Output gap: real GDP over potential, less one Unemployment unemploymentrate · [0, 0.3] rate [0, 0.3] The unemployment rate Natural unemployment natural_unemploymentrate · [0, 0.3] rate [0, 0.3] The natural (longer-run) rate of unemployment Okun coefficient okun_coefficientratio · [0.1, 4] ratio [0.1, 4] Output-gap points per point of unemployment gap (Okun's law) Inflation weight inflation_weightratio · [0, 4] ratio [0, 4] Weight on the inflation gap Smoothing smoothingratio · [0, 1] ratio [0, 1] Weight on the previous rate (the inertial form); 0 is none Lower bound lower_boundrate · [-0.1, 0.1] rate [-0.1, 0.1] An effective lower bound that floors the prescription Resource weight resource_weightratio · [0, 4] ratio [0, 4] Weight on the resource gap Neutral real rate neutral_real_raterate · [-0.1, 0.1] rate [-0.1, 0.1] The real neutral rate, r* Neutral nominal rate neutral_nominal_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The nominal neutral rate, r* plus the target (the SEP's longer-run rate) Previous rate previous_raterate · [-0.1, 1] rate [-0.1, 1] The policy rate before the rule's date, for smoothing Calculation calculationtext text The Taylor (1999) rule
The balanced-approach rule (balanced_approach): 15 inputs Inputs of the calculation balanced_approach Name Unit Bounds Description Inflation inflationrate · [-0.2, 0.5] rate [-0.2, 0.5] Inflation the rule answers: over the past four quarters, or a forecast Inflation target inflation_targetrate · [0, 0.1] rate [0, 0.1] The inflation objective Gap measure gap_measuretext text How the resource gap is measured; left out, it follows the fields given Output gap output_gaprate · [-0.3, 0.3] rate [-0.3, 0.3] Output gap: real GDP over potential, less one Unemployment unemploymentrate · [0, 0.3] rate [0, 0.3] The unemployment rate Natural unemployment natural_unemploymentrate · [0, 0.3] rate [0, 0.3] The natural (longer-run) rate of unemployment Okun coefficient okun_coefficientratio · [0.1, 4] ratio [0.1, 4] Output-gap points per point of unemployment gap (Okun's law) Inflation weight inflation_weightratio · [0, 4] ratio [0, 4] Weight on the inflation gap Smoothing smoothingratio · [0, 1] ratio [0, 1] Weight on the previous rate (the inertial form); 0 is none Lower bound lower_boundrate · [-0.1, 0.1] rate [-0.1, 0.1] An effective lower bound that floors the prescription Resource weight resource_weightratio · [0, 4] ratio [0, 4] Weight on the resource gap Neutral real rate neutral_real_raterate · [-0.1, 0.1] rate [-0.1, 0.1] The real neutral rate, r* Neutral nominal rate neutral_nominal_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The nominal neutral rate, r* plus the target (the SEP's longer-run rate) Previous rate previous_raterate · [-0.1, 1] rate [-0.1, 1] The policy rate before the rule's date, for smoothing Calculation calculationtext text The balanced-approach rule
The balanced-approach (shortfalls) rule (balanced_approach_shortfalls): 15 inputs Inputs of the calculation balanced_approach_shortfalls Name Unit Bounds Description Inflation inflationrate · [-0.2, 0.5] rate [-0.2, 0.5] Inflation the rule answers: over the past four quarters, or a forecast Inflation target inflation_targetrate · [0, 0.1] rate [0, 0.1] The inflation objective Gap measure gap_measuretext text How the resource gap is measured; left out, it follows the fields given Output gap output_gaprate · [-0.3, 0.3] rate [-0.3, 0.3] Output gap: real GDP over potential, less one Unemployment unemploymentrate · [0, 0.3] rate [0, 0.3] The unemployment rate Natural unemployment natural_unemploymentrate · [0, 0.3] rate [0, 0.3] The natural (longer-run) rate of unemployment Okun coefficient okun_coefficientratio · [0.1, 4] ratio [0.1, 4] Output-gap points per point of unemployment gap (Okun's law) Inflation weight inflation_weightratio · [0, 4] ratio [0, 4] Weight on the inflation gap Smoothing smoothingratio · [0, 1] ratio [0, 1] Weight on the previous rate (the inertial form); 0 is none Lower bound lower_boundrate · [-0.1, 0.1] rate [-0.1, 0.1] An effective lower bound that floors the prescription Resource weight resource_weightratio · [0, 4] ratio [0, 4] Weight on a negative resource gap Neutral real rate neutral_real_raterate · [-0.1, 0.1] rate [-0.1, 0.1] The real neutral rate, r* Neutral nominal rate neutral_nominal_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The nominal neutral rate, r* plus the target (the SEP's longer-run rate) Previous rate previous_raterate · [-0.1, 1] rate [-0.1, 1] The policy rate before the rule's date, for smoothing Calculation calculationtext text The balanced-approach (shortfalls) rule
The adjusted Taylor (1993) rule (adjusted_taylor_1993): 16 inputs Inputs of the calculation adjusted_taylor_1993 Name Unit Bounds Description Inflation inflationrate · [-0.2, 0.5] rate [-0.2, 0.5] Inflation the rule answers: over the past four quarters, or a forecast Inflation target inflation_targetrate · [0, 0.1] rate [0, 0.1] The inflation objective Gap measure gap_measuretext text How the resource gap is measured; left out, it follows the fields given Output gap output_gaprate · [-0.3, 0.3] rate [-0.3, 0.3] Output gap: real GDP over potential, less one Unemployment unemploymentrate · [0, 0.3] rate [0, 0.3] The unemployment rate Natural unemployment natural_unemploymentrate · [0, 0.3] rate [0, 0.3] The natural (longer-run) rate of unemployment Okun coefficient okun_coefficientratio · [0.1, 4] ratio [0.1, 4] Output-gap points per point of unemployment gap (Okun's law) Inflation weight inflation_weightratio · [0, 4] ratio [0, 4] Weight on the inflation gap Smoothing smoothingratio · [0, 1] ratio [0, 1] Weight on the previous rate (the inertial form); 0 is none Lower bound lower_boundrate · [-0.1, 0.1] rate [-0.1, 0.1] The effective lower bound the rule is floored at; the Board's is 12.5 basis points Resource weight resource_weightratio · [0, 4] ratio [0, 4] Weight on the resource gap Neutral real rate neutral_real_raterate · [-0.1, 0.1] rate [-0.1, 0.1] The real neutral rate, r* Neutral nominal rate neutral_nominal_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The nominal neutral rate, r* plus the target (the SEP's longer-run rate) Previous rate previous_raterate · [-0.1, 1] rate [-0.1, 1] The policy rate before the rule's date, for smoothing Calculation calculationtext text The adjusted Taylor (1993) rule Cumulative shortfall cumulative_shortfallrate · [0, 1] rate [0, 1] Z: the sum of the rate's past excesses over Taylor (1993) prescriptions below the lower bound, still to be made up
The first-difference rule (first_difference): 16 inputs Inputs of the calculation first_difference Name Unit Bounds Description Inflation inflationrate · [-0.2, 0.5] rate [-0.2, 0.5] Inflation the rule answers: over the past four quarters, or a forecast Inflation target inflation_targetrate · [0, 0.1] rate [0, 0.1] The inflation objective Gap measure gap_measuretext text How the resource gap is measured; left out, it follows the fields given Output gap output_gaprate · [-0.3, 0.3] rate [-0.3, 0.3] Output gap: real GDP over potential, less one Unemployment unemploymentrate · [0, 0.3] rate [0, 0.3] The unemployment rate Natural unemployment natural_unemploymentrate · [0, 0.3] rate [0, 0.3] The natural (longer-run) rate of unemployment Okun coefficient okun_coefficientratio · [0.1, 4] ratio [0.1, 4] Output-gap points per point of unemployment gap (Okun's law) Inflation weight inflation_weightratio · [0, 4] ratio [0, 4] Weight on the inflation gap Smoothing smoothingratio · [0, 1] ratio [0, 1] Weight on the previous rate (the inertial form); 0 is none Lower bound lower_boundrate · [-0.1, 0.1] rate [-0.1, 0.1] An effective lower bound that floors the prescription Calculation calculationtext text The first-difference rule Resource weight resource_weightratio · [0, 4] ratio [0, 4] Weight on the change in the resource gap Previous rate previous_raterate · [-0.1, 1] rate [-0.1, 1] The policy rate a quarter earlier Output gap lagged output_gap_laggedrate · [-0.3, 0.3] rate [-0.3, 0.3] The output gap four quarters earlier Unemployment lagged unemployment_laggedrate · [0, 0.3] rate [0, 0.3] The unemployment rate four quarters earlier Natural unemployment lagged natural_unemployment_laggedrate · [0, 0.3] rate [0, 0.3] The natural rate four quarters earlier; the current one when left out
A rule over a forecast (path): 26 inputs Inputs of the calculation path Name Unit Bounds Description Calculation calculationtext text A rule over a forecast Rule ruletext text The rule to apply at each horizon Inflation path inflation_pathrate (array) · length min 1, max 40; each [-0.2, 0.5] rate (array) length min 1, max 40; each [-0.2, 0.5] Inflation at each horizon Inflation target inflation_targetrate · [0, 0.1] rate [0, 0.1] The inflation objective Gap measure gap_measuretext text How the resource gap is measured; left out, it follows the paths given Output gap path output_gap_pathrate (array) · each [-0.3, 0.3] rate (array) each [-0.3, 0.3] Output gap at each horizon Unemployment path unemployment_pathrate (array) · each [0, 0.3] rate (array) each [0, 0.3] Unemployment at each horizon Natural unemployment path natural_unemployment_pathrate (array) · each [0, 0.3] rate (array) each [0, 0.3] The natural rate of unemployment at each horizon Output gap lagged path output_gap_lagged_pathrate (array) · each [-0.3, 0.3] rate (array) each [-0.3, 0.3] For the first-difference rule: each horizon's output gap four quarters back Unemployment lagged path unemployment_lagged_pathrate (array) · each [0, 0.3] rate (array) each [0, 0.3] For the first-difference rule: each horizon's unemployment four quarters back Natural unemployment lagged path natural_unemployment_lagged_pathrate (array) · each [0, 0.3] rate (array) each [0, 0.3] For the first-difference rule: the natural rate four quarters back; the horizon's own when left out Inflation low path inflation_low_pathrate (array) · each [-0.2, 0.5] rate (array) each [-0.2, 0.5] A low inflation forecast (a 25th percentile) for the band's lower edge Inflation high path inflation_high_pathrate (array) · each [-0.2, 0.5] rate (array) each [-0.2, 0.5] A high inflation forecast (a 75th percentile) for the band's upper edge Output gap low path output_gap_low_pathrate (array) · each [-0.3, 0.3] rate (array) each [-0.3, 0.3] A low output-gap forecast, for the band Output gap high path output_gap_high_pathrate (array) · each [-0.3, 0.3] rate (array) each [-0.3, 0.3] A high output-gap forecast, for the band Unemployment low path unemployment_low_pathrate (array) · each [0, 0.3] rate (array) each [0, 0.3] A low unemployment forecast, for the band's upper edge Unemployment high path unemployment_high_pathrate (array) · each [0, 0.3] rate (array) each [0, 0.3] A high unemployment forecast, for the band's lower edge Neutral real rate neutral_real_raterate · [-0.1, 0.1] rate [-0.1, 0.1] The real neutral rate, r*, for a level rule Neutral nominal rate neutral_nominal_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The nominal neutral rate, for a level rule Okun coefficient okun_coefficientratio · [0.1, 4] ratio [0.1, 4] Output-gap points per point of unemployment gap (Okun's law) Inflation weight inflation_weightratio · [0, 4] ratio [0, 4] Weight on the inflation gap Resource weight resource_weightratio · [0, 4] ratio [0, 4] Weight on the resource gap; the rule's own when left out Smoothing smoothingratio · [0, 1] ratio [0, 1] Weight on the previous rate at each horizon Previous rate previous_raterate · [-0.1, 1] rate [-0.1, 1] The policy rate before the first horizon Lower bound lower_boundrate · [-0.1, 0.1] rate [-0.1, 0.1] An effective lower bound; for the adjusted rule, 12.5 basis points when left out Cumulative shortfall cumulative_shortfallrate · [0, 1] rate [0, 1] For the adjusted rule: the shortfall Z, held over the path
Outputs The Taylor (1993) rule (taylor_1993): 6 outputs Outputs of the calculation taylor_1993 Name Unit Bounds Description Prescribed rate prescribed_raterate · [-20, 20] rate [-20, 20] The policy rate the rule prescribes Unconstrained rate unconstrained_raterate · [-20, 20] rate [-20, 20] The prescription before the lower bound: the rule, smoothed Inflation gap term inflation_gap_termrate · [-20, 20] rate [-20, 20] The weight on inflation times its gap Resource gap term resource_gap_termrate · [-20, 20] rate [-20, 20] The weight on the resource gap times the gap Nominal neutral rate nominal_neutral_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The real neutral rate plus the target: the rate at no gaps Calculation calculationtext text The Taylor (1993) rule
The Taylor (1999) rule (taylor_1999): 6 outputs Outputs of the calculation taylor_1999 Name Unit Bounds Description Prescribed rate prescribed_raterate · [-20, 20] rate [-20, 20] The policy rate the rule prescribes Unconstrained rate unconstrained_raterate · [-20, 20] rate [-20, 20] The prescription before the lower bound: the rule, smoothed Inflation gap term inflation_gap_termrate · [-20, 20] rate [-20, 20] The weight on inflation times its gap Resource gap term resource_gap_termrate · [-20, 20] rate [-20, 20] The weight on the resource gap times the gap Nominal neutral rate nominal_neutral_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The real neutral rate plus the target: the rate at no gaps Calculation calculationtext text The Taylor (1999) rule
The balanced-approach rule (balanced_approach): 6 outputs Outputs of the calculation balanced_approach Name Unit Bounds Description Prescribed rate prescribed_raterate · [-20, 20] rate [-20, 20] The policy rate the rule prescribes Unconstrained rate unconstrained_raterate · [-20, 20] rate [-20, 20] The prescription before the lower bound: the rule, smoothed Inflation gap term inflation_gap_termrate · [-20, 20] rate [-20, 20] The weight on inflation times its gap Resource gap term resource_gap_termrate · [-20, 20] rate [-20, 20] The weight on the resource gap times the gap Nominal neutral rate nominal_neutral_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The real neutral rate plus the target: the rate at no gaps Calculation calculationtext text The balanced-approach rule
The balanced-approach (shortfalls) rule (balanced_approach_shortfalls): 6 outputs Outputs of the calculation balanced_approach_shortfalls Name Unit Bounds Description Prescribed rate prescribed_raterate · [-20, 20] rate [-20, 20] The policy rate the rule prescribes Unconstrained rate unconstrained_raterate · [-20, 20] rate [-20, 20] The prescription before the lower bound: the rule, smoothed Inflation gap term inflation_gap_termrate · [-20, 20] rate [-20, 20] The weight on inflation times its gap Resource gap term resource_gap_termrate · [-20, 20] rate [-20, 20] The weight on the resource gap times the gap Nominal neutral rate nominal_neutral_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The real neutral rate plus the target: the rate at no gaps Calculation calculationtext text The balanced-approach (shortfalls) rule
The adjusted Taylor (1993) rule (adjusted_taylor_1993): 6 outputs Outputs of the calculation adjusted_taylor_1993 Name Unit Bounds Description Prescribed rate prescribed_raterate · [-20, 20] rate [-20, 20] The policy rate the rule prescribes Unconstrained rate unconstrained_raterate · [-20, 20] rate [-20, 20] The prescription before the lower bound: the rule, smoothed Inflation gap term inflation_gap_termrate · [-20, 20] rate [-20, 20] The weight on inflation times its gap Resource gap term resource_gap_termrate · [-20, 20] rate [-20, 20] The weight on the resource gap times the gap Nominal neutral rate nominal_neutral_raterate · [-0.1, 0.2] rate [-0.1, 0.2] The real neutral rate plus the target: the rate at no gaps Calculation calculationtext text The adjusted Taylor (1993) rule
The first-difference rule (first_difference): 5 outputs Outputs of the calculation first_difference Name Unit Bounds Description Prescribed rate prescribed_raterate · [-20, 20] rate [-20, 20] The policy rate the rule prescribes Unconstrained rate unconstrained_raterate · [-20, 20] rate [-20, 20] The prescription before the lower bound: the rule, smoothed Inflation gap term inflation_gap_termrate · [-20, 20] rate [-20, 20] The weight on inflation times its gap Resource gap term resource_gap_termrate · [-20, 20] rate [-20, 20] The weight on the resource gap times the gap Calculation calculationtext text The first-difference rule
A rule over a forecast (path): 7 outputs Outputs of the calculation path Name Unit Bounds Description Calculation calculationtext text A rule over a forecast Rule ruletext text The rule applied at each horizon Horizon horizoncount (array) · length max 40; each [0, 40] count (array) length max 40; each [0, 40] Horizons after the first: 0, 1, 2, ... Prescribed path prescribed_pathrate (array) · length max 40; each [-500, 500] rate (array) length max 40; each [-500, 500] The prescribed rate at each horizon Unconstrained path unconstrained_pathrate (array) · length max 40; each [-500, 500] rate (array) length max 40; each [-500, 500] Each prescription before the lower bound Lower path lower_pathrate (array) · length max 40; each [-500, 500] rate (array) length max 40; each [-500, 500] The band's lower edge (low inflation, weak activity); empty with no band Upper path upper_pathrate (array) · length max 40; each [-500, 500] rate (array) length max 40; each [-500, 500] The band's upper edge (high inflation, strong activity); empty with no band
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: some profiles run here, the rest on your own computer
On this site, "Live data" runs with the profiles Default (United States data), US output gap, US FOMC projections (us_sep), Euro area (ea), United Kingdom (gb) and Canada (ca).
The profile US forecasters' survey (us_spf) reads SPF median core PCE inflation, survey quarter and SPF median unemployment rate, survey quarter. Their source, Federal Reserve Bank of Philadelphia, lets pyeconomics read the data on your own computer but not serve them from this website.
For those, 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.
The calculator needs JavaScript. The worked example below shows the model's inputs and outputs, and the REST API, the command line and the Python package run it too.
Worked example The Report's form: a weight of 1 on the unemployment gap.
Example taylor_1993_on_unemployment. Inputs:
{
"calculation": "taylor_1993",
"gap_measure": null,
"inflation": 0.03,
"inflation_target": 0.02,
"inflation_weight": 0.5,
"lower_bound": null,
"natural_unemployment": 0.042,
"neutral_nominal_rate": null,
"neutral_real_rate": 0.01,
"okun_coefficient": 2,
"output_gap": null,
"previous_rate": null,
"resource_weight": 0.5,
"smoothing": 0,
"unemployment": 0.043
}Outputs:
{
"calculation": "taylor_1993",
"inflation_gap_term": 0.004999999999999999,
"nominal_neutral_rate": 0.03,
"prescribed_rate": 0.044000000000000004,
"resource_gap_term": -0.000999999999999994,
"unconstrained_rate": 0.044000000000000004
}Assumptions Rates, inflation and gaps are decimals. The resource gap is in output-gap units: an Okun coefficient k (2 by default, the Board's conversion) times the unemployment gap, or an output gap. Each rule's weights default to its published values (0.5 on the inflation gap; 0.5 or 1.0 on the resource gap) and may be overridden. Smoothing blends the previous rate with the rule's prescription; the lower bound, when given, floors the smoothed rate. The adjusted rule is floored at 12.5 basis points unless told otherwise. Profiles: default binds core PCE inflation, the unemployment rate, CBO's noncyclical rate, the HLW r* and the effective funds rate (and, for the first-difference rule, unemployment and the natural rate four quarters back); us_output_gap swaps in real GDP over CBO's potential GDP; us_sep reads the SEP medians for a meeting and year; us_spf the SPF's survey-quarter medians; ea, gb and ca each economy's inflation, OECD output gap, policy rate and, for ea and ca, the HLW r*. Limitations A prescription is the rule's arithmetic, not a forecast of policy or advice: the rules leave out most of what a central bank weighs, and the neutral rate and natural unemployment are estimated with wide uncertainty. Taylor (1999) and the balanced approach share one formula; they are kept apart because the literature and the Board name them apart. A path holds the adjusted rule's shortfall fixed, and a first-difference path accumulates its changes, so it can drift far from any level a central bank would set. Only the default and us_output_gap profiles bind the first-difference rule's gap four quarters back; with any other, supply it. The gb profile binds no neutral rate, because the New York Fed publishes none for the United Kingdom: supply neutral_real_rate. The New York Fed's r* files keep no dated vintages, so an as-of bind reads them as revised data and says so. 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.
Profile: Default Field Concept Read as Sources (licence class; hosted) inflationCore PCE inflation, year over year us.inflation.pce_core.yoylast observation on or before the date; real time: as published by the date US Bureau of Economic Analysis (hosted-safe; hosted) FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted) unemploymentUnemployment rate us.unemployment.ratelast observation on or before the date; real time: as published by the date 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 unemployment us.unemployment.noncyclical_ratethe observation of the period containing 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) neutral_real_rateNatural rate of interest, Holston-Laubach-Williams (United States) us.neutral_rate.hlwlast observation on or before the date; real time: as published by the date Federal Reserve Bank of New York (hosted-safe; hosted) previous_rateEffective federal funds rate us.policy_rate.effectivelast observation on or before the date; real time: as published by the date Federal Reserve Bank of New York (hosted-safe; hosted) FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted) unemployment_laggedUnemployment rate us.unemployment.ratelast observation on or before the date; real time: as published by the datetransform lag(periods=12) US Bureau of Labor Statistics (hosted-safe; hosted) FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted) natural_unemployment_laggedNoncyclical rate of unemployment us.unemployment.noncyclical_ratethe observation of the period containing the date; real time: as published by the datetransform lag(periods=4) Congressional Budget Office (hosted-safe; hosted) FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted)
Profile: US output gap Field Concept Read as Sources (licence class; hosted) inflationCore PCE inflation, year over year us.inflation.pce_core.yoylast observation on or before the date; real time: as published by the date US Bureau of Economic Analysis (hosted-safe; hosted) FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted) output_gapOutput gap, real GDP over potential us.output_gap.real_potentiallast observation on or before the date; real time: as published by the date derived (derived; hosted) output_gap_laggedOutput gap, real GDP over potential us.output_gap.real_potentiallast observation on or before the date; real time: as published by the datetransform lag(periods=4) derived (derived; hosted) neutral_real_rateNatural rate of interest, Holston-Laubach-Williams (United States) us.neutral_rate.hlwlast observation on or before the date; real time: as published by the date Federal Reserve Bank of New York (hosted-safe; hosted) previous_rateEffective federal funds rate us.policy_rate.effectivelast observation on or before the date; real time: as published by the date Federal Reserve Bank of New York (hosted-safe; hosted) FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted)
Profile: US FOMC projections
(us_sep)
Field Concept Read as Sources (licence class; hosted) inflationSEP median core PCE inflation us.sep.core_pce_inflationlast observation on or before the date; real time: as published by the date Federal Reserve Board (hosted-safe; hosted) unemploymentSEP median unemployment rate us.sep.unemploymentlast observation on or before the date; real time: as published by the date Federal Reserve Board (hosted-safe; hosted) natural_unemploymentSEP longer-run unemployment rate us.sep.unemployment_longer_runlast observation on or before the date; real time: as published by the date Federal Reserve Board (hosted-safe; hosted) neutral_nominal_rateSEP longer-run federal funds rate us.sep.policy_rate_longer_runlast observation on or before the date; real time: as published by the date Federal Reserve Board (hosted-safe; hosted) previous_rateEffective federal funds rate us.policy_rate.effectivelast observation on or before the date; real time: as published by the date Federal Reserve Bank of New York (hosted-safe; hosted) FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted)
Profile: US forecasters' survey
(us_spf)
Field Concept Read as Sources (licence class; hosted) inflationSPF median core PCE inflation, survey quarter us.spf.core_pce.median_h0the observation of the period containing the date; real time: as published by the date Federal Reserve Bank of Philadelphia (library-only; not hosted) unemploymentSPF median unemployment rate, survey quarter us.spf.unemployment.median_h0the observation of the period containing the date; real time: as published by the date Federal Reserve Bank of Philadelphia (library-only; not hosted) natural_unemploymentNoncyclical rate of unemployment us.unemployment.noncyclical_ratethe observation of the period containing 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) neutral_real_rateNatural rate of interest, Holston-Laubach-Williams (United States) us.neutral_rate.hlwlast observation on or before the date; real time: as published by the date Federal Reserve Bank of New York (hosted-safe; hosted) previous_rateEffective federal funds rate us.policy_rate.effectivelast observation on or before the date; real time: as published by the date Federal Reserve Bank of New York (hosted-safe; hosted) FRED and ALFRED, Federal Reserve Bank of St. Louis (library-only; not hosted)
Profile: Euro area
(ea)
Field Concept Read as Sources (licence class; hosted) inflationHICP inflation, euro area ea.inflation.hicp.yoylast observation on or before the date; real time: as published by the date Eurostat (hosted-safe; hosted) European Central Bank (hosted-safe; hosted) output_gapOutput gap, the euro area ea.output_gap.oecdthe observation of the period containing the date; real time: as published by the date Organisation for Economic Co-operation and Development (hosted-safe; hosted) neutral_real_rateNatural rate of interest, Holston-Laubach-Williams (euro area) ea.neutral_rate.hlwlast observation on or before the date; real time: as published by the date Federal Reserve Bank of New York (hosted-safe; hosted) previous_rateCentral bank policy rate, the euro area ea.policy_rate.headlinelast observation on or before the date; real time: as published by the date Bank for International Settlements (hosted-safe; hosted)
Profile: United Kingdom
(gb)
Field Concept Read as Sources (licence class; hosted) inflationCPI inflation, the United Kingdom gb.inflation.cpi.yoylast observation on or before the date; real time: as published by the date Organisation for Economic Co-operation and Development (hosted-safe; hosted) output_gapOutput gap, the United Kingdom gb.output_gap.oecdthe observation of the period containing the date; real time: as published by the date Organisation for Economic Co-operation and Development (hosted-safe; hosted) previous_rateCentral bank policy rate, the United Kingdom gb.policy_rate.headlinelast observation on or before the date; real time: as published by the date Bank for International Settlements (hosted-safe; hosted)
Profile: Canada
(ca)
Field Concept Read as Sources (licence class; hosted) inflationCPI inflation, Canada ca.inflation.cpi.yoylast observation on or before the date; real time: as published by the date Organisation for Economic Co-operation and Development (hosted-safe; hosted) output_gapOutput gap, Canada ca.output_gap.oecdthe observation of the period containing the date; real time: as published by the date Organisation for Economic Co-operation and Development (hosted-safe; hosted) neutral_real_rateNatural rate of interest, Holston-Laubach-Williams (Canada) ca.neutral_rate.hlwlast observation on or before the date; real time: as published by the date Federal Reserve Bank of New York (hosted-safe; hosted) previous_rateCentral bank policy rate, Canada ca.policy_rate.headlinelast observation on or before the date; real time: as published by the date Bank for International Settlements (hosted-safe; hosted)
Citations Taylor, J. B. (1993). Discretion versus Policy Rules in Practice. Carnegie-Rochester Conference Series on Public Policy, 39, 195-214. doi:10.1016/0167-2231(93)90009-L (The rule and its weights of one half, p. 202) Taylor, J. B. (1999). A Historical Analysis of Monetary Policy Rules. In J. B. Taylor (ed.), Monetary Policy Rules, pp. 319-341. University of Chicago Press. doi:10.7208/chicago/9780226791265.001.0001 (Chapter 7: the rule with a weight of 1.0 on the output gap) Reifschneider, D. and Williams, J. C. (2000). Three Lessons for Monetary Policy in a Low-Inflation Era. Journal of Money, Credit and Banking, 32(4), 936-966. doi:10.2307/2601151 (The rule that makes up past shortfalls at the zero bound) Orphanides, A. (2003). Historical Monetary Policy Analysis and the Taylor Rule. Journal of Monetary Economics, 50(5), 983-1022. doi:10.1016/S0304-3932(03)00065-5 (The rule in first differences) Board of Governors of the Federal Reserve System (2026). Monetary Policy Report, July 2026. Box 4, Monetary Policy Rules in the Current Environment. https://www.federalreserve.gov/monetarypolicy/files/20260710_mprfullreport.pdf (Box 4, table A and its notes, pp. 42-43) Board of Governors of the Federal Reserve System (2023). Monetary Policy Report, June 2023. Box, Monetary Policy Rules in the Current Environment. https://www.federalreserve.gov/monetarypolicy/files/20230616_mprfullreport.pdf (Table A, p. 44: the balanced-approach (shortfalls) rule) Changelog Version 1: First version. Use it elsewhere Documentation The model's reference page REST API GET or POST /v1/models/macro.policy_rule/runMCP tool macro_policy_rule, or run_model with the model's id; both give the same result. Connect an assistant Command line pyeconomics models run macro.policy_rule --helpThe worked example, from Python and from the command line:
Python import pyeconomics
inputs = {
"calculation": "taylor_1993",
"gap_measure": None,
"inflation": 0.03,
"inflation_target": 0.02,
"inflation_weight": 0.5,
"lower_bound": None,
"natural_unemployment": 0.042,
"neutral_nominal_rate": None,
"neutral_real_rate": 0.01,
"okun_coefficient": 2,
"output_gap": None,
"previous_rate": None,
"resource_weight": 0.5,
"smoothing": 0,
"unemployment": 0.043,
}
result = pyeconomics.run("macro.policy_rule", inputs)
print(result.to_json())
Command line pyeconomics models run macro.policy_rule --inputs - <<'JSON'
{
"calculation": "taylor_1993",
"gap_measure": null,
"inflation": 0.03,
"inflation_target": 0.02,
"inflation_weight": 0.5,
"lower_bound": null,
"natural_unemployment": 0.042,
"neutral_nominal_rate": null,
"neutral_real_rate": 0.01,
"okun_coefficient": 2,
"output_gap": null,
"previous_rate": null,
"resource_weight": 0.5,
"smoothing": 0,
"unemployment": 0.043
}
JSON