Prepare the data
Use a regularly spaced series and reserve the final period before selecting model orders.
Model the history. Respect the forecast horizon.
ARIMA combines autoregression, differencing and moving-average errors for time-series forecasting. Students should diagnose residuals and compare forecasts against a simple last-value baseline.
Learning concept · Not a validated service
ARIMA combines autoregression, differencing and moving-average errors for time-series forecasting. Students should diagnose residuals and compare forecasts against a simple last-value baseline.
A possible application for operations planners: Help a small operations team review short-term workload estimates. This extension is not delivered by the supplied starter.
Use a regularly spaced series and reserve the final period before selecting model orders.
Fit an ARIMA model with documented differencing and generate forecasts from fixed origins.
Use rolling-origin MAE and inspect residual autocorrelation and interval coverage.
Show forecasts, intervals and horizon-specific errors beside a naive baseline.
The supplied starter generates 240 daily values with trend, seasonality and noise. It builds lagged and shifted rolling features, trains a RandomForestRegressor on earlier rows and reports MAE on the final thirty rows.
for lag in [1, 7, 14]:
series[f"lag_{lag}"] = series["value"].shift(lag)
series["rolling_7"] = series["value"].shift(1).rolling(7).mean()
series = series.dropna()
train = series.iloc[:-30]
test = series.iloc[-30:]
model = RandomForestRegressor(n_estimators=300, random_state=42)
model.fit(train[feature_cols], train["value"])
forecast = model.predict(test[feature_cols])The starter fits a random forest on lag features, not an ARIMA model. Later test rows use actual earlier test values as lag inputs. This can represent rolling one-step prediction, but not a thirty-day forecast made at a single origin. There are no prediction intervals or real operational observations.
Proposed extension: Help a small operations team review short-term workload estimates.
This is a potential application pathway, not a delivered product. The supplied starter does not implement this service or validate it with real users.
Networkers Home runs this topic inside its AI Engineer Course, with placement support and hands-on labs.