











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












4/21/2008 Lecture 5 - Ramón V. León 1
4/21/2008 Lecture 5 - Ramón V. León 2
4/21/2008 Lecture 5 - Ramón V. León 3
2
Notice that the predictor variable is regarded as nonrandom because it is assumed to be set by the investigator
Constant variability about the regression line
4/21/2008 Lecture 5 - Ramón V. León 4
Reflections on the Method of Tire
Data Collection: Experimental Design
Mileage Depth 0 394. 4 329. 8 291 12 255. 16 229. 20 204. 24 179 28 163. 32 150.
•Mileage in 1000 miles •Depth in mils
4/21/2008 Lecture 5 - Ramón V. León 7
4/21/2008 Lecture 5 - Ramón V. León 8
The least squares line fit is the line that minimizes the sum of the squares of the lengths of the vertical segments
4/21/2008 Lecture 5 - Ramón V. León 9
[ ]
0 1
2 0 1 1
0 1
0 1
n i i i
=
∑
4/21/2008 Lecture 5 - Ramón V. León 10
0 1
y β β
Add a row to the table and leave the y value blank.
4/21/2008 Lecture 5 - Ramón V. León 13
( ) (^) ( )
2 2 2 0 1 (^2 1 1 )
n n n i i i i i i i i
β β = = =
∑ ∑ ∑
2 s
s
This estimate has n-2 degrees of freedom because two unknown parameters are estimated.
4/21/2008 Lecture 5 - Ramón V. León 14
[ ]
0 0 1 1 0 1 (^0 0 2 1 ) 0 1
1 2, 2 1 7,0.
0 2, 2 0 7,
ˆ ˆ ˆ (0,1) and^ ˆ (0,1) ( ) ( ) ˆ ˆ ˆ and ˆ ( ) ( )
ˆ (^) ( ˆ) 7.28 0. 7.28 2.365 0.614 8.733, 5. ˆ (^) ( ˆ) 360.
n n
n
n
N N SD SD
t t SE SE
t SE t
t SE t
α
α
β β β β β β β β β β β β
β β
β β
− −
−
−
− −
− −
± = − ± × = − ± × = − − ± = ±
100(1 - α)% CI :
∼ ∼
∼ ∼
0.025 ×^ 11.
4/21/2008 Lecture 5 - Ramón V. León 15
0 1 1 1
1 1 0 2, 2 1 1
: 0 vs. : 0 ˆ 0 ˆ Reject at level if |t|= ( ˆ^ ) ( ˆ) n
H t SE SE α
−
1 7,. 1
Tire example:
Strong evidence that mileage affects tread depth. (Two-sided p-value)
4/21/2008 Lecture 5 - Ramón V. León 16
For a fixed value of x*, are we trying to predict -the average value of y? -the value of a future observation of y?
Example:
Which prediction is subject to the most error?
4/21/2008 Lecture 5 - Ramón V. León 19
100
150
200
250
300
350
400
Grove Depth (in mils)
-10 0 10 20 30 40 Mileage (in 1000 Miles
4/21/2008 Lecture 5 - Ramón V. León 20
Prediction Interval of Chapter 7:
1
n xx i i
= (^) ∑ −
4/21/2008 Lecture 5 - Ramón V. León 21
Using the Fit Model Platform not the Fit Y by X platform
4/21/2008 Lecture 5 - Ramón V. León 22
4/21/2008 Lecture 5 - Ramón V. León 25
The residuals are the differences between the observed value of y and the predicted value of y
0 1 y ˆ^ = βˆ + βˆ(32) = 360.64 − 7.281 × 32 =127.65 mils
4/21/2008 Lecture 5 - Ramón V. León 26
The residuals ˆ can be viewed as the "left over" after the model is fitted. If the model is correct , then the can be viewed as the "estimates" of the random errors '. As such, the residua
i i i
i i
e y y
ls are vital for checking the model assumptions.
If the model is correct the residuals should have no structure, that is, they should look random on their plots.
4/21/2008 Lecture 5 - Ramón V. León 27
4/21/2008 Lecture 5 - Ramón V. León 28
In Fit Y by X platform: In Fit Model platform:
Red triangle menu next to Linear Fit.
4/21/2008 Lecture 5 - Ramón V. León 31
4/21/2008 Lecture 5 - Ramón V. León 32
Residuals have a random pattern
Left plot can also be obtained using the Plot Residuals option
The Fit Y by X platform was used to get these plots
4/21/2008 Lecture 5 - Ramón V. León 33
R^2 was .95261 for model linear in x
4/21/2008 Lecture 5 - Ramón V. León 34
If assumption is incorrect,
often ( ) is some function of ( )
Var Y E Y = μ
4/21/2008 Lecture 5 - Ramón V. León 37
x
β α α β
−
4/21/2008 Lecture 5 - Ramón V. León 38
5.93 .0298.
MILES MILES
− −