ARIMA vs Prophet vs Gradient Boosting
Three ways to forecast a time series, and when each one wins.
These are three ways to forecast a time series. ARIMA is a classic statistical model that predicts the next value from recent values and recent errors, after removing the trend, and it suits short, steady series. Prophet, from Meta, fits a smooth trend plus weekly and yearly patterns and holiday effects, and is easy to use on business data. Gradient boosting treats forecasting as ordinary tabular prediction using lagged and rolling features, and often wins when you have many related series.
Comparison Matrix
ARIMA (p, d, q) PROPHET (Meta) XGBoost / LightGBM
Autoregressive Linear Lags Generalized Additive Model Tabular Supervised Regression
y_t = c + φ_1 y_{t-1} + θ_1 ε_{t-1} y(t) = g(t) + s(t) + h(t) + ε_t y_{t+1} = GBDT(Lags, Rolling, Features)
| Dimension | ARIMA / SARIMAX | Prophet (Meta) | XGBoost / LightGBM |
|---|---|---|---|
| Underlying Model | Linear Autoregressive (p,d,q) | Non-Linear GAM Curve-Fitting | Ensembles of Decision Trees |
| Stationarity Needed? | Yes (Requires differencing d) | No (Handles trend internally) | No (Handles non-linear trends) |
| Missing Data Handling | Fails (Requires continuous time step) | Robust (Curve fitting handles gaps) | Robust (Native missing values) |
| Multiple Seasonality | Complex (SARIMAX gets heavy) | Native (Daily, Weekly, Yearly) | Native (Engineered calendar features) |
| Exogenous Features | Supported (SARIMAX) | Supported (Extra regressors) | Extremely Strong (Hundreds of features) |
| Multi-Item Scaling | 1 model per item (Slow) | 1 model per item (Parallelizable) | 1 global model for 100k SKUs |
Mathematical Formulations
1. ARIMA(p, d, q)
For stationary series :
- (AR): Partial Autocorrelation Function (PACF) determines .
- (I): Order of differencing needed for stationarity.
- (MA): Autocorrelation Function (ACF) determines .
2. Prophet Decomposition Model
- : Piecewise linear or logistic growth trend.
- : Fourier series modeling seasonality (Weekly , Yearly ).
- : Holiday effects matrix.
Say this out loud
"ARIMA is a linear statistical model combining autoregressive lags p, differencing d, and moving average error terms q, requiring strict stationarity. Prophet is an additive curve-fitting model robust to missing data and multiple seasonalities. For large-scale enterprise e-commerce with thousands of SKUs and exogenous features (prices, promotions), we use LightGBM/XGBoost to train a single global model across all items."
Follow-ups to expect
- What is DeepAR (Amazon)? An autoregressive recurrent neural network model that learns probabilistic forecasters across thousands of related time series simultaneously, predicting full predictive probability distributions rather than point estimates.
- How do you choose between ARIMA and SARIMAX? SARIMAX adds Seasonal terms and exogenous regressors , essential when modeling data with fixed seasonal periods (e.g. quarterly or monthly cycles).
Check yourself
Question 1 of 3
What do the three parameters (p, d, q) represent in an ARIMA(p, d, q) model?