Modeling the Effects of Inflation Using Time Series Analysis

This analysis demonstrates how to model and forecast U.S. inflation using historical economic data from FRED, time series techniques, machine learning, and financial market indicators. It begins by converting CPI data into monthly and year-over-year inflation measures and then uses a SARIMA model to forecast future inflation while evaluating forecast accuracy with MAE and RMSE metrics. The project expands beyond simple forecasting by incorporating multiple inflation measures, including CPI, Core CPI, PCE, Core PCE, and PPI, to provide a more comprehensive view of inflation dynamics. Inflation regimes are identified and classified into categories such as Deflation, Low Inflation, Moderate Inflation, High Inflation, and Extreme Inflation to better understand economic conditions over time. Numerous visualizations, including heatmaps, regime charts, recession overlays, and inflation-versus-Fed Funds comparisons, help reveal historical patterns and macroeconomic relationships. Machine learning models such as Random Forest and XGBoost are then used to predict future inflation and compared against the SARIMA model to determine which approach performs best. Feature importance and SHAP analysis identify the macroeconomic variables that have the greatest influence on future inflation forecasts. The analysis also examines how different asset classes, including SPY, QQQ, TLT, GLD, and XLE, historically performed during various inflation regimes and uses those relationships to construct inflation-aware portfolio allocations. A rules-based investment strategy is developed, backtested, and compared against a buy-and-hold SPY benchmark to evaluate whether adapting allocations to inflation conditions can improve performance. Finally, the project combines statistical forecasting, machine learning predictions, regime analysis, and portfolio construction into a comprehensive framework for understanding inflation risk and making more informed investment decisions.

How AI Cracked the Protein Folding Code and Won a Nobel Prize
▶︎

How AI Cracked the Protein Folding Code and Won a Nobel Prize

AlphaFold - The Most Useful Thing AI Has Ever Done
▶︎

AlphaFold - The Most Useful Thing AI Has Ever Done

Transformers, the tech behind LLMs | Deep Learning Chapter 5
▶︎

Transformers, the tech behind LLMs | Deep Learning Chapter 5

Web Scraping Using Python For Beginners and File Handling in Python | Python Web Scraping
▶︎

Web Scraping Using Python For Beginners and File Handling in Python | Python Web Scraping

Andrew Ross Sorkin on What 1929 Teaches Us About 2025 | The New Yorker Radio Hour
▶︎

Andrew Ross Sorkin on What 1929 Teaches Us About 2025 | The New Yorker Radio Hour

Read The Korea Economic Daily in 30 Minutes | 20260511🌞#MorningRoutine
▶︎

Read The Korea Economic Daily in 30 Minutes | 20260511🌞#MorningRoutine

The most beautiful formula not enough people understand
▶︎

The most beautiful formula not enough people understand

Something is jamming GPS over Europe. Here's what we found
▶︎

Something is jamming GPS over Europe. Here's what we found

Real-Time WebSockets Course | Build a Live Sports Dashboard with Node.js & PostgreSQL
▶︎

Real-Time WebSockets Course | Build a Live Sports Dashboard with Node.js & PostgreSQL

Europe Has Become a War Project — Can It Be Stopped? | Yanis Varoufakis & Jeffrey Sachs
▶︎

Europe Has Become a War Project — Can It Be Stopped? | Yanis Varoufakis & Jeffrey Sachs

The Unity Tutorial For Complete Beginners
▶︎

The Unity Tutorial For Complete Beginners

Python Variables | Python Operators | Python Tutorial For Beginners | Intellipaat
▶︎

Python Variables | Python Operators | Python Tutorial For Beginners | Intellipaat

Why SocGen's Albert Edwards Sees Double-Digit Inflation Coming Back | Odd Lots
▶︎

Why SocGen's Albert Edwards Sees Double-Digit Inflation Coming Back | Odd Lots

Google Generative AI Leader Certification Course – Pass the Exam!
▶︎

Google Generative AI Leader Certification Course – Pass the Exam!

What do tech pioneers think about the AI revolution? - The Engineers, BBC World Service
▶︎

What do tech pioneers think about the AI revolution? - The Engineers, BBC World Service

Building the PERFECT Linux PC with Linus Torvalds
▶︎

Building the PERFECT Linux PC with Linus Torvalds

Read the Korea Economic Daily in 30 Minutes | 20250904🌞#MorningRoutine
▶︎

Read the Korea Economic Daily in 30 Minutes | 20250904🌞#MorningRoutine

Brian Cox: Why black holes could hold the secret to time and space | Full Interview
▶︎

Brian Cox: Why black holes could hold the secret to time and space | Full Interview

Can AI Stocks Survive the Bond Yield Surge? | Insight with Haslinda Amin 05/19/2026
▶︎

Can AI Stocks Survive the Bond Yield Surge? | Insight with Haslinda Amin 05/19/2026

Power BI FULL COURSE for Beginners | Learn Dashboards & Reports Fast!
▶︎

Power BI FULL COURSE for Beginners | Learn Dashboards & Reports Fast!