@daansan_ml
David Andrés 🤖📈🐍
5 months
How can you estimate a suitable value for 'p' in your ARIMA model? Here you have the definite guide! 🧵👇
Tweet media one
8
83
399

Replies

@daansan_ml
David Andrés 🤖📈🐍
5 months
1️⃣ Ensure Stationarity: Start by ensuring the time series data is stationary. This is a crucial step as non-stationary data can lead to unreliable predictions. Differencing can be used to achieve stationarity.
1
1
7
@daansan_ml
David Andrés 🤖📈🐍
5 months
2️⃣ ACF and PACF Plots: After ensuring stationarity, plot the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF). A gradual decline in the ACF plot indicates a potential need for Autoregressive (AR) terms.
1
1
6
@daansan_ml
David Andrés 🤖📈🐍
5 months
3️⃣ Identify Order of AR term: The order of the AR term (p) is chosen based on the PACF plot. Specifically, look for the lag value where partial autocorrelations become not significant. For example, if PACF cuts off at lag 2, set p=2.
1
2
8
@daansan_ml
David Andrés 🤖📈🐍
5 months
4️⃣ Model Estimation and Fit: Fit the ARIMA model with the chosen p, and initial values for d (differencing) and q (moving average). This involves estimating the parameters of the model.
1
1
7
@daansan_ml
David Andrés 🤖📈🐍
5 months
5️⃣ Model Diagnostics: Check the residuals of the model for any obvious patterns. Also, examine the ACF of residuals for significant autocorrelation, which could suggest that some information is not captured by the model.
1
1
6
@daansan_ml
David Andrés 🤖📈🐍
5 months
6️⃣ Refinement: If necessary, adjust the value of p based on the diagnostic results. This is part of the iterative nature of building ARIMA models.
1
1
7
@daansan_ml
David Andrés 🤖📈🐍
5 months
7️⃣ Cross-Validation / Information Criteria: Use information criteria like Akaike Information Criterion (AIC) or Bayesian Information Criterion (BIC) to compare models with different p values. Lower values indicate better fitting models.
2
1
8
@daansan_ml
David Andrés 🤖📈🐍
5 months
Join more than 5k 💊MLPills subscribers and enjoy free Machine Learning and Data Science content straight to your email every week! 💊 Pill of the week: ML concept concisely explained 🤖 Tech Round-Up: hottest 5 AI news of the week 🎓 Learning materials
1
0
3
@daansan_ml
David Andrés 🤖📈🐍
5 months
You should also join our newsletter, DSBoost🚀 Every week we share: 🔹Interviews 🔹Podcast notes 🔹Learning resources 🔹Interesting collections of content Subscribe for free👇👇
0
0
3
@levikul09
Levi
5 months
@daansan_ml Nicely explained!
1
0
1
@daansan_ml
David Andrés 🤖📈🐍
5 months
@levikul09 Thanks Levi!
0
0
1
@LegaYcc
:) Soldier_Son🧑‍💻
5 months
@daansan_ml 😊🙏Thank 🥺 mr Tsa
1
0
1
@daansan_ml
David Andrés 🤖📈🐍
5 months
@LegaYcc Glad you liked it🙂🙂
0
0
0
@avikumart_
Avi Kumar Talaviya
5 months
@daansan_ml ACF and PACF both are important in identifying order of time series
1
0
2
@daansan_ml
David Andrés 🤖📈🐍
5 months
@avikumart_ They're🙂
0
0
1
@tinztwins
Tinz Twins
5 months
@daansan_ml Well explained, David.
1
0
1
@daansan_ml
David Andrés 🤖📈🐍
5 months
@tinztwins Thanks!
0
0
1
@_jaydeepkarale
Jaydeep
5 months
@daansan_ml Learnt something new ;)
1
0
1
@daansan_ml
David Andrés 🤖📈🐍
5 months
@_jaydeepkarale Glad to hear that🙂
0
0
0
@leastsquared_
Alysson
5 months
1
0
2
@daansan_ml
David Andrés 🤖📈🐍
5 months
@leastsquared_ @rafaelbarbosa_s In this case yes! I've just realised that I forgot mentioning that🤦‍♂️
1
0
1