Professional Documents
Culture Documents
Coursework 3: Solutions: n−1,α/2 2 n i 2 2 n−1,1−α/2
Coursework 3: Solutions: n−1,α/2 2 n i 2 2 n−1,1−α/2
Coursework 3: Solutions: n−1,α/2 2 n i 2 2 n−1,1−α/2
Coursework 3: Solutions
2. (a) Assume that the breaking strength is normally distributed with σ = 0.5. A random
sample of size n = 50 is collected and the mean breaking strength of the sample is
found to be X̄ = 7.8. We want to test the following:
H0 : µ = 8.0 vs H1 : µ 6= 8.0 at α = 0.01.
Decision Rule: Reject H0 if |Z| = x̄−µ > z 0.01 .
0
√σ 2
n
x̄ − 8 7.8 − 8
|Z| = 0.5 = 0.5 = 2.8284 > z0.005 = 2.5758
√50 √50
Consequently, we will reject H0 at α = 0.01 and conclude that the mean breaking
strength is not 8.0 kg.
p-value = P(|Z| > 2.8284) = 2P(Z > 2.8284) = 2(0.00238) = 0.00476, where
P(Z > 2.8284) is found by linearly interpolating the values for P(Z > 2.8782) =
0.002 and P(Z > 2.7478)= 0.003.
(b) Assume that miles driven is normally distributed. A random sample of size n = 25
is collected with X̄ = 12,000 and s = 3900. We want to test the following:
H0 : µ ≤ 10,000 vs H1 : µ > 10, 000 at α = 0.05.
Decision Rule: Reject H0 if
x̄ − µ0
T = > tn−1,α .
√s
n
1
x̄ − 10000 12000 − 10000
T = = = 2.564 > t24,0.05 = 1.711
√s 3900
√
n 25
3. (a) The constant k is chosen so that P (reject H0 | H0 is true) = 0.05. Now, under H0 ,
θ = 21 so X̄ ∼ N ( 21 , 4n
1
) approximately, and
1
α = P (reject H0 | H0 is true) = P (X̄ ≤ k | θ = )
2
X̄ − 21 k − 21
=P q ≤ q = 0.05.
1 1
4n 4n
p
Now, under H0 , (X̄ − 12 )/ 1/(4n) ∼ N (0, 1) approximately, so
1
k− 2
q ≈ Φ−1 (0.05) = −1.645
1
4n
1 1.645
=⇒ k ≈ 2
− √ .
2 n
(b) For 0 ≤ θ ≤ 21 ,
1
power = γ(θ) = Pθ (reject H0 | H1 is true) = Pθ (X̄ ≤ k | 0 ≤ θ ≤ )
! 2
X̄ − θ k−θ
= Pθ p ≤p .
θ(1 − θ/n θ(1 − θ)/n
X̄ − θ
p ∼ N (0, 1) approximately.
θ(1 − θ)/n
2
Thus,
!
k−θ
γ(θ) ≈ Φ p
θ(1 − θ)/n
1
!
2
− 1.645
√ −θ
2 n
=Φ p
θ(1 − θ)/n
√ !
( 12 − θ) n − 0.8225
=Φ p (0 ≤ θ ≤ 12 ).
θ(1 − θ)