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

Preview

DA 3.4: Spread, correlation and regression

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

70 minutes

Does cold weather sell hot drinks?

A made-up cafe wrote down the temperature and its hot drink sales for ten days. The owner says "colder means more sales". Is she right? And by how much?

Opinions are cheap. Statistics gives her a number to back the claim, or to prove her wrong.

Key words

WordWhat it meansExample
MeanThe average: add the values up and divide by how many there are.The mean of 2 and 4 is 3
Standard deviationA number for how far values typically sit from the mean. Small means bunched, large means spread out.2.0
CorrelationA number from minus 1 to 1 for how strongly two sets of numbers move together.Colder days, more hot drinks
RegressionFinding the straight line that best fits the points, so you can predict one number from another.Sales from temperature
SlopeHow much the line goes up or down for each step along.About 4 fewer drinks per degree
VarianceThe mean of the squared gaps from the mean. The standard deviation is its square root.4.0
RequirementWhat the finished analysis must be able to show.Is there a link, and how strong?
CausationWhen one thing really makes another happen.Rain makes people buy umbrellas

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

By the end of this lesson

Note

I can clarify what pattern a requirement asks for, pick a method, and use standard deviation, correlation and regression.

Starter: what you already know

Have a go

Starter: what you already know

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.

Clarify, then choose a method

First write down the pattern the requirement asks for. "Is there a link between temperature and sales, and how strong?" is clear. "Look at the sales" is not.

The question points to the method. Six methods are on your course. The table says which question each one answers.

Worked example: the six methods

MethodIt answersCafe example
ClusteringWhich points belong in a group?Group customers who buy alike
Time series modellingWhat pattern is there over time?A weekly trend in sales
Standard deviationHow spread out are the values?How much do daily sales vary?
RegressionHow does one number change with another?Sales for each degree
CorrelationDo two sets of numbers move together?Temperature and sales
Chi-square testAre two categories linked?Does age group go with drink type?

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

Standard deviation: how spread out?

Two cafes both sell 50 drinks a day on average. One sells 49, 50, 51. The other sells 10, 50, 90. Same mean, very different days.

Standard deviation measures that. Find each value's gap from the mean. Square the gaps. Take the mean of the squares, which is the variance. Then take the square root.

Worked example: standard deviation by hand

ValueGap from the mean of 5Gap squared
2-39
4-11
4-11
4-11
500
500
724
9416
Total32

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

The lesson goes on

9 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.