IB AA · 6D Correlation and Regression
Use the line for the group that the new x belongs to. A point can sit off the line without being an outlier in x or in y.
Two lines
Some scatters fall into two straight-line groups. Find the mean point of each group. Each line passes through its own mean point.
Which line
Predict with the line whose x-values include the new x. The other line is for the other group.
One variable at a time
A value is an outlier in a list when it is below Q₁ − 1.5 × IQR or above Q₃ + 1.5 × IQR. On an odd count, leave the median out of both halves.
Off the line
A point can be inside both fences and still sit away from the pattern on the scatter diagram. The line through the other points follows the main pattern.
The two lines and their x-intervals are given.
165 is between 160 and 190, so use the adult line.
Do not use the junior line.
y = x − 100
y = 165 − 100
y = 65
Answer: Use the adult line. y = 65.
125 is between 120 and 150, so use the junior line.
Do not use the adult line.
y = 25x − 24
y = 25(125) − 24
y = 2505 − 24
y = 50 − 24
y = 26
Answer: Use the junior line. y = 26.
25 is between 10 and 40, so use the morning line.
Do not use the evening line.
y = x + 5
y = 25 + 5
y = 30
Answer: Use the morning line. y = 30.
75 is between 50 and 80, so use the evening line.
Do not use the morning line.
y = 2x − 40
y = 2(75) − 40
y = 150 − 40
y = 110
Answer: Use the evening line. y = 110.
5 is between 4 and 10, so use the route A line.
Do not use the route B line.
y = 3x + 1
y = 3(5) + 1
y = 15 + 1
y = 16
Answer: Use the route A line. y = 16.
19 is between 14 and 20, so use the route B line.
Do not use the route A line.
y = x + 8
y = 19 + 8
y = 27
Answer: Use the route B line. y = 27.
Each group lies on a straight line. Find the line you need, then predict.
| x | y |
|---|---|
| 2 | 6 |
| 4 | 10 |
| 6 | 14 |
| 8 | 18 |
| x | y |
|---|---|
| 10 | 8 |
| 12 | 11 |
| 14 | 14 |
| 16 | 17 |
Team A group.
Mean of x = sum of the valuesnumber of values
Sum = 2 + 4 + 6 + 8
Sum = 20
There are 4 values.
Mean of x = 204
Mean of x = 5
Mean of y = sum of the valuesnumber of values
Sum = 6 + 10 + 14 + 18
Sum = 48
There are 4 values.
Mean of y = 484
Mean of y = 12
The mean point is (5, 12).
The points lie on a straight line.
a = y₂ − y₁x₂ − x₁
a = 10 − 64 − 2
a = 42
a = 2
y − 12 = 2(x − 5)
y − 12 = 2x − 10
y = 2x − 10 + 12
y = 2x + 2
7 is between 2 and 8, so use the Team A line.
Do not use the Team B line.
y = 2x + 2
y = 2(7) + 2
y = 14 + 2
y = 16
Answer: Team A: y = 2x + 2. At x = 7, y = 16.
| x | y |
|---|---|
| 120 | 24 |
| 130 | 28 |
| 140 | 32 |
| 150 | 36 |
| x | y |
|---|---|
| 160 | 60 |
| 170 | 70 |
| 180 | 80 |
| 190 | 90 |
Junior group.
Mean of x = sum of the valuesnumber of values
Sum = 120 + 130 + 140 + 150
Sum = 540
There are 4 values.
Mean of x = 5404
Mean of x = 135
Mean of y = sum of the valuesnumber of values
Sum = 24 + 28 + 32 + 36
Sum = 120
There are 4 values.
Mean of y = 1204
Mean of y = 30
The mean point is (135, 30).
The points lie on a straight line.
a = y₂ − y₁x₂ − x₁
a = 28 − 24130 − 120
a = 410
a = 25
y − 30 = 25(x − 135)
y − 30 = 25x − 54
y = 25x − 54 + 30
y = 25x − 24
125 is between 120 and 150, so use the Junior line.
Do not use the Adult line.
y = 25x − 24
y = 25(125) − 24
y = 2505 − 24
y = 50 − 24
y = 26
Answer: Junior: y = 25x − 24. At x = 125, y = 26.
| x | y |
|---|---|
| 10 | 15 |
| 20 | 25 |
| 30 | 35 |
| 40 | 45 |
| x | y |
|---|---|
| 50 | 60 |
| 60 | 80 |
| 70 | 100 |
| 80 | 120 |
Evening group.
Mean of x = sum of the valuesnumber of values
Sum = 50 + 60 + 70 + 80
Sum = 260
There are 4 values.
Mean of x = 2604
Mean of x = 65
Mean of y = sum of the valuesnumber of values
Sum = 60 + 80 + 100 + 120
Sum = 360
There are 4 values.
Mean of y = 3604
Mean of y = 90
The mean point is (65, 90).
The points lie on a straight line.
a = y₂ − y₁x₂ − x₁
a = 80 − 6060 − 50
a = 2010
a = 2
y − 90 = 2(x − 65)
y − 90 = 2x − 130
y = 2x − 130 + 90
y = 2x − 40
75 is between 50 and 80, so use the Evening line.
Do not use the Morning line.
y = 2x − 40
y = 2(75) − 40
y = 150 − 40
y = 110
Answer: Evening: y = 2x − 40. At x = 75, y = 110.
| x | y |
|---|---|
| 4 | 13 |
| 6 | 19 |
| 8 | 25 |
| 10 | 31 |
| x | y |
|---|---|
| 14 | 22 |
| 16 | 24 |
| 18 | 26 |
| 20 | 28 |
Crew A group.
Mean of x = sum of the valuesnumber of values
Sum = 4 + 6 + 8 + 10
Sum = 28
There are 4 values.
Mean of x = 284
Mean of x = 7
Mean of y = sum of the valuesnumber of values
Sum = 13 + 19 + 25 + 31
Sum = 88
There are 4 values.
Mean of y = 884
Mean of y = 22
The mean point is (7, 22).
The points lie on a straight line.
a = y₂ − y₁x₂ − x₁
a = 19 − 136 − 4
a = 62
a = 3
y − 22 = 3(x − 7)
y − 22 = 3x − 21
y = 3x − 21 + 22
y = 3x + 1
9 is between 4 and 10, so use the Crew A line.
Do not use the Crew B line.
y = 3x + 1
y = 3(9) + 1
y = 27 + 1
y = 28
Answer: Crew A: y = 3x + 1. At x = 9, y = 28.
| x | y |
|---|---|
| 2 | 7 |
| 4 | 11 |
| 6 | 15 |
| 8 | 19 |
| x | y |
|---|---|
| 12 | 10 |
| 14 | 16 |
| 16 | 22 |
| 18 | 28 |
South group.
Mean of x = sum of the valuesnumber of values
Sum = 12 + 14 + 16 + 18
Sum = 60
There are 4 values.
Mean of x = 604
Mean of x = 15
Mean of y = sum of the valuesnumber of values
Sum = 10 + 16 + 22 + 28
Sum = 76
There are 4 values.
Mean of y = 764
Mean of y = 19
The mean point is (15, 19).
The points lie on a straight line.
a = y₂ − y₁x₂ − x₁
a = 16 − 1014 − 12
a = 62
a = 3
y − 19 = 3(x − 15)
y − 19 = 3x − 45
y = 3x − 45 + 19
y = 3x − 26
15 is between 12 and 18, so use the South line.
Do not use the North line.
y = 3x − 26
y = 3(15) − 26
y = 45 − 26
y = 19
Answer: South: y = 3x − 26. At x = 15, y = 19.
| x | y |
|---|---|
| 1 | 5 |
| 2 | 8 |
| 3 | 11 |
| 4 | 14 |
| x | y |
|---|---|
| 6 | 4 |
| 7 | 6 |
| 8 | 8 |
| 9 | 10 |
Band A group.
Mean of x = sum of the valuesnumber of values
Sum = 1 + 2 + 3 + 4
Sum = 10
There are 4 values.
Mean of x = 104
Mean of x = 52
Mean of x = 2.5
Mean of y = sum of the valuesnumber of values
Sum = 5 + 8 + 11 + 14
Sum = 38
There are 4 values.
Mean of y = 384
Mean of y = 192
Mean of y = 9.5
The mean point is (52, 192).
The points lie on a straight line.
a = y₂ − y₁x₂ − x₁
a = 8 − 52 − 1
a = 31
a = 3
y − 192 = 3(x − 52)
y − 192 = 3x − 152
y = 3x − 152 + 192
y = 3x + 2
3 is between 1 and 4, so use the Band A line.
Do not use the Band B line.
y = 3x + 2
y = 3(3) + 2
y = 9 + 2
y = 11
Answer: Band A: y = 3x + 2. At x = 3, y = 11.
Check the fences, or choose the line that leaves the odd point out.
| x | y |
|---|---|
| 2 | 5 |
| 4 | 9 |
| 6 | 13 |
| 8 | 17 |
| 8 | 17 |
| 10 | 4 |
Quartiles of x.
Order the values.
2, 4, 6, 8, 8, 10
There are 6 values.
The median is the mean of the two middle values.
Median = sum of the two middle values2
Median = 6 + 82
Median = 142
Median = 7
The two halves have the same length.
Lower half: 2, 4, 6
The median of that half is the middle value.
Q₁ = 4
Upper half: 8, 8, 10
The median of that half is the middle value.
Q₃ = 8
IQR = Q₃ − Q₁
IQR = 8 − 4
IQR = 4
1.5 × IQR = 32 × IQR
1.5 × IQR = 32 × 4
1.5 × IQR = 122
1.5 × IQR = 6
Lower fence = Q₁ − 1.5 × IQR
Lower fence = 4 − 6
Lower fence = −2
Upper fence = Q₃ + 1.5 × IQR
Upper fence = 8 + 6
Upper fence = 14
A value is an outlier when it is below −2 or above 14.
No x-value is outside the fences.
Quartiles of y.
Order the values.
4, 5, 9, 13, 17, 17
There are 6 values.
The median is the mean of the two middle values.
Median = sum of the two middle values2
Median = 9 + 132
Median = 222
Median = 11
The two halves have the same length.
Lower half: 4, 5, 9
The median of that half is the middle value.
Q₁ = 5
Upper half: 13, 17, 17
The median of that half is the middle value.
Q₃ = 17
IQR = Q₃ − Q₁
IQR = 17 − 5
IQR = 12
1.5 × IQR = 32 × IQR
1.5 × IQR = 32 × 12
1.5 × IQR = 362
1.5 × IQR = 18
Lower fence = Q₁ − 1.5 × IQR
Lower fence = 5 − 18
Lower fence = −13
Upper fence = Q₃ + 1.5 × IQR
Upper fence = 17 + 18
Upper fence = 35
A value is an outlier when it is below −13 or above 35.
No y-value is outside the fences.
The other points lie on y = 2x + 1.
At x = 10, that line gives y = 21.
The recorded point is (10, 4), so it sits off the pattern.
The rose point is off the line through the other points. The rose ring is the mean of those other points.
Answer: No outlier in x or in y. The off-line point is (10, 4).
| x | y |
|---|---|
| 1 | 4 |
| 3 | 8 |
| 5 | 12 |
| 7 | 2 |
| 9 | 20 |
| 11 | 24 |
| 13 | 28 |
Quartiles of x.
Order the values.
1, 3, 5, 7, 9, 11, 13
There are 7 values.
The median is the middle value. Leave it out of both halves.
Median = 7
Lower half: 1, 3, 5
The median of that half is the middle value.
Q₁ = 3
Upper half: 9, 11, 13
The median of that half is the middle value.
Q₃ = 11
IQR = Q₃ − Q₁
IQR = 11 − 3
IQR = 8
1.5 × IQR = 32 × IQR
1.5 × IQR = 32 × 8
1.5 × IQR = 242
1.5 × IQR = 12
Lower fence = Q₁ − 1.5 × IQR
Lower fence = 3 − 12
Lower fence = −9
Upper fence = Q₃ + 1.5 × IQR
Upper fence = 11 + 12
Upper fence = 23
A value is an outlier when it is below −9 or above 23.
No x-value is outside the fences.
Quartiles of y.
Order the values.
2, 4, 8, 12, 20, 24, 28
There are 7 values.
The median is the middle value. Leave it out of both halves.
Median = 12
Lower half: 2, 4, 8
The median of that half is the middle value.
Q₁ = 4
Upper half: 20, 24, 28
The median of that half is the middle value.
Q₃ = 24
IQR = Q₃ − Q₁
IQR = 24 − 4
IQR = 20
1.5 × IQR = 32 × IQR
1.5 × IQR = 32 × 20
1.5 × IQR = 602
1.5 × IQR = 30
Lower fence = Q₁ − 1.5 × IQR
Lower fence = 4 − 30
Lower fence = −26
Upper fence = Q₃ + 1.5 × IQR
Upper fence = 24 + 30
Upper fence = 54
A value is an outlier when it is below −26 or above 54.
No y-value is outside the fences.
The other points lie on y = 2x + 2.
At x = 7, that line gives y = 16.
The recorded point is (7, 2), so it sits off the pattern.
The rose point is off the line through the other points. The rose ring is the mean of those other points.
Answer: No outlier in x or in y. The off-line point is (7, 2).
| x | y |
|---|---|
| 4 | 3 |
| 6 | 7 |
| 8 | 11 |
| 10 | 15 |
| 12 | 19 |
| 14 | 6 |
Quartiles of x.
Order the values.
4, 6, 8, 10, 12, 14
There are 6 values.
The median is the mean of the two middle values.
Median = sum of the two middle values2
Median = 8 + 102
Median = 182
Median = 9
The two halves have the same length.
Lower half: 4, 6, 8
The median of that half is the middle value.
Q₁ = 6
Upper half: 10, 12, 14
The median of that half is the middle value.
Q₃ = 12
IQR = Q₃ − Q₁
IQR = 12 − 6
IQR = 6
1.5 × IQR = 32 × IQR
1.5 × IQR = 32 × 6
1.5 × IQR = 182
1.5 × IQR = 9
Lower fence = Q₁ − 1.5 × IQR
Lower fence = 6 − 9
Lower fence = −3
Upper fence = Q₃ + 1.5 × IQR
Upper fence = 12 + 9
Upper fence = 21
A value is an outlier when it is below −3 or above 21.
No x-value is outside the fences.
Quartiles of y.
Order the values.
3, 6, 7, 11, 15, 19
There are 6 values.
The median is the mean of the two middle values.
Median = sum of the two middle values2
Median = 7 + 112
Median = 182
Median = 9
The two halves have the same length.
Lower half: 3, 6, 7
The median of that half is the middle value.
Q₁ = 6
Upper half: 11, 15, 19
The median of that half is the middle value.
Q₃ = 15
IQR = Q₃ − Q₁
IQR = 15 − 6
IQR = 9
1.5 × IQR = 32 × IQR
1.5 × IQR = 32 × 9
1.5 × IQR = 272
1.5 × IQR = 13.5
Lower fence = Q₁ − 1.5 × IQR
Lower fence = 6 − 13.5
Lower fence = −7.5
Upper fence = Q₃ + 1.5 × IQR
Upper fence = 15 + 13.5
Upper fence = 28.5
A value is an outlier when it is below −7.5 or above 28.5.
No y-value is outside the fences.
The other points lie on y = 2x − 5.
At x = 14, that line gives y = 23.
The recorded point is (14, 6), so it sits off the pattern.
The rose point is off the line through the other points. The rose ring is the mean of those other points.
Answer: No outlier in x or in y. The off-line point is (14, 6).
| x | y |
|---|---|
| 1 | 3 |
| 2 | 6 |
| 3 | 9 |
| 4 | 12 |
| 5 | 15 |
| 6 | 5 |
Quartiles of x.
Order the values.
1, 2, 3, 4, 5, 6
There are 6 values.
The median is the mean of the two middle values.
Median = sum of the two middle values2
Median = 3 + 42
Median = 72
Median = 3.5
The two halves have the same length.
Lower half: 1, 2, 3
The median of that half is the middle value.
Q₁ = 2
Upper half: 4, 5, 6
The median of that half is the middle value.
Q₃ = 5
IQR = Q₃ − Q₁
IQR = 5 − 2
IQR = 3
1.5 × IQR = 32 × IQR
1.5 × IQR = 32 × 3
1.5 × IQR = 92
1.5 × IQR = 4.5
Lower fence = Q₁ − 1.5 × IQR
Lower fence = 2 − 4.5
Lower fence = −2.5
Upper fence = Q₃ + 1.5 × IQR
Upper fence = 5 + 4.5
Upper fence = 9.5
A value is an outlier when it is below −2.5 or above 9.5.
No x-value is outside the fences.
Quartiles of y.
Order the values.
3, 5, 6, 9, 12, 15
There are 6 values.
The median is the mean of the two middle values.
Median = sum of the two middle values2
Median = 6 + 92
Median = 152
Median = 7.5
The two halves have the same length.
Lower half: 3, 5, 6
The median of that half is the middle value.
Q₁ = 5
Upper half: 9, 12, 15
The median of that half is the middle value.
Q₃ = 12
IQR = Q₃ − Q₁
IQR = 12 − 5
IQR = 7
1.5 × IQR = 32 × IQR
1.5 × IQR = 32 × 7
1.5 × IQR = 212
1.5 × IQR = 10.5
Lower fence = Q₁ − 1.5 × IQR
Lower fence = 5 − 10.5
Lower fence = −5.5
Upper fence = Q₃ + 1.5 × IQR
Upper fence = 12 + 10.5
Upper fence = 22.5
A value is an outlier when it is below −5.5 or above 22.5.
No y-value is outside the fences.
The other points lie on y = 3x.
At x = 6, that line gives y = 18.
The recorded point is (6, 5), so it sits off the pattern.
The rose point is off the line through the other points. The rose ring is the mean of those other points.
Answer: No outlier in x or in y. The off-line point is (6, 5).
Use the line through the other points, y = 2x + 1.
The line that includes (10, 4) is pulled toward that point.
y = 2x + 1
y = 2(7) + 1
y = 14 + 1
y = 15
Answer: y = 15.
Use the line through the other points, y = 2x − 1.
The line that includes (8, 1) is pulled toward that point.
y = 2x − 1
y = 2(6) − 1
y = 12 − 1
y = 11
Answer: y = 11.
Want to go over a scatter diagram together?
Book a Session with Amy