Docsity

Stat 411 Homework 09: Power Functions and Hypothesis Testing, Assignments of Statistics

Toggle sidebar
bg1
Stat 411 – Homework 09 Due: Wednesday 04/04
Undergraduates may solve the “Graduate only” problem(s) for possible extra credit.
Some of the problems ask for plots; you’re welcome (actually encouraged) to use a com-
puter to produce these plots.
1. Problem 5.5.1 on page 269.1
2. Let X1, . . . , Xn
iid
∼Unif(0, θ ). The goal is to test H0:θ=θ0versus H1:θ > θ0,
where θ0>0 is some fixed value. The rule is to reject H0if and only if X(n)> c,
where cis a constant to be determined.
(a) Find csuch that the size is 0.05.
(b) Find the power function pow(θ) of the test.
(c) Sketch your power function when θ0= 1 and n= 10.
3. Problem 5.6.6 on page 277. (Hint: The differences W1, . . . , W51 are a sample from
a distribution with unknown mean µWand unknown variance σ2
W.)
4. Problem 5.6.8 on page 277. (I’d recommend writing “θ” for the parameter instead
of “p” to be consistent with our general notation.)
5. Let X1, . . . , Xn
iid
∼Ber(θ). The goal is to test H0:θ= 0.49 versus H1:θ= 0.51.
Using the Central Limit Theorem-based test, find nsuch that the Type I and
Type II error probabilities are both approximately 0.01.
6. (Graduate only) Reconsider the setup in Problem 2 above.
(a) Find a test with size 0.05 based on the Central Limit Theorem approximation
of the sampling distribution of X
(b) Find the power function pow0(θ) for this new test.
(c) Compare the power function pow0(θ) to pow(θ) from Problem 2(b) by sketching
a graph of the two, overlaid on the same plot, with θ0= 1 and n= 10.
1This problem explains why it is typical to consider tests like H0:θ=θ0versus H1:θ > θ0rather
than H0:θ≤θ0versus H1:θ > θ0. The point is that the power function is monotone and, therefore,
achieves its maximum over the null parameter space at the boundary point θ0.
1
pf3
pf4

Partial preview of the text

Download Stat 411 Homework 09: Power Functions and Hypothesis Testing and more Assignments Statistics in PDF only on Docsity!

Stat 411 – Homework 09 Due: Wednesday 04/

Undergraduates may solve the “Graduate only” problem(s) for possible extra credit. Some of the problems ask for plots; you’re welcome (actually encouraged) to use a com- puter to produce these plots.

  1. Problem 5.5.1 on page 269.^1
  2. Let X 1 ,... , Xn^ iid ∼ Unif(0, θ). The goal is to test H 0 : θ = θ 0 versus H 1 : θ > θ 0 , where θ 0 > 0 is some fixed value. The rule is to reject H 0 if and only if X(n) > c, where c is a constant to be determined.

(a) Find c such that the size is 0.05. (b) Find the power function pow(θ) of the test. (c) Sketch your power function when θ 0 = 1 and n = 10.

  1. Problem 5.6.6 on page 277. (Hint: The differences W 1 ,... , W 51 are a sample from a distribution with unknown mean μW and unknown variance σ^2 W .)
  2. Problem 5.6.8 on page 277. (I’d recommend writing “θ” for the parameter instead of “p” to be consistent with our general notation.)
  3. Let X 1 ,... , Xn ∼^ iid Ber(θ). The goal is to test H 0 : θ = 0.49 versus H 1 : θ = 0.51. Using the Central Limit Theorem-based test, find n such that the Type I and Type II error probabilities are both approximately 0.01.
  4. (Graduate only) Reconsider the setup in Problem 2 above.

(a) Find a test with size 0.05 based on the Central Limit Theorem approximation of the sampling distribution of X (b) Find the power function pow 0 (θ) for this new test. (c) Compare the power function pow 0 (θ) to pow(θ) from Problem 2(b) by sketching a graph of the two, overlaid on the same plot, with θ 0 = 1 and n = 10.

(^1) This problem explains why it is typical to consider tests like H 0 : θ = θ 0 versus H 1 : θ > θ 0 rather than H 0 : θ ≤ θ 0 versus H 1 : θ > θ 0. The point is that the power function is monotone and, therefore, achieves its maximum over the null parameter space at the boundary point θ 0.

Stat 411 – Homework 09 Solutions

  1. Problem 5.5.1 from the text. For testing H 0 : μ = μ 0 vs. H 1 : μ > μ 0 , the power function for under consideration in equation (5.5.12) is

pow(μ) = Φ

−zα −

n(μ 0 − μ) σ

where zα satisfies Φ(−zα) = α, and both μ 0 and σ are fixed and known constants. To show that the same test has size α for the different null hypothesis H 0 ′ : μ ≤ μ 0 , we need to show that maxμ≤μ 0 pow(μ) = α. By the property of zα, it is clear that pow(μ 0 ) = α; moreover, pow(μ) → 0 as μ → −∞. So if we can show that pow(μ) is increasing for μ ∈ (−∞, μ 0 ], then we’re done. To accomplish this, show that the derivative of pow(μ) is positive: dpow(μ) dμ

= ϕ

−zα −

n(μ 0 − μ) σ

n σ

where ϕ is the standard normal PDF, the derivative of Φ. Since the PDF ϕ is positive and so are n and σ, the derivative must be positive. Therefore, the power function is strictly increasing, hence, the size of the test for H 0 ′ : μ ≤ μ 0 is size α.

  1. (a) The size for the test (which rejects H 0 when X(n) > c) is

size = Pθ 0 (X(n) > c) = 1 − Pθ 0 (X(n) ≤ c) = 1 − (c/θ 0 )n,

where we have used the fact that the CDF of X(n), the maximum of the Xi’s, is the CDF of X 1 to power n. Therefore, if we want the size to be equal to 0.05, take c = 0. 951 /nθ 0. (b) The power function is given by

pow(θ) = Pθ(X(n) > 0. 951 /nθ 0 ) = 1 − 0 .95(θ 0 /θ)n.

(c) Picture below plots pow(θ) when n = 10 and θ 0 = 1.

1.0 1.5 2.0 2.

θ

pow

(θ

)

this is obtained by plugging in the value θ 0 = 0.49 and simplifying. Then the power function is given by pow(0.51) = P 0. 51 (Y > 0. 49 n + 2. 326 · 0. 4999

n)

= P 0. 51

(Y − 0. 51 n

  1. 4999

n

− 0. 02 n

  1. 4999

n

n + 2.326). The latter quantity is equal to 0.99 iff − 0. 04

n + 2.326 = − 2 .326 or, equivalently, iff n = d(4. 625 / 0 .04)^2 e = 13370.

  1. (Graduate only)

(a) Since√ Eθ(X 1 ) = θ/2 and Vθ(X 1 ) = θ^2 /12, it follows from the CLT that 3 n(2X − θ)/θ is approximately N(0, 1) when n is large. Therefore, an ap- proximate size α = 0.05 test of H 0 : θ = θ 0 versus H 1 : θ > θ 0 is

reject H 0 iff

3 n(2X − θ 0 ) θ 0

where 1.645 is the 95th percentile of standard normal. (b) The power function is given by

pow 0 (θ) = Pθ

(√ 3 n(2X − θ 0 ) θ 0

= Pθ

2 X >

  1. 645 θ 0 √ 3 n
  • θ 0

= Pθ

(√ 3 n(2X − θ) θ

  1. 645 θ 0 θ

3 n(θ 0 − θ) θ

( 1. 645 θ 0 θ

3 n(θ 0 − θ) θ

(c) Plots of pow(θ) from Problem 2(b) and and the new pow 0 (θ) with n = 10 and θ 0 = 1 are shown below.

1.0 1.5 2.0 2.

θ

pow

(θ

)

pow pow