Docsity

Mathematical Statistics I - Sample Midterm Solutions | STA 131C, Exams of Mathematical Statistics

Toggle sidebar
bg1
Spring 2009
Statistics 131C
Solution : Sample Midterm
(Show all the relevant works)
1. Consider a problem of simple linear regression in which the durability Yof a certain type
of alloy is to be related to the temperature Xat which it was produced. Suppose that
the observations are given by
xiyi
0.5 40
1.0 41
1.5 43
2.0 42
2.5 44
3.0 42
3.5 43
4.0 42
(a) Determine the MLE’s ˆ
β0,ˆ
β1and ˆσ2, and the values Var( ˆ
β0) and Var(ˆ
β1). State
clearly the assumptions you are making for each case.
(b) Suppose that you want to estimate the parameter θ= 5−4β0+β1. Find an unbiased
estimator ˆ
θof θ. Determine the value of ˆ
θand an estimate of the mean squared error
of ˆ
θ.
(c) If a specimen of the alloy is to be produced at the temperature x= 3.25, what is the
predicted value of the durability of the specimen, and what is the estimated mean
squared error of this prediction ?
Ans.
(a) The MLE’s of β0and β1are the least squares estimates. Here n= 8, xn= 2.25,
yn= 42.125, Pn
i=1 xiyi= 764, and Pn
i=1 x2
i= 51. Therefore, ˆ
β1= (Pixiyi−
nxnyn)/(Pix2
i−nx2
n) = 0.5476 and ˆ
β0=yn−ˆ
β1xn= 40.8929.
ˆσ2=1
n
n
X
i=1
(yi−ˆ
β0−ˆ
β1x2
n) = 1
n"n
X
i=1
(yi−yn)2−ˆ
β2
1
n
X
i=1
(xi−xn)2#
=1
8£10.875 −0.54762×10.5¤= 0.96577.
Var(ˆ
β0) = σ2·1
n+x2
n
Pi(xi−xn)2¸=σ2·1
8+2.252
10.5¸
Var = σ2
Pi(xi−xn)2=σ2
10.5.
1
pf3

Partial preview of the text

Download Mathematical Statistics I - Sample Midterm Solutions | STA 131C and more Exams Mathematical Statistics in PDF only on Docsity!

Spring 2009

Statistics 131C

Solution : Sample Midterm

(Show all the relevant works)

  1. Consider a problem of simple linear regression in which the durability Y of a certain type of alloy is to be related to the temperature X at which it was produced. Suppose that the observations are given by

xi yi 0.5 40 1.0 41 1.5 43 2.0 42 2.5 44 3.0 42 3.5 43 4.0 42

(a) Determine the MLE’s βˆ 0 , βˆ 1 and ˆσ^2 , and the values Var( βˆ 0 ) and Var( βˆ 1 ). State clearly the assumptions you are making for each case. (b) Suppose that you want to estimate the parameter θ = 5− 4 β 0 +β 1. Find an unbiased estimator θˆ of θ. Determine the value of θˆ and an estimate of the mean squared error of θˆ. (c) If a specimen of the alloy is to be produced at the temperature x = 3.25, what is the predicted value of the durability of the specimen, and what is the estimated mean squared error of this prediction?

Ans.

(a) The MLE’s of β 0 and β 1 are the least squares estimates. Here n = 8, xn = 2.25, yn = 42.125,

∑n i=1 xiyi^ = 764, and^

∑n i=1 x 2 i = 51.^ Therefore,^ βˆ^1 = (

i xiyi^ − nxnyn)/(

i x

2 i −^ nx 2 n) = 0.5476 and βˆ^0 =^ yn −^ βˆ^1 xn^ = 40.8929.

σˆ^2 =

n

∑^ n

i=

(yi − βˆ 0 − βˆ 1 x^2 n) =

n

[ (^) n ∑

i=

(yi − yn)^2 − βˆ^21

∑^ n

i=

(xi − xn)^2

]

[

10. 875 − 0. 54762 × 10. 5

]

Var( βˆ 0 ) = σ^2

[

n

x^2 n ∑ i(xi^ −^ xn)^2

]

= σ^2

[

]

Var =

σ^2 ∑ i(xi^ −^ xn)^2

σ^2

  1. 5

The assumption is that conditionally on {x 1 ,... , xn}, Yi are independently dis- tributed with the conditional distribution of Yi given xi being N (β 0 + β 1 xi, σ^2 ). (b) An unbiased estimator is θˆ = 5 − 4 βˆ 0 + βˆ 1 = − 158 .0238. The mean squared error is same as its variance (since unbiased) and is given by

Var(θˆ) = Var(− 4 βˆ 0 + βˆ 1 ) = σ^2

[

(−4)^2

n

((−4)xn − 1)^2 ∑ i(xi^ −^ xn)^2

]

= σ^2 [

] = 11. 52381 σ^2.

Using the unbiased estimator of σ^2 , namely (σ′)^2 = (^) n−n 2 σˆ^2 = 1.2877, so that the estimated standard error of ˆθ is √̂ Var(θˆ) =

  1. 52381 σ′^ = 3. 85217.

(c) The prediction is ˆy = βˆ 0 + 3. 25 βˆ 1 = 42.67262 The estimated MSE of the prediction is M SÊ (ˆy) = (σ′)^2

[

n

(3. 25 − xn)^2 ∑ i(xi^ −^ xn)^2

]

= 1. 2877 × 1. 220238.

  1. Suppose that X 1 ,... , Xn form a random sample from a N (0, σ^2 ) distribution. Suppose that we want to test the hypothesis:

H 0 : σ^2 ≤ 2 against H 1 : σ^2 > 2.

(a) Show that there exists a UMP test of these hypotheses at every level of significance α 0 (0 < α 0 < 1). (b) Determine the UMP level α 0 test when n = 10 and α 0 = 0.05. (c) What is the p-value of the test if you observe that Xn = a and

∑n i=1(Xi^ −^ Xn) (^2) = b where a ∈ R and b > 0 are given numbers. Express this in as simple terms as possible.

Ans.

(a) Check that the joint p.d.f. of X 1 ,... , Xn has a monotone likelihood ratio in the statistic

i X 2 i. Thus, a test which rejects^ H^0 when^

i X 2 i ≥^ c^ will be UMP test. The value of c is determined from the equation α 0 = P (

i X 2 i ≥^ c|σ (^2) = 2). Since ∑ i X 2 i has a continuous distribution, the solution exists for all values of^ α^0 in the interval (0, 1). (b) Since

i X 2 i /σ (^2) ∼ χ (^2) n, when n = 10, and α 0 = 0.05,

0 .05 = P (

i

X i^2 / 2 ≥ c/ 2 |σ^2 = 2) = P (χ^210 ≥ c/2),

that is, c = 2H 10 −^1 (0.95) = 2 × 18 .307 = 36.614, where H 10 is the c.d.f. of χ^210. The value of the quantile is found from the table.