Inferential Issues in Regression Analysis
Inferential Issues in Regression Analysis
Professor
Institute of Statistical Research and Training
University of Dhaka, Bangladesh
where
ϵi being normally distributed, Now we have for give X , Y1 , Y2 , . . . , Yn ,
a random samples of size n from a Y ∼ N(β0 + β1 Xi , σ 2 ).
We have already obtained the point estimators of model parameters
β0 and β1 using LS method and an estimator of σ 2 using ANOVA
method.
An interval estimator of β0 and β1 can also be generated to describe
and validate the regression model.
Syed Shahadat Hossain, Ph.D. shahadat@[Link]
AST 303 Linear Regression Analysis —Lecture 06: Inferential Issues in Regression Analysis—
n
1 X
We also have σˆ2 = (yi − ŷi )2 = MSE
n−2
i=1
\
h i r h 2
i r h i
(x −x̄) (x0 −x̄)2
⇒ SE Ŷ (x0 ) = σ̂ n + P(x −x̄)2 = MSE n1 +
2 1 0 P
(xi −x̄)2
.
i
− α)% CI for
Clearly, a 100(1 v β0 can
be given by
u
u
u
u 1 x̄ 2
β̂0 ± tn−2; α2 uMSE + .
u
u n X n
2
(xi − x̄)
t
Syed Shahadat Hossain, Ph.D. shahadat@[Link] i=1
AST 303 Linear Regression Analysis —Lecture 06: Inferential Issues in Regression Analysis—
n
1 X
We also have σˆ2 = (yi − ŷi )2 = MSE
n−2
i=1
\
h i r h 2
i r h i
(x −x̄) (x0 −x̄)2
⇒ SE Ŷ (x0 ) = σ̂ n + P(x −x̄)2 = MSE n1 +
2 1 0 P
(xi −x̄)2
.
i
n
X n
X
With SSR = (ŷi − ȳ )2 , and SSE = (yi − ŷi )2 ,
i=1 i=1
SSE being location standardized sample sums of squares, dividing it
by σ 2 will produce standardized version of the sample sum of squares.
That is, the quantity SSE
σ2
follows a χ2 distribution with n − 2 degrees
of freedom, where n is the number of observations.
If the null hypothesis (H0 ) that ’the regression coefficients (β1 ) is
zero’ is true since in that casee the predictor variables have no effect
on the response. Under H0 , the SSR also becomes a sum of squared,
scaled normal variables. Hence the quantity SSR σ2
follows a χ2
distribution with 1 degrees of freedom.
(SSR/σ 2 )/1
F = .
(SSE /σ 2 )/(n − 2)
Example
A pediatrician tested the cholesterol levels of several children. The
readings of weights (in Kg) and cholesterol levels of 10 children are
presented in the following table.
Subject Weight Cholesterol Subject Weight Cholesterol
number in KG (x) levels (y ) number in KG (x) levels (y )
1 16 230 6 23 228
2 17 223 7 24 232
3 18 220 8 24 228
4 19 230 9 25 227
5 21 229 10 28 237
Example (cont.)
We
P get from Pthe computation:
P 2 P 2 P
x = 215; y = 2284; x = 4761; y = 521860; xy = 49205 .
We compute the regression coefficients:
xy − n1
P P P
x y)
β̂1 = P 2 1 P 2
x − n ( x)
1
49205 − 10 × 215 × 2284)
= 1
= 0.7148
4761 − 10 × (215)2
1X 1X
β̂0 = y − β̂ x
n n
1 1
= × 2284 − 0.7148 × × 215 = 213.03 .
10 10
Example (cont.)
The fitted line is given by
Example (cont.)
The fitted line can be drawn as:
Hence v
u
u
u 2
s
21.52
\h i u 1 21.5 1
SE β̂0 = uMSE + n = 15.45 10 + 138.5
u
u n X 2
t (xi − x̄)
i=1
= 7.28 .
Syed Shahadat Hossain, Ph.D. shahadat@[Link]
AST 303 Linear Regression Analysis —Lecture 06: Inferential Issues in Regression Analysis—
95% CI for β0
We compute
from the data, ha 100(1 − α)% CI for β0 as
\i
β̂0 ± tn−2; α2 SE β̂0
= (192.99, 233.06) .
95% CI for β0
We have v
r
\h i u MSE 15.45
SE β̂1 = u n = = 0.334 .
u
uX 2
138.5
t (xi − x̄)
i=1
A 100(1 − α)%
CI for β1 can be given by
\h i \h i
β̂1 − tn−2; 2 SE β̂1 , β̂1 + tn−2; 2 SE β̂1
α α
= (−0.204201, 1.633801) .
H0 : β1 = 0
against Ha : β1 ̸= 0 .
Now, consider testing the above hypothesis, we have under H0 ,
β̂1
t=
\ h i ∼ tn−2 .
SE β̂1
Computed value of t is,
β̂1 0.7148
t= = = 2.14
\ h i 0.334
SE β̂1
[p-value = 0.064776403] .
Since p-value > 0.05 is very small, we can not reject the null hypothesis.
Syed Shahadat Hossain, Ph.D. shahadat@[Link]
AST 303 Linear Regression Analysis —Lecture 06: Inferential Issues in Regression Analysis—
H0 : β1 = 0
against Ha : β1 ̸= 0 .
The confidence
Intervals for both
Predicted Mean
Responses and
Predicted individual
Responses can be
drawn on a graph
against different
values of x variable to
show how the interval
gets wider as the
prediction point gets
away from the mean
of x.