liveBook · Manning

Inflation rate

As explained in Build a Robo-Advisor with Python (From Scratch)

The inflation rate is the percentage rate at which the general price level of goods and services increases over a specified period.

The inflation rate measures how quickly the general price level rises over a period. For retirement planning, it determines how spending and wealth evolve under inflation risk. section 5.7

Unlike independent stock-return shocks, inflation tends to persist: elevated inflation is often followed by elevated inflation, while gradually reverting toward a long-term average. An AR(1) process models this behavior. section 5.7

A practical workflow uses historical CPI data and then estimates and simulates the inflation process:

  • Download CPI-U All Items data from FRED using the CPIAUCNS series. section 5.7

Recent annual changes

The year-over-year rate rose from 1.4% in 2020 to 7.0% in 2021, declined to 6.5% in 2022, and reached 3.5% in 2023. section 5.7

How Build a Robo-Advisor with Python (From Scratch) covers it

How deep it goes
Explains CPI data construction, AR(1) estimation, residual volatility, and simulated inflation paths.
Examples
Uses CPIAUCNS data, annual percentage changes, regression output, and simulated thirty-year wealth paths.
What it assumes
Assumes Python data handling and regression tooling, while defining inflation modeling through concrete CPI transformations.
What you can do after
Build inflation inputs for retirement simulations using FRED data, regression estimates, and an AR(1) process.
How it connects
Connects inflation rate with Consumer Price Index, FRED, autoregressive processes, and Monte Carlo simulation.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Robo-Advisor with Python (From Scratch). The section links point to the parts of the book it draws on.