Underlying Inflation

Get the median CPI and the 16% trimmed-mean CPI of the Federal Reserve Bank of Cleveland: how fast US prices rise once the components with the most extreme price changes of the month are set aside, monthly from 1983.

Core inflation leaves out food and energy by decision; these measures leave out whatever moved most in the month. Every month the Cleveland Fed ranks the monthly price changes of the components of the Consumer Price Index by size, each with its expenditure weight in the CPI. The median CPI is the price change of the component at the middle of the weights, and the 16% trimmed-mean CPI the weighted average of the components left after the 8% of the weights with the smallest changes and the 8% with the largest are cut off. Bryan and Cecchetti found such measures to track the trend of inflation better than the CPI and core CPI, as single prices with large moves (weather, oil, tax changes) no longer drive them.

Bryan, M. F., & Cecchetti, S. G. (1994). Measuring Core Inflation. In N. G. Mankiw (Ed.), Monetary Policy (pp. 195-219). University of Chicago Press. https://www.nber.org/papers/w4303

The Cleveland Fed publishes each measure as a seasonally adjusted index (December 1982 = 100), from which the changes are calculated. The formula for each change of the index I in month t is as follows:

\[\text{Year over Year} = \frac{I_{t}}{I_{t-12}} - 1\] \[\text{Monthly} = \frac{I_{t}}{I_{t-1}} - 1\] \[\text{Annualized} = \left(\frac{I_{t}}{I_{t-1}}\right)^{12} - 1\]

The data is the Federal Reserve Bank of Cleveland’s, retrieved from FRED, which republishes it with attribution to the Cleveland Fed; it requires a FRED API key.

See definition: clevelandfed.org

Also known as: median CPI, trimmed-mean CPI, Cleveland Fed median CPI, underlying inflation, trend inflation.

Example · 2026

Install the Finance Toolkit with pip install financetoolkit -U, then call get_underlying_inflation:

from financetoolkit import Economics

economics = Economics(
    start_date='2026-05-01', end_date='2026-10-31', fred_api_key="your_fred_api_key"
)

economics.get_underlying_inflation()

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

What were the Cleveland Fed's median CPI and trimmed-mean CPI inflation each month from May to October 2026?

Which returns:

Parameters

get_underlying_inflation accepts the following parameters.

ParameterTypeDescriptionExample
changestrThe change of the index. Options are: “year_over_year” (the change on the same month a year earlier), “monthly” (the change on the month before, the figure the Cleveland Fed leads with), “annualized” (the change on the month before at an annual rate). Defaults to “year_over_year”."year_over_year"
rollingintThe rolling window size to use for smoothing the data (simple moving average). Defaults to None.4
transformstr | list[str] | NoneTime series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott). They run before growth and the date range, on the history fetched with it: the full history from 1983, so any window fits. Defaults to None.None
growthboolWhether to return the growth data or the actual data. Defaults to False.True
lagintThe number of periods to lag the data by. Defaults to 1.4
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Economics class.2
show_columnsstr | list[str] | NoneThe 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

Share