M
Math Coach Amy
Amy Ferguson Moncure

IB AA · 6D Correlation and Regression

Two Groups and Outliers

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.

Jump to section:

Use the line for that group.

What to Remember

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.

Easy

Easy

The two lines and their x-intervals are given.

Example
Junior players have heights from 120 cm to 150 cm, and y = 25x − 24. Adult players have heights from 160 cm to 190 cm, and y = x − 100. Use the adult line to predict y when x = 165.

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.

1
Junior players have heights from 120 cm to 150 cm, and y = 25x − 24 for mass in kilograms. Adult players have heights from 160 cm to 190 cm, and y = x − 100. Use the junior line to predict y when x = 125.
Show Answer

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.

2
The morning class has practice times from 10 to 40 minutes, and y = x + 5. The evening class has practice times from 50 to 80 minutes, and y = 2x − 40. Use the morning line to predict y when x = 25.
Show Answer

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.

3
The morning class uses y = x + 5 for x from 10 to 40. The evening class uses y = 2x − 40 for x from 50 to 80. Use the evening line to predict y when x = 75.
Show Answer

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.

4
Route A uses y = 3x + 1 for x from 4 to 10. Route B uses y = x + 8 for x from 14 to 20. Use the route A line to predict y when x = 5.
Show Answer

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.

5
Route A uses y = 3x + 1 for x from 4 to 10. Route B uses y = x + 8 for x from 14 to 20. Use the route B line to predict y when x = 19.
Show Answer

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.

Medium

Medium

Each group lies on a straight line. Find the line you need, then predict.

Example
Score, y, against laps, x, for two teams. Team A:
xy
26
410
614
818
Team B:
xy
108
1211
1414
1617
The points in each group lie on a straight line. Find the equation for the Team A group, then predict y when x = 7.

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.

1
Mass, y kg, against height, x cm, for two squads. Junior:
xy
12024
13028
14032
15036
Adult:
xy
16060
17070
18080
19090
The points in each group lie on a straight line. Find the equation for the Junior group, then predict y when x = 125.
Show Answer

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.

2
Points, y, against practice minutes, x, for two classes. Morning:
xy
1015
2025
3035
4045
Evening:
xy
5060
6080
70100
80120
The points in each group lie on a straight line. Find the equation for the Evening group, then predict y when x = 75.
Show Answer

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.

3
Boxes packed, y, against shifts, x, for two crews. Crew A:
xy
413
619
825
1031
Crew B:
xy
1422
1624
1826
2028
The points in each group lie on a straight line. Find the equation for the Crew A group, then predict y when x = 9.
Show Answer

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.

4
Leaflets delivered, y, against streets walked, x. North:
xy
27
411
615
819
South:
xy
1210
1416
1622
1828
The points in each group lie on a straight line. Find the equation for the South group, then predict y when x = 15.
Show Answer

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.

5
Songs recorded, y, against studio hours, x. Band A:
xy
15
28
311
414
Band B:
xy
64
76
88
910
The points in each group lie on a straight line. Find the equation for the Band A group, then predict y when x = 3.
Show Answer

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.

Hard

Hard

Check the fences, or choose the line that leaves the odd point out.

Example
A coach recorded pairs (x, y).
xy
25
49
613
817
817
104
Show that no x-value and no y-value is an outlier. Then name the point that does not follow the straight-line pattern of the others.

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.

xymean

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

1
A nurse recorded pairs (x, y).
xy
14
38
512
72
920
1124
1328
Show that no x-value and no y-value is an outlier. Then name the point that does not follow the straight-line pattern of the others.
Show Answer

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.

xymean

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

2
A shop recorded pairs (x, y).
xy
43
67
811
1015
1219
146
Show that no x-value and no y-value is an outlier. Then name the point that does not follow the straight-line pattern of the others.
Show Answer

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.

xymean

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

3
A lab recorded pairs (x, y).
xy
13
26
39
412
515
65
Show that no x-value and no y-value is an outlier. Then name the point that does not follow the straight-line pattern of the others.
Show Answer

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.

xymean

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

4
Seven workshop measurements were mostly on a line. One point, (10, 4), sits off the pattern. The regression line using every point is y = x + 6. The line through the other points is y = 2x + 1. Predict y when x = 7 using the line that follows the main pattern.
Show Answer

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.

5
Six garden measurements were mostly on a line. One point, (8, 1), sits off the pattern. The regression line using every point is y = x + 4. The line through the other points is y = 2x − 1. Predict y when x = 6 using the line that follows the main pattern.
Show Answer

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