Regression Notes
Regression Notes
Probability Distributions
Lesson 2
Linear Regression
Time
HR
VO2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
96
95
95
94
95
94
104
104
106
109
108
110
113
113
118
115
121
127
131
130
.753
.929
.939
.832
.983
1.049
1.178
1.176
1.292
1.379
1.403
1.499
1.529
1.599
1.749
1.746
1.897
2.040
2.231
2.301
Oxygen Uptake
2.5
2.0
1.5
1.0
0.5
0.0
90
100
110
120
130
Heart Rate
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?)
Unit 2: Probability Distributions
15 14
15
10
y
5
0
2
15 14
15
y = 2x 2
(8, 14)
10
y
5
(3, 4)
15 14
12 14
1 1
(y )2 0
15
= 2x 2
(8, 14)
SSE =
10
(y )
y
5
(3, 4)
0
2
1
2
= 11
where
Sxy
the slope of the least-squares line is b1 S
xx
Recall
Sxx (xi x )2
xi2
Sxy (xi x )( yi y)
x y
i
xi yi
15
14
x2
16
25
49
64
xy
12
20
35 105 112
272
17.2
S 284
(45)(27)
41
xy
5
Sxy
41 = 2.38
The slope of the least-squares line is b1
Sxx 17.2
The intercept of the least-squares line is
5
b0 y b1 x = 9 (2.38)(5.4) = 3.87
Unit 2: Probability Distributions
15
14
15
= 2.38x 3.85
10
y
5
0
2
15
14
= 2.38x 3.85
10
y
5
SSE =
0
2
(y )
= 8.47
Miles Per
Gallon
3565
19
3440
20
3970
17
3305
19
3340
20
3200
20
3230
19
2560
28
2520
28
3065
20
= .0073x + 44.3
3600
18
3300
19
3625
19
3590
19
2605
23
2370
28
Weight
(pounds)
Miles Per
Gallon
3565
19
3440
20
3970
17
3305
19
3340
20
3200
20
3230
19
2560
28
2520
28
3065
20
3600
18
3300
19
3625
19
3590
19
2605
23
2370
28
Miles Per
Gallon
3565
19
3440
20
3970
17
3305
19
3340
20
3200
20
3230
19
2560
28
2520
28
3065
20
3600
18
3300
19
3625
19
3590
19
2605
23
2370
28
Residual
15
2000
2500
3000
3500
4000
Weight (lbs)
Weight
(pounds)
Miles Per
Gallon
3565
19
3440
20
3970
17
3305
19
3340
20
3200
20
3230
19
2560
28
2520
28
3065
20
3600
18
3300
19
3625
19
3590
19
2605
23
2370
28
Miles Per
Gallon
3565
19
3440
20
3970
17
(e) Would it be reasonable to use the leastsquares regression line to predict the mileage
of a Honda Insighta hybrid gas and electric
car? Why?
3305
19
3340
20
3200
20
3230
19
2560
28
2520
28
3065
20
3600
18
3300
19
3625
19
3590
19
2605
23
2370
28
Gender
MRI
Count
IQ
Gender
Female
Female
816932
951545
133
137
Male
Male
949395 140
1001121 140
Female
991305
138
Male
1038437 139
Female
833868
132
Male
965353
133
Female
856472
140
Male
955466
133
Female
852244
132
Male
1079549 141
Female
790619
135
Male
924059
135
Female
866662
130
Male
955003
139
Female
857782
133
Male
935494
141
Female
948066
133
Male
949589
144
MRI
Count
IQ
Gender
MRI
Count
IQ
Gender
Female
Female
816932
951545
133
137
Male
Male
949395 140
1001121 140
Female
991305
138
Male
1038437 139
Female
833868
132
Male
965353
133
Female
856472
140
Male
955466
133
Female
852244
132
Male
1079549 141
Female
790619
135
Male
924059
135
Female
866662
130
Male
955003
139
Female
857782
133
Male
935494
141
Female
948066
133
Male
949589
144
MRI
Count
IQ
Gender
Cou
Bnrtain ISQize G
vesnIdnetrelligC
en
oc
ue
nt
145
Female 816932 133
Male
949395
140
Female y 951545 137
Male
1001121
135
Female 991305 138
Male
1038437
130
Male
965353
Female 833868 132
125
Female 856472 140
Male
955466
00
90
8
0
1000
Female 852244 132
Male
1079549
MRI Count
Male
924059
Female 790619 135
1000
IQ
Predict the IQ of an
individual whose MRI
count is 1,000,000. y = 13F6emale
Female
Female
MRI
IQ
140
140
139
133
133
1100
141
135
866662
130
Male
955003
139
857782
133
Male
935494
141
948066
133
Male
949589
144