ARIMA vs Prophet vs Gradient Boosting

Three ways to forecast a time series, and when each one wins.

🔴 advanced5 min readtime-series
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)
DimensionARIMA / SARIMAXProphet (Meta)XGBoost / LightGBM
Underlying ModelLinear Autoregressive (p,d,q)Non-Linear GAM Curve-FittingEnsembles of Decision Trees
Stationarity Needed?Yes (Requires differencing d)No (Handles trend internally)No (Handles non-linear trends)
Missing Data HandlingFails (Requires continuous time step)Robust (Curve fitting handles gaps)Robust (Native missing values)
Multiple SeasonalityComplex (SARIMAX gets heavy)Native (Daily, Weekly, Yearly)Native (Engineered calendar features)
Exogenous FeaturesSupported (SARIMAX)Supported (Extra regressors)Extremely Strong (Hundreds of features)
Multi-Item Scaling1 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 yt′=Δdyty'_t = \Delta^d y_t:

yt′=c+∑i=1pϕiyt−i′+∑j=1qθjϵt−j+ϵty'_t = c + \sum_{i=1}^p \phi_i y'_{t-i} + \sum_{j=1}^q \theta_j \epsilon_{t-j} + \epsilon_t

2. Prophet Decomposition Model

y(t)=g(t)+s(t)+h(t)+ϵty(t) = g(t) + s(t) + h(t) + \epsilon_t

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

Check yourself

Question 1 of 3

What do the three parameters (p, d, q) represent in an ARIMA(p, d, q) model?

More in Classical ML

See all →
Bias–Variance Tradeoff4 minOverfitting vs Underfitting3 minLinear Regression4 min