Advanced maths

ARIMA forecast calculator from a time series

ARIMA combines autoregressive dependence, differencing and moving-average innovations.

Your numbers

25–300 equally spaced values.
0–2.
0 or 1.
0–2.
1–30.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

ARIMA combines autoregressive dependence, differencing and moving-average innovations. This bounded calculator estimates a nonseasonal model by conditional sums of squares under explicit pre-sample conventions. It reports coefficients, innovation variance and conditional normal forecast intervals, keeping parameter uncertainty outside those intervals rather than implying complete forecast coverage.

THE FORMULAphi(B)(z_t−mu)=theta(B)epsilon_t; z_t=(1−B)^d y_t.

A worked example

The default ARIMA(0,0,0) model estimates the sample mean and population innovation variance. Every future point forecast equals that mean, and each conditional forecast variance equals the fitted innovation variance. Adding one difference makes forecasts accumulate predicted increments instead of remaining at a fixed level.

Good to know

25–300 observations, p and q at most two, d zero or one and horizon at most 30. Conditional estimation is not exact state-space maximum likelihood. No seasonal terms, automatic order search, missing observations or parameter-uncertainty intervals.

Differencing and mean use one declared convention

The difference order determines whether the model describes observed levels or first differences. With one difference, the fitted mean belongs to increments and acts as a drift after forecasts are accumulated. It should not be read as the long-run level of the original series, which need not have a fixed mean.

Autoregressive coefficients multiply earlier centered values, while moving-average coefficients multiply earlier innovations. The signs follow the printed equation. Some packages report equivalent polynomials with opposite moving-average signs, so comparisons must align the actual forecast recurrence rather than only comparing similarly named coefficient arrays.

White-noise forecasts stay at the estimated meanConditional intervalsARIMA(0,0,0): constant forecast
The default ARIMA(0,0,0) model estimates the sample mean and population innovation variance. Every future point forecast equals that mean, and each conditional forecast variance equals the fitted innovation variance. Adding one difference makes forecasts accumulate predicted increments instead of remaining at a fixed level.

The Simple exponential smoothing calculator covers the nearby task. ARIMA models lagged values and innovations after differencing, not an exponential-level smoother.

Conditional estimation has a specific starting assumption

Conditional sums of squares assumes pre-sample centered values and innovations are zero. The fitted objective omits the initial burn-in rows needed by the selected orders. An exact state-space likelihood handles starting uncertainty differently and can give different estimates in short samples, even under the same p,d,q notation.

The coefficient transformation restricts fitted autoregressive and moving-average polynomials to the supported stationary/invertible region. Optimization can still fail or approach a numerical boundary. The solver returns an error if its finite conditional fit does not converge, instead of increasing coefficient magnitude until a plausible-looking forecast appears.

Forecast bands omit parameter uncertainty

Forecast uncertainty propagates future innovations through the fitted recurrence. With differencing, accumulated impulse responses determine level uncertainty, so the variance typically grows with horizon. The normal bands condition on the estimated coefficients and innovation variance; they do not incorporate uncertainty from estimating those parameters or selecting the model order.

The white-noise default provides an analytic mean and variance check, while higher-order tests compare an independent conditional objective and forecast recursion. Equally spaced observations and a stable data-generating interpretation remain assumptions. Seasonality, structural breaks, missing time points and automatic order selection are deliberately outside this initial implementation.

Interpret p, d and q as different operations

The differencing choice d=1 replaces levels yt by changes yt−yt−1 before fitting. The autoregressive order p uses previous centered changes or levels, while q uses previous innovations. The model fitted here is zt−μ=Σφj(zt−j−μ)+εt+Σθjεt−j. Thus μ is the mean of the modeled series; after one difference it is a drift in levels, not the level itself.

The fit minimizes a conditional residual sum of squares after a short initialization period. Missing pre-sample innovations and centered values are initialized as stated in the result note. Exact state-space likelihood can treat initialization differently, so coefficients from another ARIMA package need not match unless estimation, mean and differencing conventions are aligned.

Check an AR(1) forecast recursion

For a fitted mean μ=10 and autoregressive coefficient φ=0.6, a last observation 14 gives a one-step forecast 10+0.6×(14−10)=12.4. Setting future innovations to their conditional mean zero gives the next forecast 10+0.6×(12.4−10)=11.44. In general, the h-step forecast approaches 10 as 0.6^h×4 decays.

This is a hand calculation for stated fitted parameters, not a claim that this page accepts coefficients directly. If d=1 instead, forecasts of changes must be accumulated onto the last observed level. A constant predicted change of 0.5 adds 0.5,1.0,1.5 to that last level at the first three horizons, explaining why a mean in the differenced series creates a trend in forecasts.

Understand what the forecast bands omit

For stationary ARMA forecasts, the innovation-response weights ψj determine the conditional error variance σ²Σψj². For integrated forecasts, those responses are accumulated before squaring. This generally makes uncertainty grow with horizon; simply repeating the one-step band around every future point would ignore new innovations entering the process.

The printed 95% limits use a normal approximation conditional on estimated parameters. They omit uncertainty in coefficients and order selection, and they do not protect against structural breaks, changing variance or an unsuitable distribution. They are not a promise that 95% of every future operational outcome will lie inside them. Compare forecast errors on a time-ordered holdout before relying on the model.

Use a disciplined order-selection workflow

First verify equally spaced observations and inspect levels and changes. Excessive differencing can create unnecessary negative autocorrelation, while leaving a trend in levels can make a stationary model misleading. Fit a small set of plausible orders and inspect residual autocorrelation rather than trying every option until the in-sample fit looks smooth.

Keep the horizon meaningful relative to the history and the stability of the process. This page supports only p,q≤2 and d≤1, with no seasonal terms or automatic order search. Its optimizer also constrains coefficient parameterizations away from nonstationary and noninvertible boundaries. A boundary-sensitive process may need a richer time-series workflow rather than an interpretation that this bounded fit has resolved the uncertainty.

A few questions, answered

Is this exact state-space ARIMA likelihood?

No. It explicitly minimizes a conditional sum of squared innovations under fixed pre-sample assumptions.

Do the intervals include parameter uncertainty?

No. They condition on fitted coefficients and innovation variance.

Can I enter coefficients for the AR(1) worked calculation?

No. The form estimates coefficients from observations. The stated-parameter recursion teaches how to read the resulting forecasts.

Why can my result differ from exact-likelihood ARIMA software?

Conditional sums of squares, initialization, mean/drift conventions and parameter restrictions can differ. Match those choices before comparing coefficients.

Find your calculator

Start typing to explore the library.