Skip to main content

Prediction & Causal Analysis · Comparison

Prophet vs LightGBM
for demand forecasting.

Prophet fits one model per series from trend, yearly and weekly seasonality and holidays, so it gives a reasonable, explainable forecast from a few seasons of history with very little feature work. LightGBM is a gradient-boosted tree model, usually trained as one global model across many items with lag, calendar, price and promotion features; with enough history and related series, it learns driver effects and cross-item patterns that a per-series model cannot. Use Prophet for a handful of strongly seasonal, aggregate series, LightGBM for item-level demand at scale, and backtest both against a simple baseline before choosing.

A guide for planning and data teams choosing a forecasting approach. We compare the two on what they need, what they cost to run, how they express uncertainty and how they fail.

The short version

Prophet fits
One additive model per series
LightGBM fits
One global model across items
Decided by
A backtest on your own history
  • A specialist practice of MLAIA Data Science
  • Led by Dr. Yochai Edlitz · Ph.D., Weizmann Institute

Side by side

A decomposition per series,
or one model for every item.

Prophet treats each series as trend plus seasonality plus holidays. LightGBM treats forecasting as a regression on features, and is usually trained across many series at once. That difference drives most of the rows below.

Prophet compared with LightGBM for demand forecasting
CriterionProphetLightGBM
What the model isAn additive regression model fitted per series: a piecewise-linear or logistic trend, Fourier terms for yearly and weekly seasonality, holiday effects and optional regressors. Seasonality can also be multiplicative.Gradient-boosted decision trees on a table of features. For demand, usually one global model trained across many items and locations.
Where it winsA few series with strong, regular seasonality and holidays, such as daily totals for a business or region. Limited history. Teams that want to see the trend and seasonal components.Many items with shared patterns. Demand driven by price, promotions, events and availability. Enough history to compute lags. Nonlinear effects, such as a promotion that works differently in peak season.
Data needsA date and a value per series. At least two full cycles to estimate yearly seasonality well. A holiday calendar. Any extra regressors must be known for the forecast period.Engineered features: lags, rolling statistics, calendar, price and promotion, item and store attributes. Lags must respect the forecast horizon, and drivers must be known or forecast for the future. More history and more related series help.
ComputeOne fit per series. Each fit is light, but thousands of series mean thousands of fits, and tuning multiplies that. Fits run in parallel easily.One training run covers all series and is fast on CPUs. Feature engineering, backtesting and hyperparameter tuning take most of the effort. Prediction is fast.
UncertaintyBuilt-in intervals from trend uncertainty and observation noise. By default they leave out uncertainty in the seasonal terms, so they can be too narrow.Point forecasts by default. Ranges need quantile objectives, conformal prediction or a distributional model, and a check of their coverage in the backtest.
Intermittent demandAssumes continuous, roughly Gaussian noise, so on sparse items it can forecast fractions and negative values. A poor fit for items with many zero periods.Poisson or Tweedie objectives handle counts and many zeros better. Still worth comparing with Croston’s method or TSB on those items.
How it failsTrend changepoints can extend a recent swing too far. Structural breaks and shifting seasonality degrade it. Each series is fitted alone, so new and short-history items get little help.Leakage through features that use information not available at forecast time. Trees can’t extrapolate beyond the target range seen in training, so trends need detrending or differencing. Recursive multi-step forecasts can accumulate error.
Explaining a forecastTrend, seasonality and holiday components can be plotted directly.Feature importance and SHAP values show which drivers moved a forecast. Less direct than a decomposition.

This compares general properties of the two model families. Which one is more accurate depends on your items, history, drivers and horizon, and is settled by a backtest on your own data.

When each one wins

Few seasonal series, or many related items.
And sometimes neither.

Both are reasonable defaults in the right setting. Neither is the right default for every item in a catalogue.

01

Choose Prophet when

You forecast a small number of aggregate series with strong yearly and weekly patterns and known holidays, history is short, and planners need to see why the forecast moved. Exponential smoothing is worth testing alongside it in the same setting.

02

Choose LightGBM when

You forecast many items and locations, demand responds to price, promotions or events, and those drivers are known ahead of time. Global gradient-boosted models were prominent among the top entries in the M5 competition on retail item-level sales.

03

Choose neither when

Most periods are zero: intermittent-demand methods such as Croston’s or TSB are built for that. And when history is very short, a seasonal naive forecast or borrowing from similar items can beat both. Our demand forecasting page covers these cases.

How we’d choose

Set the bar, then backtest.
Choose by item group.

The choice is an empirical one. These are the steps we follow on client data before recommending a model.

Set a baseline

A seasonal naive forecast and exponential smoothing on the same data, next to the method you use today. Any model has to beat them to earn its complexity.

Profile the portfolio

We count the series, measure history length and the share of zero periods, and list which drivers are known ahead of the forecast date.

Backtest at the decision’s horizon

Rolling-origin backtests that use only the data available at each origin, scored with scaled errors such as MASE or RMSSE, bias and quantile loss, by item group.

Choose per segment & monitor

Different groups often get different models, reconciled so item, location and total forecasts add up. Accuracy and drift are monitored after go-live.

Book a 30-minute forecasting review

Before we start

Good questions. Straight answers.

Is LightGBM more accurate than Prophet?

Not always. Global gradient-boosted models often win when there are many related series and useful drivers such as price and promotions. On a few smooth, seasonal series with short history, Prophet or exponential smoothing is often as accurate and simpler to run. A backtest on your own data decides.

How much history does Prophet need?

For yearly seasonality, at least two full years helps it separate seasonality from trend. Weekly seasonality needs only a few months of daily data. With less than a year, no method can learn a yearly pattern from the series alone, so borrowing from similar series becomes necessary.

Can LightGBM forecast new items?

Partly. A global model can forecast an item with little history from its attributes and from similar items, which a per-series model can’t do. Quality depends on how similar the new item really is, so new items should be scored as their own group in the backtest.

Do we have to pick one?

No. Many systems use different models for different item groups, or average several models. What matters is that every candidate goes through the same backtest and that the forecasts add up across the hierarchy.

What about foundation models such as TimesFM or Chronos?

Add them to the same backtest as another candidate. They forecast without training a model per series and do well on many datasets, but support for external drivers such as price and promotions varies by model and version. Our time series article covers when they fit.

Prediction & Causal Analysis · Prophet vs LightGBM

Book a 30-minute
forecasting review.

Bring one forecast or decision you want to improve. In 30 minutes we’ll cover:

  • What your data can realistically support
  • Which model families are worth backtesting
  • How we’d test them against your current method

Please don’t include confidential datasets, credentials or patient information.

yochai@mlaia.com
+972 52 484 6282

Your inquiry is handled under our Privacy Policy.