National Activity Index
Get the Chicago Fed National Activity Index (CFNAI): whether the US economy grows faster or slower than its trend, monthly from 1967, with its three-month moving average and diffusion index.
The CFNAI is a weighted average of 85 monthly indicators of US economic activity in four groups: production and income; employment, unemployment and hours; personal consumption and housing; and sales, orders and inventories. It is the common factor of the indicators, as Stock and Watson built it, with each indicator made stationary and standardized, so the index is in standard deviations: zero is growth at the trend rate, a positive value growth above trend and a negative value growth below it. Since the monthly index is volatile, the Chicago Fed reads its three-month moving average: values below -0.70 have historically come with economic contractions, and values above +0.70 more than two years into an expansion with rising inflation. The diffusion index, also averaged over three months, measures how widely a change in the index is spread over its 85 indicators; values below -0.35 have historically come with contractions.
Stock, J. H., & Watson, M. W. (1999). Forecasting Inflation. Journal of Monetary Economics, 44(2), 293-335.
The formula is as follows, with Weight_i the weight and Indicator_i the standardized value of each of the 85 indicators, and CFNAI(t-1) the index of the month before:
\[\text{CFNAI} = \sum_{i=1}^{85} \text{Weight}_{i} \cdot \text{Indicator}_{i}\] \[\text{Three Month Moving Average} = \frac{\text{CFNAI} + \text{CFNAI}_{t-1} + \text{CFNAI}_{t-2}}{3}\]The data is the Federal Reserve Bank of Chicago’s, retrieved from FRED, which republishes it with attribution to the Chicago Fed; it requires a FRED API key. The index is revised every month as the underlying indicators are.
See definition: chicagofed.org
Also known as: CFNAI, CFNAI-MA3, Chicago Fed National Activity Index, national activity.
Example · 2026
Install the Finance Toolkit with pip install financetoolkit -U, then call get_national_activity_index:
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_national_activity_index()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What did the Chicago Fed National Activity Index, its three-month average and its diffusion index show for each month from May to October 2026?
Which returns:
| Item | CFNAI | CFNAI-MA3 | Diffusion Index |
|---|---|---|---|
| 2026-05 | -0.08 | -0.03 | 0.03 |
| 2026-06 | 0.03 | 0.02 | 0.11 |
| 2026-07 | 0.13 | 0.02 | 0.13 |
| 2026-08 | -0.13 | 0.01 | 0.08 |
| 2026-09 | 0.05 | 0.01 | 0.04 |
| 2026-10 | -0.06 | -0.05 | -0.02 |
6 rows
Parameters
get_national_activity_index accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
rolling | int | The rolling window size to use for smoothing the data (simple moving average). Defaults to None. | 4 |
transform | str | list[str] | None | Time 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 1967, so any window fits. Defaults to None. | None |
growth | bool | Whether to return the growth data or the actual data. Defaults to False. | True |
lag | int | The number of periods to lag the data by. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
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
- Source FRED (Federal Reserve Bank of St. Louis), Chicago Fed National Activity Index (CFNAI)
- Source FRED (Federal Reserve Bank of St. Louis), Chicago Fed National Activity Index: Three Month Moving Average (CFNAIMA3)
- Source FRED (Federal Reserve Bank of St. Louis), Chicago Fed National Activity Index: Diffusion Index (CFNAIDIFF)