Escolar Documentos
Profissional Documentos
Cultura Documentos
F. Chiaromonte 1
NORMAL SIMPLE LINEAR REGRESSION MODEL:
yi = β 0 + β1 xi + ε i
β0 = intercept
F. Chiaromonte 2
INFERENCE FOR THE SLOPE:
n n
∑ ( x − x )( y − y ) ∑ ( x − x ) y
i i i i n
b1 = i =1
n
= i =1
n
= ∑ ki yi
∑ (x − x )
i =1
i
2
∑ (x − x )
i =1
i
2 i =1
( xi − x )
ki = n
yi ~ N ( β 0 + β1 xi , σ 2 )
∑ j
( x
j =1
− x ) 2
It follows that
⎛ ⎞
⎜ ⎟
σ 2
b1 ~ N ⎜ β1 , n ⎟
⎜ 2 ⎟
⎜ ∑ j ( x − x ) ⎟
F. Chiaromonte
⎝ j =1 ⎠ 3
m b)= s2 s
var( 1 n
se(b1 ) =
∑ (x
n
− x) ∑ j
2
j ( x − x ) 2
j =1 j =1
b1 − β1
~ tn − 2
se(b1 )
F. Chiaromonte 4
For instance:
Test statistic
b1
t= ~ tn − 2 under Ho
se(b1 )
-tobs +tobs
F. Chiaromonte 5
INFERENCE FOR THE INTERCEPT:
n n n
1
b0 = y − b1 x = ∑ yi − ∑ ki x yi = ∑ ki yi
i =1 n i =1 i =1
1 ( xi − x )
ki = − n x yi ~ N ( β 0 + β1 xi , σ 2 )
∑ j
n
( x − x ) 2
j =1
It follows that
⎛ ⎡ ⎤⎞
⎜ ⎢1 2 ⎥ ⎟
x
b0 ~ N ⎜ β 0 , σ 2 ⎢ + n ⎥⎟
⎜ ⎢n 2 ⎥⎟
⎜ ⎢ ∑ (x j − x ) ⎥ ⎟
⎝ ⎣ j =1 ⎦⎠
F. Chiaromonte 6
1/ 2
⎡ ⎤ ⎡ ⎤
⎢1 x 2 ⎥ ⎢1 x 2 ⎥
m b ) = s2 ⎢ +
var( ⎥ se(b0 ) = s ⎢ + n ⎥
⎢n 2 ⎥ ⎢n 2⎥
0 n
⎢ ∑ ( x j − x ) ⎥ ⎢ ∑ ( x j − x ) ⎥
⎣ j = 1 ⎦ ⎣ j =1 ⎦
and
standard error
b0 − β 0
~ tn − 2
se(b0 )
F. Chiaromonte 7
For instance:
Test statistic
b0
t= ~ tn − 2 under Ho
se(b0 )
-tobs +tobs
F. Chiaromonte 8
SCORES.MTW data set: Regression Analysis: Second versus First
40
40 50 60 70 80 90 100
First
F. Chiaromonte 9
95% confidence intervals in Minitab:
Calc > Probability Distributions > t
Inverse cumulative probability
(do not worry about the non centrality parameter, it is 0 as by default)
Degrees of freedom at n-2 = 31-2 =29
Input constant at 1-0.025=0.975
• If errors (and hence y values at given x’s) depart from normality, the student
T’s are not, rigorously speaking, the right reference distributions to use in
inference. But some departure is tolerated, and if n is large asymptotic
normality holds.
• The spread of the x levels affects the standard errors of slope and intercept
estimates.
F. Chiaromonte 11