← Home · Time series, four ways
Time series & moving averages
Same idea, four ways to study it. Tap a style and find the one that clicks for you. 📺 Prefer to watch? Videos are on the lesson page.
⏱️ A moving average smooths bumpy data so the trend shows. Replace each point with the average of the points around it. Odd window (3, 5) is one step; even window (4) needs a second centring step.

What it is

A time series is data measured over time, like monthly sales or quarterly visitors. It usually bounces around with seasonal ups and downs that hide the real story. A moving average smooths out the bumps so the underlying trend stands out.

How a moving average works

Replace each point with the average of itself and its neighbours.

3-point MA = (previous + current + next) ÷ 3

Odd window (3, 5, 7): the average lines up neatly with the middle point, done in one step.

Even window (4): the average falls between two points, so you take a second average of neighbouring pairs, that's centring.

Worked example

Monthly sales: Jan 200, Feb 240, Mar 220, Apr 260, May 240, Jun 280. Find the 3-point moving average for March.

  1. March's neighbours are Feb and Apr.
  2. 3-pt MA = (Feb + Mar + Apr) ÷ 3 = (240 + 220 + 260) ÷ 3
  3. = 720 ÷ 3 = 240

The smoothed value for March is 240, gentler than the raw 220.

Watch out

• A 4-point (even) moving average must be centred, average the neighbouring pairs so it lines up with a real period.
• Smoothing removes seasonal and random bumps, what's left is the trend.
• You lose points at each end, you can't smooth the very first or last.
• Use the mean unless the question says median.

Bumpy data, smoothed trend

raw (bumpy) smoothed trend time →

The pale line is the raw data, jumping up and down each season. The bold line is the moving average, the seasonal noise is gone and the gentle trend appears.

Centring a 4-point average

Window4-pt MA
Q1 to Q427.5
Q2 to Q530.0
Centred at Q3(27.5 + 30.0) ÷ 2 = 28.75

Each 4-point average sits between two quarters. Average the two neighbouring ones and it now lines up with a real quarter (Q3).

Warm up first

Don't read yet, just have a go in your head:

What does a moving average do?
Smooths the bumpy data so you can see the underlying trend.
3-pt MA of 10, 20, 30?
(10 + 20 + 30) ÷ 3 = 20.
Why centre a 4-point average?
An even window's average lands between two points, centring lines it up with a real period.

Faded example: 3-point MA

Rung 1 · watch one done fully

Sales Feb 240, Mar 220, Apr 260. 3-pt MA at March = (240 + 220 + 260) ÷ 3 = 720 ÷ 3 = 240.

Rung 2 · you fill the gaps

3-pt MA at April = (Mar + Apr + May) ÷ 3 = (220 + 260 + 240) ÷ 3 = ? ÷ 3 = ?

Check my gaps
720 ÷ 3 = 240.
Rung 3 · all you

Quarterly data: Q1 = 20, Q2 = 30, Q3 = 25, Q4 = 35, Q5 = 30. Find the 4-point MA for the window Q1 to Q4, and for Q2 to Q5. Check below.

Check my answer
Q1 to Q4: (20 + 30 + 25 + 35) ÷ 4 = 110 ÷ 4 = 27.5. Q2 to Q5: (30 + 25 + 35 + 30) ÷ 4 = 120 ÷ 4 = 30.0.

Exam-style stretch: centring

From the two 4-point averages above (27.5 and 30.0), find the centred moving average and say which quarter it lines up with.

Show the working
Centred MA = (27.5 + 30.0) ÷ 2 = 28.75, and it lines up with Q3 (the period in the middle of the two windows).

Say it back

In one sentence, out loud: why do we use a moving average on time series data?

⚡ Time series, one look

Time seriesdata measured over time
Moving averageaverage of nearby points → smooths the bumps
3-pt MA(prev + current + next) ÷ 3
Odd windowlines up with the middle point (one step)
Even window (4)needs centring (average neighbouring pairs)
Example(240 + 220 + 260) ÷ 3 = 240 · centred 4-pt = 28.75
Trapcentre even windows · you lose the end points