Docsity

Midterm Exam - Linear Statistics Models I | STAT 740, Exams of Statistics

Toggle sidebar
bg1
STAT 740 MIDTERM FALL 2008
Directions: Work each problem. You may use calculators.
1. The model Y=Xβ+εis to be estimated from data (xi1, xi2, Yi), i=
1,...,5. The design matrix is
X=
1 1 0
1−1/2√3/2
1−1/2−√3/2
1 0 0
1 0 0
.
It is assumed that the eiare i.i.d. N(0, σ2).
(a) Find ˆ
β, the least squares estimator for β, and find an unbiased estimator
for σ2. What is the distribution of your variance estimator? [The
variance estimator may be expressed in terms of ˆ
βrather than as an
explicit function of the data.]
(b) Find the variance-covariance matrix of ˆ
β.
(c) How would you test H0:β1=β2= 0?
2. Let Yij =βi+γxij +εij,i= 1,2, j= 1,...,n. It is known that the εij
are i.i.d. N(0, σ2) and that Pjxij = 0 for i= 1,2.
(a) Express this model in the form Y=Xβ+ε. Show the matrix Xand
the parameter vector β.
(b) Find a 1 −αconfidence interval for β1−β2.
(c) Find the least squares estimators of the parameters if it is known that
β1=β2.
1
pf3
pf4
pf5

Partial preview of the text

Download Midterm Exam - Linear Statistics Models I | STAT 740 and more Exams Statistics in PDF only on Docsity!

STAT 740 MIDTERM FALL 2008

Directions: Work each problem. You may use calculators.

  1. The model Y = Xβ + ε is to be estimated from data (xi 1 , xi 2 , Yi), i = 1 ,... , 5. The design matrix is

X =

    

    

It is assumed that the ei are i.i.d. N (0, σ^2 ).

(a) Find βˆ, the least squares estimator for β, and find an unbiased estimator for σ^2. What is the distribution of your variance estimator? [The variance estimator may be expressed in terms of βˆ rather than as an explicit function of the data.]

(b) Find the variance-covariance matrix of βˆ.

(c) How would you test H 0 : β 1 = β 2 = 0?

  1. Let Yij = βi + γxij + εij , i = 1, 2, j = 1,... , n. It is known that the εij are i.i.d. N (0, σ^2 ) and that

∑ j xij = 0 for^ i^ = 1,^ 2.

(a) Express this model in the form Y = Xβ + ε. Show the matrix X and the parameter vector β.

(b) Find a 1 − α confidence interval for β 1 − β 2.

(c) Find the least squares estimators of the parameters if it is known that β 1 = β 2.

  1. The analyses below are based on 21 days of operation of operation of a plant for the oxidation of ammonia (NH3) to nitric acid (HNO3). The data consist of observations on each of four variables. The predictors are x 1 = Air Flow, representing the rate of operation of the plant; x 2 = Water Temp, the temperature of cooling water circulated through coils in the absorption tower; and x 3 = Acid Conc., the concentration of the acid circulating in coded units. The dependent variable is Y = stack.loss, defined as 10 times the percentage of the ingoing ammonia to the plant that escapes from the absorption column unabsorbed, that is, an (inverse) measure of the over-all efficiency of the plant. Three regression models were fitted to these data:

Y = β 0 + β 2 x 2 + ε (1) Y = β 0 + β 1 x 1 + β 2 x 2 + ε (2) Y = β 0 + β 1 x 1 + β 2 x 2 + β 3 x 3 + ε (3)

The results appear on the following page.

(a) Calculate the test statistic for testing Model 1 vs. Model 3 and state its null hypothesis distribution.

(b) Assuming Model 2 is correct, how would you estimate Var Y? What would be the distribution of your estimated variance?

(c) How would you test Model 2 vs. Model 3 at level α = 0.05? What is your test statistic, and what would be the result of your test? Answer the same questions for testing Model 1 vs. Model 2.

SOLUTIONS

  1. (a) We have

XT^ X =

 

  , XT (^) Y =

 

∑ Yi Y 1 − (Y 2 + Y 3 )/ 2 (Y 2 − Y 3 )

 .

Therefore βˆ 0 = Y¯ , βˆ 1 = (2Y 1 − Y 2 − Y 3 )/3 and βˆ 2 = (Y 2 − Y 3 )

  1. The variance estimator is s^2 =

∑ (Yi − Y¯ − βˆ 1 xi 1 − βˆ 2 xi 2 )^2 , and s^2 ∼ σ^2 χ^22. (b)

Var-Cov(βˆ) = σ^2 (XT^ X)−^1 = σ^2

  

  

(c) H 0 : β 1 = β 2 = 0 is equivalent to Cβ = 0 where

C =

[ 0 1 0 0 0 1

] .

Reject H 0 iff (3/2)( βˆ^21 + βˆ 22 )/ 2 s^2

F 2 , 2 , 1 −α.

  1. (a) Write β = [β 1 , β 2 , γ]T^ , Y = [Y 11 , Y 12 ,... , Y 1 n, Y 21 , Y 22 ,... , Y 2 n]T and

X =

      

1 0 x 11 .. .

1 0 x 1 n 0 1 x 21 .. .

0 1 x 2 n

      

(b) We first set up and solve the normal equations, finding

XT^ Xβ =

 

n 0 0 0 n 0 0 0

∑ i

∑ j x 2 ij

  β =

 

Y^ ¯ 1 ·

Y^ ¯ 2 ·

∑ i

∑ j xij Yij

  = XT (^) Y.

Therefore the required confidence interval is

β 1 − β 2 = Y¯ 1 · − Y¯ 2 · ± st 2 n− 3 , 1 −α/ 2

√ 2 /n,

where s^2 = (2n − 3)−^1

∑ i

∑ j (Yij −^ Y¯i· −^ ˆγxij )

(c) If β 1 = β 2 , the problem reduces to simple linear regression. Then, because

∑ i

∑ j xij^ = 0, the estimates are

βˆ = Y¯·· and γˆ =

∑ i

∑ ∑^ j^ xij^ Yij i

∑ j x 2 ij

  1. (a) Let R^2 j denote the squared multiple correlation under Model j, j = 1, 2 , 3. Then from the computer output

F =

(R 32 − R^21 )/ 2

(1 − R^23 )/ 17

The statistic has an F 2 , 17 distribution under H 0. (b) Under Model 2 s^2 = 3. 2392 = 10.491 where s^2 ∼ σ^2 χ^218. (c) To test Model 1 vs. Model 2 use the t test for the coefficient of Air.Flow. From the Model 2 table, t = 5.298 and p = 4. 90 × 10 −^5. We reject the hypothesis and assume Model 2 holds. To test Model 2 vs. Model 3, we use the t test for the coefficient of Acid.Conc.. From the Model 3 table, t = − 0 .973 and p = 0. 34405. We conclude that Model 2 holds.