Financial Analytics

Online B.Com · Sem 6

Lesson 1 of 4Fin Analytics

Moving Averages and ARIMA Forecasting

Financial Analytics

About the video

All Forecasting Models in ONE Video | AR | MA | ARMA | ARIMA | SARIMA | VAR | VMA | VARIMA | Part 9

Tech Classes

Study notes

Moving averages smooth time series to reveal trends and serve as simple forecasts. ARIMA(p,d,q) models combine autoregression, differencing and moving-average error terms to forecast stationary or differenced financial series.

Moving Averages

  • Simple moving average (SMA): SMA_t = (y_t + y_(t-1) + ... + y_(t-n+1)) / n.
  • Larger window n gives a smoother series but more lag.
  • Exponential moving average (EMA): EMA_t = a*y_t + (1-a)*EMA_(t-1), with 0 < a < 1; recent data weighted more.
  • Trading use: crossovers of short and long MAs signal trend changes (e.g. 50-day crossing 200-day).

Stationarity

  • ARMA models require stationarity: constant mean, variance and autocovariance over time.
  • Prices are usually non-stationary; returns or first differences are usually closer to stationary.
  • Differencing: y'_t = y_t - y_(t-1). The number of differences needed is d.
  • The ADF test checks for a unit root (null hypothesis: non-stationary).

ARIMA(p,d,q)

  • AR(p): y_t = c + phi_1*y_(t-1) + ... + phi_p*y_(t-p) + e_t.
  • MA(q): y_t = mu + e_t + theta_1*e_(t-1) + ... + theta_q*e_(t-q) (uses past forecast errors, not a rolling average).
  • I(d): series is differenced d times before fitting ARMA.
  • ACF cuts off after lag q suggests MA(q); PACF cuts off after lag p suggests AR(p).

Model Building (Box-Jenkins)

  • Identify: plot, test stationarity, difference, inspect ACF/PACF.
  • Estimate parameters (maximum likelihood); compare models with AIC/BIC (lower is better).
  • Diagnose: residuals should be white noise (Ljung-Box test).
  • Forecast and evaluate out-of-sample with RMSE or MAE.

Key terms

Simple moving average
Equal-weighted mean of the last n observations.
Exponential moving average
Weighted average with exponentially decaying weights on older data.
Stationarity
Statistical properties of a series do not change over time.
Differencing
Subtracting the previous value to remove trend or unit root.
ARIMA(p,d,q)
Model with p AR lags, d differences and q MA error lags.
ACF/PACF
Autocorrelation and partial autocorrelation functions used to choose q and p.
AIC
Information criterion balancing fit against model complexity; lower is better.

Takeaways

  • Moving averages smooth noise but lag the data; EMA reacts faster than SMA.
  • Make the series stationary via differencing (d) before fitting ARMA terms.
  • Use PACF for p, ACF for q, AIC/BIC for selection, and white-noise residuals for validation.
Contribute

Was this lesson helpful?

We read every rating and fix the weakest lessons first.