Log inStart free
LESSON 4.45 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

AR, MA and ARIMA

Watch a forecast built from past values, past errors and differences.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 4.45 · FORECAST BAYMEAN 34.4 → 58.4 · LAG-1 ACF 0.93
01
Stage 1 of 6 · The sales
Sales climb for 40 months. The mean moves from 34.4 to 58.4, so the series is not stationary.
Explain it simply

Each teal dot is one month of sales. The dashed lines show the average of each half, and it climbs from 34.4 to 58.4. The models here expect an average that stays put, called stationary. The autocorrelation bars show that each month looks a lot like the months before it.

A line of 40 monthly sales from 22.0 to 69.9 thousand, mostly rising. Dashed means: 34.4 for months 1 to 20, 58.4 for months 21 to 40. Autocorrelation bars fall slowly from 0.93 at lag 1.

sales y, series wc, φ, θerrors emeans, predictions, forecast
2040608011020304048monthsales y (thousand)mean 34.4mean 58.4autocorrelation of y10−1148the salesmean of months 1–20 = 34.42 · mean of months 21–40 = 58.432040608011020304048monthsales y (thousand)mean 34.4mean 58.4autocorrelation of y10−1148the salesmean of months 1–20 = 34.42 · mean of months 21–40 = 58.43
Toy: 40 months of seeded ARIMA(1, 1, 1) sales
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
yt,t=1,…,40\sy{y}{data}{y_t},\quad t = 1, \dots, 40
yˉ1..20=34.42,yˉ21..40=58.43\bar y_{1..20} = 34.42,\quad \bar y_{21..40} = 58.43

Sales y in month t, in thousands of units.

Common mix-ups

MYTHThe MA part averages past sales, like a rolling mean.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With d = 0 and p = 1, the AR part fits the raw sales. Is φ₁ near 0.5 or near 1?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.