Quoto

Courses / Time series

AR, MA and ARIMA

10 cards3 min readStatistics

Card 1 of 10
  1. Idea: A gap that closes

    share classes trade basis points apart. Wide gaps narrow over days, never all at once.

    • Tomorrow: a constant, plus a fraction of today, plus news
    • That is an autoregression with lag,
  2. Formula: The model

    The shock has mean 0 and is independent of the past. Stationary only when |φ| < 1.

  3. Formula: Mean reversion forecast

    The mean is μ = c/(1 − φ). Measure today’s distance from it and shrink it by φ each step.

  4. Example: The gap 2 days out

    The fit gives and ; today’s gap is . Forecast the gap the day after tomorrow.

    1. Mean , distance
    2. Tomorrow:
    3. Next day:
  5. Formula: : memory in the shocks

    A shock partly reverses on the next print, then is gone. Not a chart’s rolling mean.

  6. Quick check: An forecast

    An has and . Today’s forecast error is . What is the forecast for the next step?

    Show the answer

    Answer:

    ; steps ahead the forecast is the mean, .

  7. Idea: fades, stops dead

    An forecast fades a little at every step. An forecast stops after steps.

    • adds lagged values and lagged shocks
  8. Idea: A series with no home

    A running total has no level to return to: difference it, then fit .

    • Decide first whether there is a level: that sets
    • Changes fade to
    • The level forecast rises a step, never flat
  9. Example: An step

    , and the last levels are and . Forecast the next level.

    1. Last change
    2. Next change
    3. Level
  10. Common mistake: The change quoted as the level

    Quoting the forecast change as where the series lands.

    Instead Start from the last level and add every forecast change up to the horizon: .