



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!




Problem 6.1 Pag.
β
T (^) = (β 0 , β 1 , β 2 ).
β
T (^) = (β 0 , β 1 , β 2 ).
Problem 6.2 Pag.
βT^ = (β 0 , β 1 , β 2 , β 3 ).
X = 1 X 11 log 10 X 12 1 X 21 log 10 X 22 1 X 31 log 10 X 32 1 X 41 log 10 X 42 1 X 51 log 10 X 52
βT^ = (β 0 , β 1 , β 2 ).
Problem 6.3 Pag.248 A good model should explain the response well with a small set of predic- tors.
Problem 6.4 Pag.248 Because r 12 measures the linear relation between Y and X, so its sign is the same as the slope sign. However, in the multiple correlation R, there are several variables.
Problem 6.22 Pag.
Problem 6.23 Pag.
∑^ n
i=
(Yi − β 1 Xi 1 − β 2 Xi 2 )^2
. That is:
(b 1 , b 2 ) = argmin(β 1 , β 2 )W (1)
Taking derivatives:
d W dβ 1
∑^ n
i=
Xi 1 (Yi − β 1 Xi 1 − β 2 Xi 2 ) = 0 (2)
d W dβ 2
∑^ n
i=
Xi 2 (Yi − β 1 Xi 1 − β 2 Xi 2 ) = 0 (3)
Then:
b 1 =
YiXi 2
Xi 1 Xi 2 −
YiXi 2
X i^22 (
Xi 1 Xi 2 )^2 −
X i^21
X i^22
b 2 =
YiXi 1
Xi 1 Xi 2 −
YiXi 1
X i^21 (
Xi 1 Xi 2 )^2 −
X i^21
X i^22
2 πσ^2
) n 2 exp
2 σ^2
∑^ n
i=
(Yi − β 1 Xi 1 − β 2 Xi 2 )^2
Then, the log-likelihood:
l = ln L = n 2
ln
2 πσ^2
2 σ^2
∑^ n
i=
(Yi − β 1 Xi 1 − β 2 Xi 2 )^2 (7)
And taking the derivatives:
d l dβ 1
σ^2
∑^ n
i=
Xi 1 (Yi − β 1 Xi 1 − β 2 Xi 2 ) = 0 (8)
d l dβ 2
σ^2
∑^ n
i=
Xi 2 (Yi − β 1 Xi 1 − β 2 Xi 2 ) = 0 (9)
And equating to zero, these are the same normal equations as in the OLS estimators.
Problem 6.26 Pag.253 Model (6.1): Yi = β 0 + β 1 Xi 1 + β 2 Xi 2 + i. The coefficient of multiple
determination is: R(^2 X 1 ,X 2 ) = 1 − SSE(X 1 ,X 2 ) SST O. If we construct the linear model Yi = β 0 ∗ + β 1 ∗ Yˆi + ∗ i , then the coefficient of simple determination is:
R^2 (Y,^ Yˆ^ )
SSE( Yˆ ) SST O. Notice that the total sum of squares (SSTO) is the same in both models. It remains to show that SSE(X 1 ,X 2 ) = SSE( Yˆ (^) ).
However,
b∗ 1 =
∑n i=
Yi − Y¯
Yi − Y¯
∑n i=
Yˆi − Y¯
∑n i=
Yˆi − Y¯
ei +
Yˆi − Y¯
∑n i=
Yˆi − Y¯
∑n i=
Yˆi − Y¯
∑n i=
Yˆi − Y¯
And then, b∗ 0 = Y¯ − Y¯ = 0. this impliest that: Yˆ = Yˆ ∗, and:
∑^ n
i=
Yi − Yˆi
∑^ n
i=
Yi − Yˆ ∗i
Problem 6.27 Pag.254 Defining in R the matrix X and the vector Y:
one=as.matrix(one) x=as.matrix(one,x) x=matrix(x,ncol=3,nrow=6) y=data$y
b [,1] [1,] 33. [2,] 2. [3,] -0.
e [,1] [1,] -2. [2,] -1. [3,] -1. [4,] -1. [5,] -0. [6,] 6.
H
SSR [,1] [1,] 3009.
s_b [,1] [,2] [,3] [1,] 715.47114 -34.1589166 -13. [2,] -34.15892 1.6616664 0. [3,] -13.59494 0.6440674 0.
y_h [,1] [1,] 53.
s_y_h [,1] [1,] 5.