Giter VIP home page Giter VIP logo

time-series-analysis's Introduction

Time Series Analysis

This project contains applications of Time Series modeling on different data sets. With a focus on advanced models such as ARIMA and SARIMA, step-by-step analysis of the data set was performed along with addressing trends and seasonality in the data and using forecasting methods for specific periods of time. The common steps performed in Time Series Analysis and modeling are:

  1. Load the data set. If the data set is not a time series object, convert it using different packages in R such as xts. See more resources here.

  2. Plot the time series data- in R, one can use the basic plot() function or plotly's ts_plot() from TSstudio library

  3. Initial analysis: check for trends and seasonality in the time series data. Use the decompose() function in R to view trends, seasonality, outliers and any other patterns in the data.

  4. Perfom the Ljung-Box test to check for correlation between the lags of the time series. If p-value <0.05, there is significant autocorrelation between the lags in the time series data.

  5. Remove trend- Differentiate the data using diff() operator in R. value(t) = observation(t) - observation(t-1). Plot the differenced time series data and check for trends again.

  6. Perform Ljung-Box test again to check whether the trend was removed (p-value >0.05).

  7. Plot ACF and PACF for the time series data to decide the parameters for the ARIMA model.

  8. Apply ARIMA model to the time series data and chose the model with the lowest AIC.

time-series-analysis's People

Contributors

nikita-pardeshi avatar

Watchers

 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.