A comprehensive time series analysis and forecasting project for the US Consumer Price Index (CPI) using statistical modeling and econometric techniques.
This project applies rigorous time series methodology to model and forecast the US Consumer Price Index (CPI) monthly data. The analysis includes exploratory data analysis, stationarity testing, model identification, estimation, and out-of-sample forecasting performance evaluation.
βββ CPI.ipynb # Main CPI analysis and forecasting
βββ notebooks/
β βββ Inflation.ipynb # Inflation-related analysis
β βββ UNRATE.ipynb # Unemployment rate analysis
βββ data/
β βββ cpiai.csv # CPI data
β βββ UNRATE.csv # Unemployment rate data
β βββ Employement.csv # Employment data
β βββ VIX.csv # Volatility index data
βββ Full_Report.pdf # Comprehensive analysis report
- Exploratory Analysis - Data visualization and variance stabilization using Box-Cox transformation
- Stationarity Testing - ADF test, detrending, and differencing
- Model Identification - ACF/PACF analysis
- Model Estimation - ARMA/ARIMA model selection using AIC/BIC criteria
- Residual Diagnostics - Ljung-Box test, Shapiro-Wilk test, and Runs test
- Forecasting - Out-of-sample performance evaluation
- Source: US Bureau of Labor Statistics (BLS) via FRED
- Variable: CPI Index (all items, not seasonally adjusted)
- Frequency: Monthly
- Training Set: January 2010 β December 2018 (108 observations)
- Test Set: January β December 2019 (12 observations)
Note: The time period was specifically chosen to avoid external economic shocks (2008 crisis, COVID-19 pandemic)
- R 4.0+
- R packages:
readr- Data readingdplyr- Data manipulationggplot2- Visualizationforecast- Time series forecastingtseries- Time series analysisurca- Unit root testslmtest- Diagnostic testsrandtests- Randomness testsnortest- Normality tests
- Clone the repository
- Open
CPI.ipynbin RStudio or Jupyter - Install required packages (first code cell)
- Run cells sequentially to perform the analysis
See Full_Report.pdf for detailed findings, visualizations, and forecasting results.
Guendouz Ahmed Fateh
This project is part of the TSAC module at ENSIA.