关键词 > STATS120C/281C

STATS 120C/281C Homework 1

发布时间:2022-04-07

Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

STATS 120C/281C

Homework 1

Show all work.   Where applicable, write out formulas using notation and then plug in relevant numbers and quantities. You can leave numeric answers in unsimplified form.

This file is private intellectual property and cannot be distributed, sold, or reproduced without written permission of the owner.

1.  Verify that the two-sample t test at level α (can assume α = 0.05 and critical value of 1.96) of H0  : µX  = µY  versus HA  : µX   µY  rejects if and only if the confidence interval for µX  − µY  does not contain zero.

2. Considered two methods of estimating Var( − ). Under the assumption that the two popu- lation variances were equal, we estimated this quantity by

sp(2)(  + )

and without this assumption by

sX(2)         sY(2)

n       m

Show that these two estimations are identical if m = n.

3.  Let X1, X2 , ...., Xn  be iid according to a N(µ, σ2 ), where µ is unknown but σ 2  is known.  Take the one-sample mean test of H0  : µ = µ0  vs.  HA  : µ  µ0  (assume under the alternative the true value of µ is equal to µA ).

Assume α = 0.05 and a large sample size n (say n ≥ 100).  This implies the critical value for this test is approximately 1.96.

a. Derive the form to compute the power of this test.

b. Calculate the power of this test when µ0 = 5, µA = 4.1, σ 2 = 9, α = 0.05, and n = 100.

c. Again, let µ0 = 5, µA = 4.1, σ 2 = 9, and α = 0.05. We would like our power to be equal to 0.90. What would the sample size need to be to achieve this power.

4.   Let X1, X2 , ...., Xn  be iid according to a N (µ, σ2 ),  where µ and σ 2  is unknown.   Take the one-sample one sided mean test of H0  : µ ≤ µ0  vs. HA  : µ > µ0 .

Further let  > µ0 , and have s and n be such that this test returns a significant p-value (less than a specified α level).

Show why we can just write the null as µ = µ0  in this situation. That is, show that for under the null that any µ ≤ µ0  will return a p-value that is lower than when we specify µ = µ0 .

5. Let X1, X2 , ...., Xn  be iid according to a N (µ, σ2 ) and define  =      Xi .

a. What distribution does Xµ  follow?

b. What distribution does σ/(X¯)一(乞)  follow?

c. What distribution does  Xµ 2  follow?

d. What distribution does i1 Xµ 2  follow?

e. Define s2 = n11       (Xi − )2 , what distribution does s/(X¯)一(乞)  follow?