Problems: Simple Linear Regression
Problems: Simple Linear Regression
Problems
yi = β0 + β1 xi + ε, (i = 1, 2, · · · , n), Model A
yi = γ0 + γ1 xi + γ2 x2i + ε, (i = 1, 2, · · · , n), Model B
Suppose both models are fitted to the same data. Show that
SSRes, A ≥ SSRes, B
If more higher order terms are added into the above Model B, i.e.,
yi = β1 xi + εi , (i = 1, 2, · · · , n)
yi = β1 xi + εi , (i = 1, 2, · · · , n)
x y
x1 y1
. .
.. ..
xn1 yn1
xn1 +1 yn1 +1
.. ..
. .
xn1 +n2 yn1 +n2
5. Consider a situation in which the regression data set is divided into two
parts as shown in Table 2.10.
The regression model is given by
⎧
(1)
⎪
⎨ β0 + β1 xi + εi , i = 1, 2, · · · , n1 ;
yi =
⎪
⎩ β (2) + β x + ε , i = n + 1, · · · , n + n .
0 1 i i 1 1 2
In other words, there are two regression lines with common slope. Using
the centered regression model
⎧
(1∗)
⎪
⎨ β0 + β1 (xi − x̄1 ) + εi , i = 1, 2, · · · , n1 ;
yi =
⎪
⎩ β (2∗) + β (x − x̄ ) + ε , i = n + 1, · · · , n + n ,
0 1 i 2 i 1 1 2
n1 n1 +n2
where x̄1 = i=1 xi /n1 and x̄2 = i=n1 +1 xi /n2 . Show that the least
squares estimate of β1 is given by
n1 n1 +n2
i=1 (xi − x̄1 )yi + i=n1 +1 (xi − x̄2 )yi
b1 = n1 n1 +n
2 2
i=1 (xi − x̄1 ) + i=n1 +1 (xi − x̄2 )
2
α1 − α2
(a). x0 =
β1 − β 2
(b). Find the maximum likelihood estimates (MLE) of x0 using the
least squares estimators α̂1 , α̂2 , β̂1 , and β̂2 .
150 77.4
150 77.4
150 77.4
150 77.4
150 77.4
150 77.4
150 77.4
150 77.4
150 77.4
150 77.4
150 77.4
150 77.4
(c). Plot a 95% confidence band on the regression line. Plot on the
same graph for part (b) and comment on it.
8. The study “Development of LIFETEST, a Dynamic Technique to As-
sess Individual Capability to Lift Material” was conducted in Virginia
Polytechnic Institute and State University in 1982 to determine if cer-
tain static arm strength measures have influence on the “dynamic lift”
characteristics of individual. 25 individuals were subjected to strength
tests and then were asked to perform a weight-lifting test in which
weight was dynamically lifted overhead. The data are in Table 2.12:
(a). Find the linear regression line using the least squares method.
(b). Define the joint hypothesis H0 : β0 = 0, β1 = 2.2. Test this
hypothesis problem using a 95% joint confidence region and β0
and β1 to draw your conclusion.
(c). Calculate the studentized residuals for the regression model. Plot
the studentized residuals against x and comment on the plot.
Simple Linear Regression 39
1 17.3 71.4
2 19.5 48.3
3 19.5 88.3
4 19.7 75.0
5 22.9 91.7
6 23.1 100.0
7 26.4 73.3
8 26.8 65.0
9 27.6 75.0
10 28.1 88.3
11 28.1 68.3
12 28.7 96.7
13 29.0 76.7
14 29.6 78.3
15 29.9 60.0
16 29.9 71.7
17 30.3 85.0
18 31.3 85.0
19 36.0 88.3
20 39.5 100.0
21 40.4 100.0
22 44.3 100.0
23 44.6 91.7
24 50.4 100.0
25 55.9 71.7