AxoPrep

Mathematics: Applications and Interpretation

SL 4.4 Linear correlation and regression

Describing the relationship between two variables with scatter diagrams, Pearson's r and the regression line of y on x. Study guide, 3 practice questions with markschemes and 4 flashcards. Free.

Scatter diagrams and line of best fit through the mean point · Pearson's r and its interpretation · Regression line of y on x · Prediction and dangers of extrapolation · Meaning of gradient and intercept in context

Practise all 3 questions Study 4 flashcards

Study guide

Scatter diagrams

Bivariate data come in pairs \((x, y)\), such as hours studied and test score. Plot them as a scatter diagram and describe what you see:

A line of best fit drawn by eye should pass through the mean point \((\bar{x}, \bar{y})\), with roughly equal numbers of points above and below.

Pearson's correlation coefficient

Pearson's \(r\) measures the strength of a linear relationship. It is always between \(-1\) and \(1\):

$r$Rough description
close to 0no linear correlation
about 0.25 to 0.5weak
about 0.5 to 0.75moderate
above about 0.75strong

The sign gives the direction. \(r = 1\) or \(-1\) means all points lie exactly on a line. In this course \(r\) is found with the GDC.

Correlation is not causation. Ice-cream sales and sunburn cases correlate strongly because both depend on hot weather, not because one causes the other.

Regression line of y on x

The GDC's linear regression gives the least-squares line \(y = ax + b\), which minimises the squared vertical distances from the points. It always passes through \((\bar{x}, \bar{y})\). It is designed to predict \(y\) from \(x\); do not rearrange it to predict \(x\) from \(y\).

Interpreting the parameters

Worked example

Eight students' study hours \(x\) and test scores \(y\) give the regression line \(y = 4.2x + 51\) with \(r = 0.91\).

When is a prediction reliable?

  1. \(|r|\) is fairly large (strong correlation).
  2. The \(x\)-value is within the range of the data.
  3. You are predicting \(y\) from \(x\) with the \(y\)-on-\(x\) line.

GDC tips

Common mistakes

Exam tips

Cheat sheet

Key definitions

Bivariate data

Data made of pairs of values for two variables measured on the same individuals.

Scatter diagram

A plot of paired data as points, used to see whether two variables are related.

Pearson's correlation coefficient (r)

A number between −1 and 1 measuring the direction and strength of a linear relationship.

Mean point

The point (x̄, ȳ), through which every least-squares regression line passes.

Regression line of y on x

The least-squares straight line used to predict y from a given x.

Interpolation

Predicting within the range of the observed x-values.

Extrapolation

Predicting outside the range of the observed data, which is often unreliable.

Practice questions

SLPaper 2Standard

Question 1

Eight students recorded the hours, \(x\), they revised and their test score, \(y\).

\(x\) (hours)2356891112
\(y\) (score)4855586670778088
(a) [2]

Find Pearson's product-moment correlation coefficient, \(r\).

Markscheme
  • 2 \(r = 0.988\) (0.98834...)
(b) [1]

Describe the correlation between \(x\) and \(y\).

Markscheme
  • 1 Strong positive (linear)
(c) [2]

Find the equation of the regression line of \(y\) on \(x\).

Markscheme
  • 1 \(y = 3.72x + \ldots\) (gradient 3.71739...)
  • 1 \(\ldots + 41.7\) (41.7282...)
(d) [2]

Use your equation to estimate the score of a student who revised for 10 hours.

Markscheme
  • 1 \(3.717 \times 10 + 41.73\)
  • 1 \(78.9\)
(e) [2]

Explain why it would not be appropriate to use the equation for a student who revised for 30 hours.

Markscheme
  • 1 30 is outside the range of the data (2 to 12), so this is extrapolation
  • 1 and the prediction (153) is impossible since it exceeds a realistic maximum score
SLPaper 2Challenging

Question 2

A kiosk owner records the midday temperature, \(T\) °C, and the number of cold drinks sold, \(D\), on seven days.

\(T\)18212325273032
\(D\)112130141156163184197
(a) [2]

Find the equation of the regression line of \(D\) on \(T\).

Markscheme
  • 1 Gradient \(6.02\) (6.0214...)
  • 1 Intercept \(3.32\) (3.3190...)
(b) [2]

Interpret the gradient of the line in context.

Markscheme
  • 1 For each 1 °C increase in temperature,
  • 1 about 6 more drinks are sold
(c) [1]

Explain why the \(D\)-intercept should not be interpreted in this context.

Markscheme
  • 1 It corresponds to \(T = 0\) °C, far outside the data range (18 to 32), so it is extrapolation
(d) [2]

Estimate the number of drinks sold on a day when the temperature is 28 °C.

Markscheme
  • 1 \(6.0214 \times 28 + 3.319\)
  • 1 \(172\) drinks
SLPaper 1Foundation

Question 3

A researcher finds that, across 25 towns, the number of coffee shops and the number of bicycle thefts have correlation coefficient \(r = 0.83\).

(a) [1]

Describe the correlation.

Markscheme
  • 1 Strong positive
(b) [2]

The researcher concludes that coffee shops cause bicycle thefts. Explain why this conclusion is not justified.

Markscheme
  • 1 Correlation does not imply causation
  • 1 A third variable (e.g. town population) could increase both

Key facts

What does Pearson's \(r\) measure and what is its range?

The strength and direction of a linear relationship; \(-1 \le r \le 1\).

The regression line of \(y\) on \(x\) always passes through which point?

The mean point \((\bar{x}, \bar{y})\).

Interpolation vs extrapolation

Interpolation predicts inside the data range and is usually reliable. Extrapolation predicts outside it and may not be.

Can you use the line of \(y\) on \(x\) to predict \(x\) from \(y\)?

No. It is designed to predict \(y\) from \(x\) only.