Back

ARIMA Forecaster

Fit an ARIMA model to financial time series, auto-select p/d/q via AIC, plot in-sample fit and out-of-sample forecast with confidence intervals.

Feb 23, 2026, Eric

The Core Idea

ARIMA (AutoRegressive Integrated Moving Average) combines three ideas: AR (past values predict future), I (differencing to achieve stationarity), and MA (past forecast errors predict future). It is the workhorse of financial time series forecasting — used for volatility forecasting, spread prediction, and volume modeling. This tool fits an ARIMA(p,d,0) model, auto-selects parameters via AIC, and validates with walk-forward testing.

Data & Parameters

300 observations | Train: 240 | Test: 60

Model Diagnostics

Model

ARIMA(2,0,0)

AIC

436.1

In-sample RMSE

2.4685

Out-of-sample RMSE

2.5086

Intercept

9.9494

AR(1)

0.2562

AR(2)

0.2585

Forecast

-17.01.820.539.258.0TrainTestActualFittedForecast

Residuals

-6.39-3.200.003.206.39Residuals (should look like white noise)

Walk-Forward Validation (5 folds)

FoldTrain sizeTest sizeMAERMSE
1120361.9902.311
2156362.4633.057
3192362.6123.121
4228361.7942.351
5264362.1762.809
Average2.2072.730

What This Means

Best model: ARIMA(2,0,0) with AIC = 436.1. The AR(2) structure means the series has memory extending 2 periods back. No differencing was needed — the series is already stationary.
Overfitting check: In-sample RMSE: 2.468, Out-of-sample RMSE: 2.509 (+2% degradation). Minimal overfitting — the model generalizes well to unseen data.