Lecture 8
Lecture 8
Oxygen Uptake
oxygen uptake increases as the 1.5
1.0
heart rate increases. 0.5
We can use the line of best fit to estimate the oxygen uptake from the
measured heart rate.
For example, at a heart rate of 100 beats per minute, the predicted
oxygen uptake is approximately 1.1 (units?)
0
2 4 6 8
x
For any given line of fit, the sum of the squared errors is
The least squares regression line is the line of fit that minimizes the
sum of the squared errors.
15
10
ŷ = 2x – 2 (8, 14) SSE = Σ(y – ŷ) 2
= 11
y
5
(3, 4)
0
2 4 6 8
x
Recall S xx ( xi x ) 2 S xy ( xi x )( yi y )
x
2
xi yi
x y
i i
x
i
2
i
n n
15
ŷ = 2.38x – 3.85
10
y
5
0
2 4 6 8
x
30 2520 28
3065 20
25 3600 18
3300 19
20
Residual 3625 19
15 3590 19
2000 2500 3000 3500 4000 2605 23
Weight (lbs) 2370 28
IQ
135
variables, we use the Female
130
991305 138 Male 1038437 139
Female 833868 132 Male 965353 133
mean value y to predict. 125
Female 856472 140 Male 955466 133
800 900 1000 1100
Predict the IQ of an Female 852244 132 Male 1079549 141
MRI Count
individual whose MRI Female 790619 135 Male
×1000
924059 135
Female 866662 130 Male 955003 139
count is 1,000,000. y = 136
Female 857782 133 Male 935494 141
Female 948066 133 Male 949589 144