Giter VIP home page Giter VIP logo

time-series-final-project's Introduction

Time_Series_Final_Project

This project is for FRE6351 Econometrics and Time Series course. In this project, inflation data (CPI YOY index) is analyzed, using various time series models.

Python code final_project.py detrends and removes seasonality from the inflation data, then uses Dickey-Fuller test (written by Kuan-Wei Chen) to ensure stationality. The code then outputs an excel for further process from R which has various time series algorithms and models packages built-in.

R code FRE6351_Final_Project.r extracts the processed data from Excel file, then fits it to four ARMA models: ARMA(1,q), ARMA(p,q), pure MA and pure AR. Manual model selection is done through nested for loop to search for the lowest AIC values (written by Yun-Feng Lee). In each model, various algorithms (Burg, Yule-Walker, etc) are used to estimate the respective coefficients.

The last portion includes forecasting and Fourier Transform. Forecasting is done using the built-in package forecast. The four selected models mentioned above are forecasted using the default setting which is exponential smoothing; by default, since there is no seasonality, ets forecasts quickly converge to zero. Considering past volatility in inflation data, it is unsatisfactory to have such forecasts. Therefore, original data with trend and seasonality is fitted and forecasted using arima model.

Fast Fourier Transform function in R is adapted from catatrophic-failure's code in Stack Overflow Forum: Perform Fourier Analysis to Time Series in R.

time-series-final-project's People

Contributors

michaelthewise avatar congchong5 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.