Skip to content

Time series analysis of Uzbekistan's monthly inflation (2010–2024) using R. Includes detrending, stationarity testing, ACF/PACF analysis, SARIMA modeling, and 1-step ahead forecasting. Dataset sourced from the National Statistics Committee of Uzbekistan.

License

Notifications You must be signed in to change notification settings

Arslan2003/Uz_Inflation_TS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uz_Inflation-Banner

UZ_Inflation - Time Series Analysis of Uzbekistan's Inflation

This project applies statistical techniques and time series modelling to analyse monthly inflation levels in Uzbekistan over the past 15 years and to forecast future inflation levels. The data was obtained from the official website of the Government of Uzbekistan. The study explores the statistical properties of the series, tests for stationarity and normality, and fits a SARIMA model for forecasting future inflation levels.


📈 Project Overview

Dataset: Monthly inflation rate in Uzbekistan (Jan 2010 - Oct 2024)
Programming Language: R, Libraries: quantmod, fpp, forecast, tseries
Statistical Tests: ADF, Ljung-Box, Shapiro-Wilk
Methods Applied:

  • Detrending via linear regression
  • ACF & PACF diagnostics
  • Ljung-Box test for autocorrelation
  • Augmented Dickey-Fuller (ADF) & KPSS tests for stationarity
  • Normality tests: Lilliefors, Anderson-Darling, Shapiro-Francia
  • SARIMA modelling with manual selection and auto.arima comparison
  • Residual diagnostics (mean, variance, autocorrelation)

🔄 Workflow

  1. Obtain the time series.
  2. Detrend the series.
  3. Create ACF & PACF. Determine if it is a unit root.
  4. Check for autocorrelation.
  5. Check for stationarity.
  6. Normality tests (Kolmogoros-Smirnov, Anderson-Darling, Shapiro-Francia).
  7. Fit an ARMA model & determine the best lag.
  8. Make a 1-step forecast.
  9. Check the ARMA model fits the series well (residuals have zero mean and autocovariance, finite and constant variance).

📊 Outputs

Inflation Time Series


ACF Plot


PACF Plot


1-Step Ahead Forecast


⚙️ How to Run

Want to reproduce the analysis and forecasts yourself? Follow these steps to run the code:

  1. Clone the repository:
    git clone https://github.com/Arslan2003/Uz_Inflation.git
    cd Uz_Inflation
    
  2. Ensure your files are in place:
    Uz_Inflation.R - the main R script containing the code.
    Uzb_monthly_inflation.csv - dataset of monthly inflation changes.
  3. Install required R packages: Uncomment this line in the code file by removing the #
    # install.packages(c(zoo", "fpp", "forecast", "tseries", "lmtest", "nortest"))
    
  4. Run the R script: Open R or RStudio, and run:
    source("Uz_Inflation.R")
    
  5. Experiment!

🤝 Contributions

This project can be used to practice using the tools or applying the methods listed above. If you are looking to contribute to the project, I will be happy to collaborate! Here are a few ideas to get you started on how you could contribute to this project:

  • Extend to SARIMA for seasonality modelling.
  • Compare with Machine Learning models (e.g., LSTM).
  • Broaden the dataset to include other macroeconomic indicators.

🧑‍💻 Author

Arslonbek Ishanov - First-Class Data Science Graduate.


⚖️ License

This project is licensed under the MIT License.
See the LICENSE file for full terms.


📚 References


🔗 Learn More

Do you want to find out more details about this project? Read the report.


🏷️ Tags

R Time-Series Statistics Econometrics ARMA Uzbekistan Inflation Forecasting

About

Time series analysis of Uzbekistan's monthly inflation (2010–2024) using R. Includes detrending, stationarity testing, ACF/PACF analysis, SARIMA modeling, and 1-step ahead forecasting. Dataset sourced from the National Statistics Committee of Uzbekistan.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages