AdvanceTS1handson - Jupyter Notebook
AdvanceTS1handson - Jupyter Notebook
To run the code in each cell click on the cell and press shift + enter
In this hands-on you will be finding the auto correlation and partial auto correlation on an array
of numbers.
Run the below cell to load the data and covert it to series object
Auto correlation
/home/user/.local/lib/python3.5/site-packages/statsmodels/tsa/stattools.py:572:
FutureWarning: fft=True will become the default in a future version of statsmod
els. To suppress this warning, explicitly set fft=False.
FutureWarning
https://serverco4rg9vb-ws-dev-server-8000.in-dc-5.projects.hackerrank.net/notebooks/AdvanceTS1handson.ipynb 1/3
4/5/22, 3:05 PM AdvanceTS1handson - Jupyter Notebook
Questions
what is the auto correlation for lag 1?, assign this rounded off to 2-decimal value to variable
acf_lag_1
what is the partial auto correlation for lag 3?, assign this rounded off to 2-decimal value to
variable pacf_lag_3
0.72
-0.28
18f154fce2b7eef7981dd860d1fa6dc0
34f45f03be2059ba3f824e7ddda60505
In [ ]:
https://serverco4rg9vb-ws-dev-server-8000.in-dc-5.projects.hackerrank.net/notebooks/AdvanceTS1handson.ipynb 2/3
4/5/22, 3:05 PM AdvanceTS1handson - Jupyter Notebook
https://serverco4rg9vb-ws-dev-server-8000.in-dc-5.projects.hackerrank.net/notebooks/AdvanceTS1handson.ipynb 3/3