Autoregressive Process - Applied Time Series Analysis in Python and TensorFlow
๐ Get the course at 87% off: https://www.udemy.com/course/applied-time-series-analysis-in-python/?couponCode=TSPYTHON2021
๐ Link to the notebook: https://github.com/marcopeix/AppliedTimeSeriesAnalysisWithPython/blob/main/HOTSAP_AR.ipynb
๐ Link to the dataset: https://github.com/marcopeix/AppliedTimeSeriesAnalysisWithPython/tree/main/data
Email me for a coupon if the one above expired: peixmarco@gmail.com
-----------------------------------
Now, letโs cover the autoregressive model.The autoregressive model uses a linear combination of past values of the target to make a prediction. Since we are talking about autoregression, the regression is made against the target itself.
We refer to the autoregressive model as the AR(p) model, where p is the order.The AR(p) model is very flexible in the sense that it can model many different types of time series patterns. However, keep in mind that the autoregressive model can only be applied to stationary time series, which will constrain the range of the parameters phi.
If we look at the ACF plot, we see some oscillation, as well as a slow decay. This is a hint that it is not a moving average process, and so an autoregressive process must be in play. Now, when we look at the PACF, the partial autocorrelation function plot, then we see that there is no significant peak after lag 2. Therefore, the PACF can be used to determine the order of the AR model.As a side note, the PACF or partial autocorrelation function finds the correlation between the present value and the residuals at a previous lag. Therefore, it finds a correlation that cannot be explained with the ACF.
To recap, if you plot the ACF and you see a decay or a sinusoidal pattern, then it suggests an autoregressive process.Plotting the PACF will allow you to estimate the order of the AR model. In this case, we saw that it is of order 2, since after lag 2, the coefficients are not significant.
Watch on YouTube โ
(saves to browser)
Sign in to unlock AI tutor explanation ยท โก30
Playlist
Uploads from Data Science with Marco ยท Data Science with Marco ยท 15 of 38
1
2
3
4
5
6
7
8
9
10
11
12
13
14
โถ
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Linear Regression in Python | Data Science with Marco
Data Science with Marco
Classification in Python | logistic regression, LDA, QDA | Data Science With Marco
Data Science with Marco
Resampling and Regularization | Data Science with Marco
Data Science with Marco
Decision Trees | Data Science with Marco
Data Science with Marco
Suppor Vector Machine (SVM) in Python | Data Science with Marco
Data Science with Marco
Unsupervised Learning | PCA and Clustering | Data Science with Marco
Data Science with Marco
Data Science Portfolio Project: Regression #1 | Data Science with Marco
Data Science with Marco
Data Science Portfolio Project: Regression #2 | Data Science with Marco
Data Science with Marco
What Are Time Series - Applied Time Series Analysis in Python and TensorFlow
Data Science with Marco
Basic Statistics - Applied Time Series Analysis in Python and TensorFlow
Data Science with Marco
Autocorrelation and White Noise - Applied Time Series Analysis in Python and TensorFlow
Data Science with Marco
Stationarity and Differencing - Applied Time Series Analysis in Python and TensorFlow
Data Science with Marco
Random Walk Model - Applied Time Series Analysis in Python and TensorFlow
Data Science with Marco
Moving Average Process - Applied Time Series Analysis in Python and TensorFlow
Data Science with Marco
Autoregressive Process - Applied Time Series Analysis in Python and TensorFlow
Data Science with Marco
ARMA Model - Time Series Analysis in Python and TensorFlow
Data Science with Marco
What is data science?
Data Science with Marco
Answering DATA SCIENCE questions #1 - Why learn SQL when Python and R exist?
Data Science with Marco
R vs Python in the Industry - Data Science Q&A #datascience #datasciencecareer #careeradvice
Data Science with Marco
Data science or data engineering - which is best for you? #datascience #datasciencecareer
Data Science with Marco
Where to find data for data science projetcs? #datascience #datasciencecareer
Data Science with Marco
Data science certificates on resume? #datascience #datasciencecareer #careeradvice
Data Science with Marco
Should you aim for data science or data engineering? | Data Science Q&A #1
Data Science with Marco
Don't waste time on this | #datascience #datasciencecareer
Data Science with Marco
Low-code AI tools - are they good? | #datascience #datasciencecareer #careeradvice
Data Science With Marco
How to grow as a data scientist after 2+ years of experience? #datascience #datasciencecareer
Data Science with Marco
Transition into DATA SCIENCE without a masters or bootcamp #careertransition
Data Science With Marco
How to improve your data science profile?
Data Science With Marco
How to learn Python for data science?
Data Science With Marco
Does Scrum/Agile work for data science?
Data Science With Marco
What are the major roles in analytics and how to choose?
Data Science with Marco
Thoughts and advice for a live SQL coding round
Data Science With Marco
Data science interview question: difference between type 1 and type 2 error
Data Science With Marco
Feature selection in machine learning | Full course
Data Science With Marco
Anomaly detection in time series with Python | Data Science with Marco
Data Science With Marco
Podcast - TimeGPT, predicting the future, and more
Data Science With Marco
Big announcement - Revealing my new book
Data Science With Marco
Get Started in Time Series Forecasting in Python | Full Course
Data Science With Marco
More on: Research Methods
View skill โRelated AI Lessons
โก
โก
โก
โก
The ABCs of reading medical research and review papers these days
Medium ยท LLM
#1 DevLog Meta-research: I Got Tired of Tab Chaos While Reading Research Papers.
Dev.to AI
How to Set Up a Karpathy-Style Wiki for Your Research Field
Medium ยท AI
The Non-Optimality of Scientific Knowledge: Path Dependence, Lock-In, and The Local Minimum Trap
ArXiv cs.AI
๐
Tutor Explanation
DeepCamp AI