Leaving Certificate Mathematics11.10 Correlation and regression

All books

11.10 Correlation and regression — Learn

Prerequisites: Section 11.4 — the mean; plotting points on a coordinate grid.

Objectives: draw and read a scatterplot; describe correlation by direction and strength; match a correlation coefficient to a scatterplot; draw a line of best fit and use it to predict; explain why correlation does not prove causation.

By the end of this section you can describe the relationship between two variables, and you can say what that relationship does and does not prove.

Bivariate data

When we record two variables for each item, the data are bivariate. Each item gives a pair of values, such as a person's height and shoe size, or a car's age and its price.

A scatterplot shows each pair as a point. The first variable goes on the horizontal axis and the second on the vertical axis. The pattern of the points is the whole point of the display.

Describing correlation

Correlation describes how the two variables move together.

The strength of the correlation says how close the points lie to a straight line. A strong correlation has points tightly packed along a line, and a weak one has them scattered widely.

The correlation coefficient

The strength and direction are combined in one number, the correlation coefficient rr. It always lies between −1-1 and +1+1.

Value of rr Meaning
r=1r = 1 perfect positive correlation
rr near 11, such as 0.90.9 strong positive correlation
rr near 00 little or no linear correlation
rr near −1-1, such as −0.9-0.9 strong negative correlation
r=−1r = -1 perfect negative correlation

A calculator or spreadsheet finds rr from the data. The sign tells you the direction, and the distance from 00 tells you the strength.

The booklet also gives the critical value a rank correlation is compared with. Spearman's critical values open that table.

Correlation is not causation. A strong correlation between two variables does not prove that one causes the other. A third variable may drive both, or the two may be related by coincidence.

Example 1. Ice-cream sales and the number of drowning deaths are strongly positively correlated across the year. Explain why this does not show that ice cream causes drowning.

Both variables rise in hot weather. The weather is a third variable that drives both, and it explains the correlation. A correlation is a description of the data, and it does not by itself identify a cause.

The line of best fit

When the points on a scatterplot follow a straight line, we can draw a line of best fit through them. Draw it so that the points lie roughly equally above and below the line, and make sure it passes through the middle of the cloud of points.

The line lets us predict a value of one variable from the other.

Example 2. A line of best fit for the price of a used car against its age is y=18000−2000xy = 18000 - 2000x, where xx is the age in years and yy is the price in euro. Predict the price of a car that is 44 years old.

y=18000−2000(4)=18000−8000=10000y = 18000 - 2000(4) = 18000 - 8000 = 10000

The prediction is €1000010000. The prediction is a reading from the line, and it is only as good as the line and the data.

Progress check

Back to the chapter problem. The table shows the last poll before eight referendums and the actual result, both as the percentage voting Yes.

Poll 5252 6060 4545 7070 3838 5555 6262 4949
Result 4848 5858 4747 6868 4040 5252 6363 4646

A scatterplot of these pairs gives a correlation coefficient of about r=0.97r = 0.97, and the least-squares line is close to y=3.9+0.91xy = 3.9 + 0.91x.

The correlation is strong and positive: polls that predicted a high Yes vote generally saw a high Yes vote. The line is close to y=xy = x, which is what a reliable poll would give.

Now find the referendum in the chapter problem: a poll of 52%52\% and a result of 48%48\%. The line predicts 3.9+0.91(52)≈51.2%3.9 + 0.91(52) \approx 51.2\%, so the actual 48%48\% lies about three points below the line.

That single point is the poll that got it wrong. It is one point among eight, and the strong overall correlation does not promise that every poll is accurate. Section 11.11 looks at how a single unusual point can be used, or misused, in an argument.

You should now be able to

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.