Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

AC 2.6: Patterns, trends and predicting the next value

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

60 minutes

How many lunches next week?

The canteen cooks lunches before it knows who will come. Too few and pupils go hungry. Too many and food is thrown away.

The cook looks at the last seven weeks and makes a careful guess. That guess is the first step of predicting from data.

Key words

WordWhat it means
Patterna shape in the data that repeats, such as busy every Friday
Trendthe general direction over time: up, down or flat
Predictive modellingusing past data to estimate what will probably happen next
Predictionan estimate, not a fact
Moving averagethe average of the latest few values, which smooths out ups and downs
Noisesmall random ups and downs that hide the trend
Dataseta collection of records held together for analysis

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can say the difference between a pattern and a trend, explain why we model data to predict, and find a trend in numbers.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Seven weeks of lunch sales

Week1234567
Lunches sold120131126140149155168

The cells students fill in are left blank in this preview.

Pattern or trend?

A pattern repeats. Fridays are always busier. A trend is the overall direction. Over seven weeks, sales are rising, even though week 3 dipped.

You find both by looking at data over time, and by ignoring the small ups and downs.

Try it: a bar chart made of text

Code: python
sales = [120, 131, 126, 140, 149, 155, 168]
week = 1
for n in sales:
    print("Week", week, "#" * (n // 10), n)
    week = week + 1

# Each # stands for ten lunches.
# Change a number and run it again.

Real charts

Important

This platform has no charting tool. In a spreadsheet you would draw a line chart with week along the bottom and lunches up the side, then add a trend line. The text bars above show the same shape.

Predicting is a careful guess

Predictive modelling uses past data to estimate the future. The simplest model takes the average step between weeks and adds it to the last value.

It assumes the trend continues. If the school adds a new menu, that may be false. A prediction is never a promise.

The lesson goes on

6 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.