Docsity

STAT 481 Midterm II Review: Linear Regression and ANOVA, Exams of Statistics

Toggle sidebar
bg1
STAT 481 Midterm II – Review Spring 2012
1. A multiple linear regression model iiii xxY
ε
β
β
β
+
+
+
=
22110 is used to fit n=25
data points.
a). It was found that SSTO=300, SSR=120. Construct the ANOVA Table.
b). Calculate R-square and interpret it.
c). To test 0:210 ==
β
β
H, what’s your conclusion?
d). Use the design matrix X and response vector Y to express the partial coefficient
estimates and its variance matrix. [Derive the normal equation based on least square
estimation.]
e). If
()
, find the standard error of the least square
estimate of the two coefficients respectively,
)49.0,25.0,40.0(' 1diagXX =
−
(
)
(
)
21 ˆ
,
ˆ
ββ
ss . Then calculate the margin of
error of the 95% confidence interval for .
21 ˆ
,
ˆ
ββ
f). What test will be used to perform individual test for the partial linear coefficient of
, give the test statistic and its distribution under
1
ˆ
β
0: 10
=
β
H ?
2.
a) Write down the mean model and the required assumption for the analysis.
b) Write down effect model and model restrictions
c) Compute SSTO and SSTR
d) Given that F(0.01, 2, 253) = 4.7, what is the p-value for the test for the difference of
the SAT scores among three groups of students? What’s your conclusion?
e) Prove E(MSE)=σ2. What is E(MSTR) in general?
f) Find the 95% confidence interval for the difference between the SAT scores of
computer science and engineering science students.
1
pf2

Partial preview of the text

Download STAT 481 Midterm II Review: Linear Regression and ANOVA and more Exams Statistics in PDF only on Docsity!

STAT 481 Midterm II – Review Spring 2012

1. A multiple linear regression model Yi = β 0 + β 1 xi 1 + β 2 xi 2 + ε i is used to fit n=

data points. a). It was found that SSTO=300, SSR=120. Construct the ANOVA Table. b). Calculate R-square and interpret it.

c). To test H 0 : β 1 = β 2 = 0 , what’s your conclusion?

d). Use the design matrix X and response vector Y to express the partial coefficient estimates and its variance matrix. [Derive the normal equation based on least square estimation.] e). If ( ) , find the standard error of the least square estimate of the two coefficients respectively,

X ' X −^1 = diag ( 0. 40 , 0. 25 , 0. 49 ) s (β ˆ 1 ), s ( β ˆ 2 ). Then calculate the margin of

error of the 95% confidence interval for βˆ 1 , βˆ 2.

f). What test will be used to perform individual test for the partial linear coefficient of

βˆ 1 , give the test statistic and its distribution under H 0 : β 1 = 0?

a) Write down the mean model and the required assumption for the analysis. b) Write down effect model and model restrictions c) Compute SSTO and SSTR d) Given that F(0.01, 2, 253) = 4.7, what is the p-value for the test for the difference of the SAT scores among three groups of students? What’s your conclusion? e) Prove E(MSE)=σ^2. What is E(MSTR) in general? f) Find the 95% confidence interval for the difference between the SAT scores of computer science and engineering science students.

g) Use Tukey’s 95% simultaneous confidence interval to decide if there is difference among the groups simultaneously, and further group the majors. Use q(0.05, 3, 253)=3.32.

Brief Keys:

1. a) ANOVA Source SS DF MS F Regression 120 2 60 7. Error 180 22 8. Total 300 24

b) Coefficent of determination: R^2 =40%. By introducing two predictors, the variation of the response is reduced by 40%. Or 40% of the variation of the response can be explained by the linear model. c) Reject H0, there is at least one predictor which explains some of the variation of the response Y.

d) Normal Equation: ( X ' X ) βˆ LS = X ' Y , or

i i i i i i

i i i i i i

i i i

x x x x x y

x x x x x y

n x x y

2 2

2 2 0 1 2 1 2

1 1 2 2 1

2 1 0 1

0 1 1 2 2

β β β

β β β

β β β

βˆ^ LS = (β ˆ 0 ,βˆ 1 ,βˆ 2 )' =( X ' X ) −^1 XY , Cov (βˆ LS )= σ^2 ( X ' X ) −^1

e) s ( βˆ 1 ) = 1. 43 , s ( βˆ 2 ) = 2. 0 , t (. 025 , 22 ) s (β ˆ 1 ) = 2. 96 , t (. 025 , 22 ) s (β ˆ 2 ) = 4. 14 ,

f) Use t-test

1

1 ˆ 1^ t s

t β

β

β =^ )^ under^ H^0 :^ β^1 =^0

2. a) Mean Model: Yij = μ i + ε ij , i = 1 , 2 , 3 , j = 1 , 2 ..., ni , n 1 = 103 , n 2 = 31 , n 3 = 122 , where

errors are ε ij i.i.d. ~ N ( 0 , σ^2 ). Variable Y is the response, SAT score. Mean μ i is the

average score of each of the three majors, C.S., Eng., other major (factor level).

b) Effect Model: Yij = μ + τ i + ε ij , i = 1 , 2 , 3 , j = 1 , 2 ..., ni , n 1 = 103 , n 2 = 31 , n 3 = 122

where ε ij i.i.d. ~ N ( 0 , σ^2 )and ∑ ni τ i = 0.

c) SSTO=1862003, SSTR= d) P-value<0.01, reject H0, i.e. three groups of students do have different SAT math scores.

e) ( ) ( ) , 3

1

=

n k k

EMSE EMSTR

k

i

σ σ i τ i

f) − 10 ± 33. 2 g) 1vs 2: − 10 ± 40 , 2vs 3: 54 ± 39 , 1vs 3: 44 ± 26. It tells that the SAT score of group 3 is significantly from those of group 1 and 2, meanwhile no strong evidence show that group 1 and group 2 are different.