Taylor Rule
Get the Taylor rule rate of a variety of countries: the policy rate that inflation and the output gap call for, next to the policy rate the central bank set.
Taylor (1993) described US monetary policy from 1987 to 1992 with a rule that sets the nominal policy rate at the neutral real rate plus inflation, raised by half of the gap of inflation to its target and by half of the output gap. The balanced-approach rule (Yellen, 2012) weighs the output gap fully, and the inertial rule, as the Federal Reserve Board shows it, moves the policy rate only part of the way from where it was to the balanced-approach rate, as central banks adjust gradually.
The formula for the original Taylor rule is as follows:
\[\text{Taylor Rule Rate} = \text{Neutral Rate} + \text{Inflation Rate} + 0.5 \cdot (\text{Inflation Rate} - \text{Inflation Target}) + 0.5 \cdot \text{Output Gap}\]The formula for the balanced-approach rule is as follows:
\[\text{Taylor Rule Rate} = \text{Neutral Rate} + \text{Inflation Rate} + 0.5 \cdot (\text{Inflation Rate} - \text{Inflation Target}) + 1.0 \cdot \text{Output Gap}\]The formula for the inertial rule is as follows, with Balanced Approach Rate the rate of the balanced-approach rule and Policy Rate(t-1) the policy rate of the previous period:
\[\text{Taylor Rule Rate} = \text{Smoothing}^{4} \cdot \text{Policy Rate}_{t-1} + \left(1 - \text{Smoothing}^{4}\right) \cdot \text{Balanced Approach Rate}\]The inputs are yearly, as the output gap is: the inflation rate is the annual CPI inflation of the Global Macro Database, the output gap the OECD Economic Outlook’s estimate (as a fraction of potential GDP, with the OECD’s projection for the current year) and the policy rate the average over the year of the daily central bank policy rates of the Bank for International Settlements (the year to date for the current year), with the ECB’s rate for the members of the euro area from the year they adopted the euro. The smoothing is a weight per quarter, so a year of four quarterly adjustments puts Smoothing ^ 4 on the previous year’s policy rate (0.52 at 0.85). The Policy Rate Gap is the policy rate minus the Taylor rule rate: negative when policy is looser than the rule. Every value is a decimal (0.05 for 5%).
Taylor’s inputs were the GDP deflator over the previous four quarters and a 2% neutral real rate and inflation target; the Federal Reserve Board uses core PCE inflation and estimates of the neutral rate below 2%. The rule has no lower bound, so it can call for a negative policy rate.
Also known as: Taylor rule, monetary policy rule, rule-implied policy rate, balanced-approach rule.
Example · United States, Germany · 2018 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_taylor_rule:
from financetoolkit import Economics
economics = Economics(start_date='2018-01-01', end_date='2025-12-31')
economics.get_taylor_rule(countries=['United States', 'Germany'])['United States']
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
How did the US policy rate compare with the rate the Taylor rule prescribed each year from 2018 to 2025?
Which returns:
| Item | Inflation Rate | Output Gap | Policy Rate | Taylor Rule Rate | Policy Rate Gap |
|---|---|---|---|---|---|
| 2018 | 0.0244 | 0.0002 | 0.0178 | 0.0467 | -0.0289 |
| 2019 | 0.0181 | 0.0015 | 0.0216 | 0.0380 | -0.0164 |
| 2020 | 0.0125 | -0.0422 | 0.0041 | 0.0077 | -0.0035 |
| 2021 | 0.0468 | -0.0073 | 0.0012 | 0.0766 | -0.0753 |
| 2022 | 0.0799 | -0.0066 | 0.0174 | 0.1266 | -0.1092 |
| 2023 | 0.0413 | -0.0020 | 0.0507 | 0.0709 | -0.0202 |
| 2024 | 0.0295 | 0.0014 | 0.0519 | 0.0550 | -0.0031 |
| 2025 | 0.0271 | -0.0006 | 0.0425 | 0.0503 | -0.0078 |
8 rows
Parameters
get_taylor_rule accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
countries | list[str] | str | None | The countries to include in the data. Defaults to None, which includes every country with an inflation rate and an output gap. | ["United States", "Germany"] |
method | str | The rule. Options are: “original” (Taylor’s 1993 rule), “balanced” (the balanced-approach rule), “inertial” (the inertial rule). Defaults to “original”. | "original" |
neutral_rate | float | The neutral real policy rate, as a decimal. Defaults to 0.02. | 0.02 |
inflation_target | float | The inflation target, as a decimal. Defaults to 0.02. | 0.02 |
smoothing | float | The weight of the previous quarter’s policy rate in the inertial rule, between 0 and 1. Only applies to the inertial rule. Defaults to 0.85. | 0.85 |
transform | str | list[str] | None | Time series steps applied in order, such as “sma:12” (moving average), “pct_change”, “yoy”, “zscore:60” or “hp_cycle” (Hodrick-Prescott), before growth and the date range, on the history before the start date. Defaults to None. | None |
growth | bool | Whether to return the growth data or the actual data. Defaults to False. | True |
lag | int | list[int] | The number of periods to lag the growth data by. Defaults to 1. | 4 |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Economics class. | 2 |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Paper Taylor, J. B. (1993). “Discretion versus Policy Rules in Practice.” Carnegie-Rochester Conference Series on Public Policy, 39, 195-214.
- Paper Yellen, J. L. (2012). “Perspectives on Monetary Policy.” Speech at the Boston Economic Club, 6 June 2012.
- Paper Board of Governors of the Federal Reserve System. “Policy Rules and How Policymakers Use Them.” https://www.federalreserve.gov/monetarypolicy/policy-rules-and-how-policymakers-use-them.htm
- Source Global Macro Database, Inflation rate (infl)
- Source OECD, Economic Outlook, output gap of the total economy (DSD_EO@DF_EO, GAP)
- Source Bank for International Settlements, Central bank policy rates (WS_CBPOL)
- Source Bank of England, Official Bank Rate (IUDBEDR)
- Source European Central Bank, Deposit facility rate (FM/D.U2.EUR.4F.KR.DFR.LEV)