📊 SARIMA Model Interactive Visualization

Seasonal ARIMA with Classic Airline Passenger Dataset

Created by Dr. Pedram Jahangiry | Enhanced with Claude

Fit a seasonal ARIMA model to the classic Box-Jenkins airline passenger counts (monthly, 1949-1960) in your browser. Set the orders with the sliders, then press Update Model and the chart refits by conditional least squares: the dashed line is the forecast, and the band around it is a 95% prediction interval.

1
1
0
0
1
0
12 (Monthly)
36
Answer key searches p, q ≤ 3 and P, Q ≤ 1 with your d, D and m
Current Model: SARIMA(1,1,0)(0,1,0)₁₂

📚 Understanding SARIMA Models

SARIMA(p,d,q)(P,D,Q)ₘ

SARIMA (Seasonal ARIMA) extends ARIMA by adding seasonal components to capture repeating patterns at fixed intervals (like monthly or quarterly seasonality).

Non-Seasonal Parameters (p,d,q)

  • p: AR order - captures short-term autocorrelation
  • d: Differencing degree - removes trend
  • q: MA order - models error terms

Seasonal Parameters (P,D,Q)ₘ

  • P: Seasonal AR - relates current to m periods ago
  • D: Seasonal differencing - removes seasonal trend
  • Q: Seasonal MA - seasonal error structure
  • m: Season length (12 for monthly, 4 for quarterly)

Airline Passenger Dataset

  • Period: Monthly, Jan 1949 - Dec 1960 (144 observations)
  • Pattern: Clear upward trend + strong yearly seasonality
  • Default model: SARIMA(1,1,0)(0,1,0)₁₂, a parsimonious starting point. Press Find the Best Fit to rank the alternatives.
  • Features: Parsimonious model with differencing handling both trend and seasonality

Model Selection Tips

  • Use ACF/PACF plots to identify p and q
  • Apply differencing (d,D) until series is stationary
  • Set m to match your data frequency (12 for monthly)
  • Compare models using AIC, AICc, or BIC criteria

Educational Insight: The default model SARIMA(1,1,0)(0,1,0)₁₂ uses:
• d=1 to remove the trend through first differencing
• D=1 to remove seasonal pattern through seasonal differencing
• p=1 for short-term AR(1) autocorrelation
• P=0, Q=0 meaning seasonal differencing alone handles seasonality without additional AR/MA terms
• This is a parsimonious model that captures both trend and seasonality efficiently

⭐ What does "Find the Best Fit" do?

It fits every SARIMA(p, d, q)(P, D, Q)m with p and q from 0 to 3 and P and Q from 0 to 1, keeping the d, D and m you set, which is 64 candidate models. Each one is estimated by the same conditional least squares that runs when you press Update Model. The candidates are then ranked by AICc, the corrected Akaike information criterion, and the winner is applied to the sliders and the chart. The table lists the top six so you can see how close the race was.