altheanabila / Decomposing-Time-Series-Simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decomposing-Time-Series-Simulation

This time, I would like to doing a simulation of time series decomposition. We will break down into 2 kind of decomposition which are multiplicative and additive. Using a dummy dataset us-airlines-monthly-aircraft-miles-flown.csv, we capture the decomposition in both ways.

  1. import related libraries

text image

  1. load the dataset, and indexing the date

textimage

  1. running the seasonal decomposition for additive model result = seasonal_decompose(decomp_df['MilesMM'], model='additive')

textimage

  1. running the seasonal decomposition for multiplicative model

result2 = seasonal_decompose(decomp_df['MilesMM'], model='multiplicative')

textimage

About


Languages

Language:Jupyter Notebook 100.0%