Scatter plots and correlation
What this lesson covers
- Describe trend, association, strength and unusual points.
- r measures straight-line strength from −1 to 1.
- Association does not prove cause.
What to describe
- Trend: linear or curved.
- Association: positive or negative.
- Strength: how close the points are to the trend.
- Unusual features: outliers and groups.
Reading r
- R only measures straight-line relationships.
| r | Meaning |
|---|---|
| 0.95 | Strong positive |
| 0.5 | Moderate positive |
| 0 | No linear relationship |
| −0.8 | Strong negative |
What strength looks like
- The closer the points sit to a straight line, the stronger the relationship.
Try it: drag the points
- Drag a point and watch the line and r change. Then press Add an outlier and see how much one point can do.
Statistics explorer
A full description
- For height and shoe size in an invented class of 30, r = 0.85.
- Trend: linear
- Association: positive, taller students have larger feet
- Strength: strong, r = 0.85
- Unusual: note any outliers or groups
Outliers matter
- One point far from the others can raise or lower r a lot.
- Find out why it is there before deciding what to do. Never delete a point simply because it is awkward.
Try it: line and residuals
Common mistakes
- Saying r = 0 means no relationship.It may be curved, so look at the graph.
- Saying a strong r proves cause.A third variable may explain both.
Your turn
What does r = −0.9 suggest?
What does r = 0.1 suggest?
Which r shows the strongest relationship?
Two variables have r = 0.9. What can you say?
Show answer
1. A strong negative linear relationship 2. Almost no linear relationship 3. −0.95, as its size is closest to 1 4. They are linked, but cause is not shown
Sample question: Achieved
For 8 used cars of the same model, age (years) and price (thousands of dollars) are: (2, 24), (3, 22), (4, 21), (5, 17), (6, 16), (8, 13), (9, 10), (10, 9). The correlation coefficient is r = −0.99. Describe the relationship in context.
Hint
Describe four things in order: trend, association, strength, and anything unusual. Use the variables' names.
Answer
The relationship is linear, negative and very strong (r = −0.99), with no unusual points: older cars of this model tend to sell for less, about $24,000 at 2 years old falling to about $9,000 at 10 years.
Step by step
- A full description covers trend, association, strength and unusual features, in that order.
- Trend: the prices fall by similar amounts as age rises, so the pattern is close to a straight line. It is linear.
- Association: as age goes up, price goes down. That is a negative association.
- Strength: r = −0.99 is very close to −1, so the points sit very close to a straight line. It is very strong.
- Classic mistake: calling r = −0.99 weak because it is negative. The sign gives the direction; the size gives the strength.
- Unusual features: every point follows the pattern, so there are no outliers and no separate groups.
- Context: older cars of this model tend to be cheaper, from about $24,000 at 2 years down to about $9,000 at 10 years.
- Check: the cheapest car (9 thousand) is the oldest (10 years), which fits a negative relationship.
Full working
- points close to a straight linetrend: linear
- price falls as age risesassociation: negative
- r = −0.99, close to −1strength: very strong
- no outliers or groupsunusual features: none
- Linear, negative, very strong: older cars tend to cost less
Sample questions: Merit
Eight kayakers record weeks of training (x) and how many seconds they cut from their race time (y): (1, 3), (2, 5), (3, 4), (4, 7), (5, 8), (6, 8), (7, 10), (8, 11). Here r = 0.97. A ninth kayaker trained for 9 weeks but cut only 2 seconds, because of a shoulder injury. With this point added, r = 0.39. What does this tell you, and what should the analyst do?
Hint
Think about where the new point sits compared with the pattern, and whether its cause belongs to the group being studied.
Answer
One point dropped r from 0.97 to 0.39, so it is a very influential outlier: it sits far below the trend at the largest x. Investigate it. The injury is a known cause outside normal training, so it is reasonable to analyse without it and report that it was left out and why, giving both values of r.
Step by step
- Without the new point, r = 0.97: a very strong positive linear relationship. More training goes with a bigger time cut.
- The ninth point is at x = 9, the most training, but y = 2, one of the smallest cuts. The trend suggests about 12 seconds there.
- Points at the end of the x range pull hardest on the line and on r. So this one point drags r down to 0.39.
- So the outlier is very influential: one kayaker changes the story from very strong to weak.
- Classic mistake: deleting the point just because it spoils the result. You need a reason.
- Here there is a reason: an injury. The study is about how training affects time, and an injury is a different cause.
- So it is fair to fit the model without this kayaker, but say so in the report and explain why.
- Report both values: r = 0.97 without the injured kayaker and 0.39 with him, so a reader can judge.
- If there were no known reason, keep the point and comment on the difference it makes.
Full working
- 8 points: r = 0.97very strong positive
- (9, 2) far below the trend at the largest xinfluential outlier
- r falls to 0.39 with it
- injury is a known cause outside the studyreason to exclude
- Influential outlier: investigate, analyse without it with the reason stated, report both r values
For the 8 used cars (age in years, price in thousands of dollars), r = −0.99. A student changes age into months and price into dollars, and also swaps the axes so price is on the x axis. She expects r to change. Will it? Explain why, and say what does change when the axes are swapped.
Hint
r measures how close the points are to a straight line. Ask whether stretching an axis or swapping them changes that.
Answer
r stays at −0.99 every time. Changing units multiplies every value by the same positive number, which stretches the graph but keeps the points just as close to a line, and r is symmetric in x and y. What changes on swapping is the meaning: price becomes the explanatory variable, and a fitted line would change, since age is the natural explanatory variable here.
Step by step
- r describes how tightly the points cluster around a straight line, and in which direction.
- Changing years to months multiplies every age by 12. Changing thousands of dollars to dollars multiplies every price by 1000.
- That only stretches the graph. The points keep the same shape and the same closeness to a line, so r stays −0.99.
- Classic mistake: thinking bigger numbers mean a bigger r. r has no units, so it does not depend on the units of the data.
- Swapping the axes: r is worked out from the products of x and y deviations, which are the same either way round. So r is again −0.99.
- Calculation check: with the new units and with the axes swapped, a calculator still gives r = −0.99.
- What does change when swapping is the roles. The x variable should be the explanatory one, the one we think helps explain the other.
- Age explains price, not the other way round, so age belongs on the x axis.
- If the student fitted a line with price on x, she would get a different line, which is the wrong one for predicting price from age.
Full working
- months = 12 × years, dollars = 1000 × thousandspositive multiples
- stretching does not change closeness to a liner = −0.99
- r is the same for (x, y) and (y, x)swap: r = −0.99
- swap changes the explanatory variableage should be on x
- r stays −0.99; only the roles of the variables change
Sample questions: Excellence
A made-up sample of 8 houses gives age (years) and price (thousands of dollars). Four are in Gore: (10, 420), (20, 390), (30, 370), (40, 330). Four are in Auckland: (50, 1250), (60, 1180), (70, 1140), (80, 1060). For all 8 together, r = 0.80, and a student concludes that older houses are worth more. Within each town r = −0.99. Evaluate the student's conclusion.
Hint
Look at the two groups separately. Ask what else changes between the groups as well as age.
Answer
The conclusion is wrong. Within each town older houses are worth less (r = −0.99, falling about $2,900 a year in Gore and $6,100 a year in Auckland). The overall r = 0.80 is created by the groups: the Auckland houses are both older and in a far dearer market. Location is a lurking variable, so the data should be analysed by town.
Step by step
- Start by graphing in your head: the Gore points sit at ages 10 to 40 and prices about 330 to 420. The Auckland points sit at ages 50 to 80 and prices about 1060 to 1250.
- Within Gore, as age goes up, price goes down: 420, 390, 370, 330. Within Auckland the same: 1250, 1180, 1140, 1060.
- So in each town the relationship is strong and negative, r = −0.99. In Gore the slope is about −2.9 thousand a year; in Auckland about −6.1 thousand a year.
- Put together, the Auckland cluster is up and to the right of the Gore cluster. A line through both clusters slopes upwards, giving r = 0.80.
- So the positive r comes from the difference between the towns, not from age.
- Location is a lurking variable: Auckland houses in this sample are older and also in a much more expensive market.
- Classic mistake: describing the overall scatter without noticing the two groups. Always look for clusters before quoting r.
- A fair conclusion: in each town, older houses tend to sell for less. The data give no support to older houses being worth more.
- Limitation: only four houses per town, and made-up data, so the slopes are rough. A real study would need many more houses and other variables, such as size.
- Better method: analyse each town separately, or include location in the model.
Full working
- Gore r = −0.99, slope −2.9negative within the group
- Auckland r = −0.99, slope −6.1negative within the group
- all 8: r = 0.80positive only because of the two clusters
- location lurks: older and dearergroups explain the overall r
- analyse by town; small made-up samplelimitations
- Conclusion is wrong: within each town older houses are worth less; location creates the positive r
For 7 students, hours of sleep and test score are: (5, 50), (6, 62), (7, 70), (8, 72), (9, 70), (10, 62), (11, 50). Show that r = 0 for this data. A student says this proves sleep has no effect on score. Evaluate this claim.
Hint
r is 0 exactly when the sum of (x − mean x)(y − mean y) is 0. The x values are symmetric about 8 and the scores are symmetric too.
Answer
The mean sleep is 8, and each pair of x values the same distance either side of 8 has the same score, so the products (x − 8)(y − ȳ) cancel in pairs and their sum is 0, giving r = 0. But the claim is wrong: score rises from 50 to 72 and falls back to 50. r only measures straight-line relationships, and this one is curved, so a curved model fits.
Step by step
- r = 0 exactly when the sum of (x − x̄)(y − ȳ) is 0, because that sum is the top of the formula for r.
- Mean of x: (5 + 6 + 7 + 8 + 9 + 10 + 11) ÷ 7 = 56 ÷ 7 = 8.
- Pair the students either side of 8: 5 and 11, 6 and 10, 7 and 9. In each pair the scores are equal: 50 and 50, 62 and 62, 70 and 70.
- Take 5 and 11: (5 − 8)(50 − ȳ) + (11 − 8)(50 − ȳ) = −3(50 − ȳ) + 3(50 − ȳ) = 0. The same happens for the other two pairs.
- The middle student has x − 8 = 0, so that product is 0 too. So the whole sum is 0 and r = 0.
- Notice we never needed ȳ (it is 436 ÷ 7 ≈ 62.3). The symmetry does all the work.
- Now the claim. r = 0 means no straight-line relationship, not no relationship.
- The scores rise from 50 at 5 hours to 72 at 8 hours, then fall back to 50 at 11 hours. That is a clear curved pattern.
- Classic mistake: reading r without graphing. Always look at the scatter plot first.
- So sleep does seem linked to score, with about 8 hours best in this data. A curved model, such as a quadratic, would describe it.
- Limitations: 7 students is a small sample, and the data cannot prove cause, but they certainly do not show no effect.
Full working
- x̄ = 56 ÷ 7 = 8
- x = 8 − d and 8 + d have equal ysymmetric pairs
- (−d)(y − ȳ) + (d)(y − ȳ) = 0 for each pairproducts cancel
- sum of (x − x̄)(y − ȳ) = 0, so r = 0
- scores rise then fallcurved, not no relationship
- r = 0, but sleep and score are clearly related by a curve; the claim is wrong
What to take away
- Graph first, r second.
- Correlation is not cause.
Where science uses this
Report a mistake
More in AS 91581
Is your child on track?
Take the free placement test


