Arima
Arima
These are popular time series forecasting models used to predict future values based on past
data.
● Plot PACF and look for the first significant lag (where PACF cuts off).
● Plot ACF and look for the first significant lag (where ACF cuts off).
Finding P, Q, D, s in SARIMA
● D: Seasonal differencing order (check seasonal stationarity using ADF test).
● P & Q: Identify seasonal AR & MA orders using seasonal lags in PACF & ACF plots.
Example Workflow
1. Check stationarity (ADF test).
○ If the ACF plot gradually declines → The series is not stationary (trend
exists).
○ If the ACF plot cuts off sharply at lag q → That’s the best estimate for q in
ARIMA(p, d, q).
4+ Close to 0 No correlation
🔹 Key Takeaway:
ACF tells us if past forecast errors (q values) should be included in the model.
2. PACF (Partial Autocorrelation Function)
● Measures correlation between a time series and its past values, but removes indirect
effects.
○ If PACF sharply cuts off at lag p, this suggests p for ARIMA(p, d, q).
🔹 Key Takeaway:
PACF helps determine the number of past values to include in the AR component.
● Null Hypothesis (H₀): The series is not stationary (it has a trend).
○ p-value > 0.05 → Fail to reject H₀, meaning the series is not stationary.
🔹 Key Takeaway:
If ADF test shows the series is non-stationary, apply differencing d times until it becomes
stationary.
2. Find p:
○ Use PACF plot → The lag where PACF cuts off is the value of p.
3. Find q:
○ Use ACF plot → The lag where ACF cuts off is the value of q.
However, other models exist, and choosing the right model depends on the nature of the data.
● Why use it? Extends ARIMA with seasonal differencing and seasonal components (P,
D, Q, s).
● Example Use Case: Monthly sales forecasting where patterns repeat yearly.
● Why use it? Handles holiday effects and missing values better than ARIMA.
● Why use it? Can handle long-term dependencies and large datasets.
● Example Use Case: Demand forecasting considering weather, promotions, and past
sales.
Advantages of ARIMA
✅ Handles Trend & Noise: Captures underlying patterns by differencing (d).
✅ Works Well on Small Datasets: Unlike deep learning, it does not need large training
data.
✅ Interpretable & Explainable: Unlike black-box models like LSTM.
✅ Combines AR & MA: Handles both past values (AR) and past forecast errors (MA).
✅ Widely Used & Tested: Proven effectiveness across industries.
For a Retail Merchandiser Dashboard, the main KPIs and metrics should provide insights
into sales performance, inventory management, customer behavior, and profitability.
These metrics help clients understand business growth, operational efficiency, and areas
for improvement.
✅ Cart Abandonment Rate (%) – Percentage of users leaving without completing a purchase.