Eyestech
  • Home
  • Apps and Services
  • Mobiles
  • Tech News
  • Contact us
Instagram
Eyestech
Eyestech
  • Home
  • Apps and Services
  • Mobiles
  • Tech News
  • Contact us
  • Data science

Time series: steps involved in time series modeling

  • February 24, 2020
  • kris
Total
30
Shares
30
0
0

Steps involved in time series modeling

Check for stationary or Non-Stationary – Now What is Stationary OR Non-stationary ?

Stationary:- A series is said to be stationary if it’s mean and variance is constant over a time of period. If a series does not follow any pattern

Non- Stationary:- A Series is said to be Non-stationary if it follows some pattern like trend, seasonality, cyclic, Randomness (In General, In time series there are only two pattern Trend and Seasonality)

Trend, Seasonality, Cyclic, and Randomness are also known as time series component

QUESTION:- HOW WILL YOU KNOW IF DATA IS STATIONARY OR NON STATIONARY? = WE CAN USE PLOT- or statistical tests like Augmented Dicay fuller test, KPSS Test- These statistical tests work on the hypothesis to find if series is stationary or not. You know about them on Wikipedia.

The Next Step is about fixing making a non-stationary series to a stationary series.

2. Techniques to Make a series stationary from non-stationary:-

Differencing:- This is a very common and best approach to make a series stationary from non-stationary. It is done by substracting previous observations from the current observations. Many times we are required to perform many rounds of differencing to eradicate the patterns from our series.

Smoothing – After plotting or using some statistical tests if you come across with non-stationary situation or find some pattern in data you can use smoothing techniques to fix it. Exponential smoothing techniques – It assigns exponentially decreasing weights from newest to older. Means it Older data(observation) is given less weight, New Observations are given more weights

Simple Exponential Smoothing – It uses a weighted moving average with exponentially decreasing weights.

St = αyt-1 + (1 – α) St-1

Hyperparameters:

Alpha: Smoothing factor for the level.

Double Exponential Smoothing:– If you find a trend in your series you can use Double exponential smoothing technique.

bt = γ(St – St-1) + (1 – γ)bt-1

Hyperparameters:

Alpha: Smoothing factor for the level.

Beta: Smoothing factor for the trend.

Trend Type: Additive or multiplicative.

Dampen Type: Additive or multiplicative.

Phi: Damping coefficient.

Triple Exponential Smoothing Technique:- If your series or data shows trend and Seasonality, use Triple exponential smoothing technique, In this Technique, In addition to the alpha and beta smoothing factors, a new parameter is added called gamma (g) that controls the influence on the seasonal component.

Hyperparameters:

Alpha: Smoothing factor for the level.

Beta: Smoothing factor for the trend.

Gamma: Smoothing factor for the seasonality.

Trend Type: Additive or multiplicative.

Dampen Type: Additive or multiplicative.

Phi: Damping coefficient.

Seasonality Type: Additive or multiplicative.

Period: Time steps in the seasonal period.

Other Techniques to fix non-stationary series are POWER TRANSFORMATION, MA smoother

3. After fixing or making our Non Stationary series to a stationary- It is time to build or decide which model to use. There are many times of Models in Time series

AR (Auto-Regressive)– We will use this model if we want to forecast new value based on previous value. It has just one parameter P (It is order)

AR[1] – We write this if the current value is based on 1 previous value, AR[2] if the current value is based on 2 previous values, etc.

MA (Moving Average)– We will use this model if we want to forecast taking error term. It has one parameter q, where q is the number of lags

yt = f{et, et-1, et-2....}

et is error term or white noise with a time interval

ARMA ( Auto-Regressive and moving average) – This model forecast new value by taking previous value as well as error term. it has two parameters p and q

ARIMA( Auto-Regressive integrated moving average) – This model is basically used if data is non-stationary because it has a parameter d (stands for differencing which is one of the techniques to make a non-stationary to stationary) is basically I integration.

Once our data is Stationary we use ACF, PACF to know which model to use

ACF plot – Autocorrelation function plot. It is also a plot that shows autocorrelation if it finds a positive autocorrelation at lag 1 we can go with the AR model If negative autocorrelation at lag 1 we can go with MA.

PACF Plot– It shows the degree of autocorrelation or strength of the relationship

Above we understood about ACF and PACF plot- Now let’s understand their functions

ACF stands for Autocorrelation function- It helps us to find difference between the observation at the current time spot and the previous time spot.

PACF stands for Partial Autocorrelation function – It does the same thing as ACF-adding a few extra points like PACF calculate the influence of other previous days value on current value.

After deciding the model, You can pick a model to forecast, or you can also try with many models for the same data. and check its correctness by using metrics like AIC and BIC- Consider a model as good if it gives the lowest AIC or BIC.

Total
30
Shares
Share 30
Tweet 0
Pin it 0
Avatar
kris

Previous Article
  • Mobiles

Samsung Galaxy Z Flip: A big step in a future of foldable Smartphones (2020)

  • February 19, 2020
  • Aayushi yadav
View Post
Next Article
  • Mobiles

Samsung Z Flip vs Motorola Razor :Which one is the most fun flip foldable phone of 2020

  • February 26, 2020
  • Aayushi yadav
View Post

Subscribe

Subscribe now to our newsletter

You May Also Like
View Post
  • Data science

Machine Learning : Everything you need to know

  • Pratyush patwa
  • May 23, 2020
View Post
  • Data science

what is cloud computing :Introduction to Cloud and Cloud Computing

  • Pratyush patwa
  • May 14, 2020

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Featured Posts
  • 1
    7 Best Google Chrome Flags : How to enable Chrome Flags
    • January 26, 2021
  • LG wing 2
    LG Wing : The Flip Phone of 2020 Which will Surprise You
    • January 24, 2021
  • Procreate Alternatives For Windows 3
    Best 5 Procreate Alternatives For Windows And Android
    • January 24, 2021
  • Best nova launcher themes 4
    5 Coolest Nova Launcher Theme for 2021
    • January 23, 2021
  • FAKE INCOMING CALL APPS FOR ANDROID 5
    BEST 5 FAKE INCOMING CALL APPS FOR ANDROID
    • January 22, 2021

Subscribe

Subscribe now to our newsletter

Eyestech
Juggernaut of positrons

Input your search keywords and press Enter.