Prophet is an open-source forecasting library that models a time series as the sum of a piecewise trend, Fourier-based seasonal components and holiday effects, fitted as a Bayesian regression on time. In the field of time series & forecasting, it is best known as a tool that lets analysts produce reasonable automated forecasts for business metrics with little statistical tuning.
The library was released in 2017 by the Core Data Science team at Facebook, which is why it is still widely called Facebook Prophet. It is available for Python and R, uses the probabilistic language Stan for estimation, and expects a simple table with a date column named ds and a value column named y.
How the Prophet model decomposes a series
Prophet treats forecasting as a curve-fitting problem rather than a classical autoregressive process. Its core equation is y(t) = g(t) + s(t) + h(t) + e(t), where each term captures a distinct, interpretable source of variation and the error term absorbs everything the model cannot explain.
| Component | What it captures | How it is modeled |
|---|---|---|
| Trend g(t) | Long-run growth or decline | Piecewise linear or logistic curve with changepoints |
| Seasonality s(t) | Repeating yearly, weekly or daily cycles | Truncated Fourier series |
| Holidays h(t) | Irregular calendar events | Indicator variables with optional windows |
| Regressors | Known external drivers | Additional linear terms |
| Error e(t) | Unexplained noise | Assumed normally distributed |
The trend can bend at changepoints, points in time where the growth rate is allowed to shift. By default, Prophet places 25 candidate changepoints in the first 80% of the history and applies a sparse Laplace prior so that most of them have almost no effect. Logistic growth with a user-defined capacity suits quantities that saturate, such as market adoption.
Seasonality uses Fourier terms, sums of sine and cosine waves whose number is set by the Fourier order. Higher orders let the seasonal curve change shape faster but also raise the risk of overfitting. Seasonal effects can be additive or multiplicative, the latter scaling with the trend level.
Key parameters that control Prophet forecasts
Most tuning in Prophet comes down to a small set of prior scales, which act as regularization strengths. Larger values make a component more flexible; smaller values pull it toward a smooth or zero effect. The table lists the parameters that matter most in practice.
| Parameter | Default | Effect of increasing it |
|---|---|---|
| changepoint_prior_scale | 0.05 | More flexible trend, wider future uncertainty |
| seasonality_prior_scale | 10 | Stronger, less smoothed seasonal effects |
| holidays_prior_scale | 10 | Larger holiday spikes and dips |
| changepoint_range | 0.8 | Allows trend changes closer to the end of the data |
| yearly Fourier order | 10 | Sharper, more detailed yearly pattern |
| interval_width | 0.8 | Wider reported uncertainty band |
The changepoint prior scale usually has the largest impact. Practitioners commonly search it over a range of roughly 0.001 to 0.5 using the built-in time series cross-validation helper, which simulates historical forecasts with a chosen initial window, step and forecast horizon.
By default, the model is estimated with maximum a posteriori optimization, which takes seconds. Full MCMC sampling is optional and adds uncertainty for seasonal components, at a much higher compute cost. The standard uncertainty interval is 80%, based mainly on simulated future trend changes.
Prophet also accepts extra regressors, external variables such as price, marketing spend or temperature that enter the model as linear terms. The important constraint is that future values of every regressor must be known or forecast separately before predicting, otherwise the model cannot produce output. Custom seasonalities, for example a monthly cycle or a pattern that applies only during a school term, can be added with their own period and Fourier order. Since version 1.0, the Python package is published as prophet instead of the older fbprophet name, which still appears in many tutorials.
Prophet compared with other forecasting methods
Prophet sits between classical statistical models and modern deep forecasters. Its main strength is interpretability and ease of use, not raw accuracy, and that trade-off defines when it fits.
| Method | Core idea | Strength | Weakness |
|---|---|---|---|
| Prophet | Additive regression on time | Readable components, holiday handling | No autoregressive memory |
| ARIMA | Autoregression on differenced data | Strong short-horizon accuracy | Needs stationarity and expertise |
| ETS model | Exponential smoothing of level, trend, season | Fast, robust baseline | Limited external drivers |
| DeepAR and N-BEATS | Neural global models | Learn across many series | Need more data and tuning |
A critical difference is that Prophet does not use recent observations directly as inputs. If a series behaves like a random walk, a model with lag features or a simple naive forecast often wins at short horizons. Several independent benchmarks have found Prophet frequently matched or beaten by simple baselines, so it should always be compared against them.
When Prophet works well and when it fails
Prophet performs best on daily or sub-daily business data with several seasons of history, strong recurring calendar patterns and known holidays. Typical examples include web traffic, store visits and app sign-ups, where a clear weekly and yearly rhythm dominates the signal.
- Good fit: at least one to two years of history for a reliable yearly pattern.
- Good fit: analysts who need to explain forecasts through trend and seasonal plots.
- Poor fit: short, noisy or intermittent demand series with many zeros.
- Poor fit: series driven by momentum, where recent values predict the next ones better than calendar effects.
Common mistakes include extrapolating an overfitted trend far into the future, forgetting to add holidays relevant to the business, and evaluating the model with random rather than time-ordered splits. Forecast bias should also be checked, because an aggressive late changepoint can push all future values in one direction.
The simple explanation
Prophet is a tool that predicts future numbers from past dates. It splits a history into a few simple parts. One part is the long-term direction. Another is the repeating rhythm, such as busy weekends. A third covers special days, such as holidays.
It then adds those parts together to draw the future. The result is easy to read and explain. It does not try to learn every small swing. So it suits steady business patterns well, but it can miss sudden, short-term changes.
How it is used in practice
An online grocery retailer needs daily order forecasts for the next 60 days to plan warehouse staffing. An analyst loads three years of daily orders into Prophet, enables yearly and weekly seasonality, and adds the country’s public holidays plus a custom event for an annual promotion week.
Cross-validation with a 60-day horizon shows that raising the changepoint prior scale from 0.05 to 0.2 reduces the error by a few percentage points without making the trend erratic. The component plots reveal weekend peaks and a December surge, which managers find easy to understand. The team also runs a seasonal naive baseline, confirms that Prophet beats it on this series, and uses the 80% interval to set minimum and maximum staffing levels.