Docsity

Uniformly Most Powerful (UMP) Tests in Statistical Hypothesis Testing - Prof. Grzegorz A. , Exams of Statistics

Partial preview of the text

Download Uniformly Most Powerful (UMP) Tests in Statistical Hypothesis Testing - Prof. Grzegorz A. and more Exams Statistics in PDF only on Docsity!

STAT 9220

Lecture 15

Statistical hypothesis tests

Greg Rempala

Department of Biostatistics

Medical College of Georgia

Apr 28, 2009

15.1 UMP Tests

Let X be a sample from a population P in P. A test is a statistic T (X) ∈ [0, 1]. We test a given hypothesis

H 0 : P ∈ P 0 vs H 1 : P ∈ P 1 ,

where P 0 and P 1 are two disjoint subsets of P and P 0 ∪ P 1 = P. When X = x is observed, we reject H 0 with probability T (x) and accept H 0 with probability 1 − T (x). If T (X) = 1 or 0 a.s. P, then T (X) is a nonrandomized test; otherwise T (X) is randomized. For a given test T (X), the power function of T (X) is defined to be

βT (P ) = E[T (X)], P ∈ P,

which is the type I error probability of T (X) when P ∈ P 0 and one minus the type II error probability of T (X) when P ∈ P 1. We maximize the power βT (P ) over all P ∈ P 1 (i.e., minimize the type II error probability) and over all tests T satisfying

sup P ∈P 0

βT (P ) ≤ α,

where α ∈ [0, 1] is a given level of significance. The left-hand side of the last expression is defined to be the size of T.

Proof. The proof for the case of α = 0 or 1 is easy (since c = +∞ or 0). Assume now that 0 < α < 1. (i) We first show that there exist γ and c such that E 0 [T∗(X)] = α, where Ej is the expectation w.r.t. Pj , j = 0, 1. Let

γ(t) = P 0 (f 1 (X) > tf 0 (X)) =

f 1 (X)>tf 0 (X)

f 0 (X)dν(X) = P 0

f 1 (X) f 0 (X)

t

Then γ(t) is a survival function and thus is right-continuous, nonincreasing, γ(0) = 1, and γ(∞) = 0. Hence, there exists a c ∈ (0, ∞) such that γ(c) ≤ α ≤ γ(c−). Set

γ =

{ (^) α−γ(c) γ(c−)−γ(c) γ(c−)^6 =^ γ(c) 0 γ(c−) = γ(c).

Note that γ(c−) − γ(c) = P (f 1 (X) = cf 0 (X)). Then

E 0 [T∗(X)] = P 0

f 1 (X) > cf 0 (X)

  • γP 0

f 1 (X) = cf 0 (X)

= α.

We show that T∗ is a UMP test. Suppose that T (X) is a test satisfying E 0 [T (X)] ≤ α. If T∗(x) − T (x) > 0, then T∗(x) > 0 and f 1 (x) ≥ cf 0 (x). If T∗(x) − T (x) < 0, then T∗(x) < 1 and f 1 (x) ≤ cf 0 (x). In any case,

[T∗(x) − T (x)][f 1 (x) − cf 0 (x)] ≥ 0

and, therefore, (^) ∫

[T∗(x) − T (x)][f 1 (x) − cf 0 (x)]dν ≥ 0 ,

i.e., (^) ∫

[T∗(x) − T (x)]f 1 (x)dν ≥ c

[T∗(x) − T (x)]f 0 (x)dν.

The left-hand side is E 1 [T∗(X)] − E 1 [T (X)] and the right-hand side is

c{E 0 [T∗(X)] − E 0 [T (X)]} = c{α − E 0 [T (X)]} ≥ 0.

This proves the result in (i).

Example 15.1.1. Suppose that X is a sample of size 1, P = {P 0 , P 1 }, where P 0 is N (0, 1) and P 1 is the double exponential distribution DE(0, 2) with the p.d.f. 1 4 e

−|x|/ (^2). Since P (f 1 (X) = cf 0 (X)) = 0, there is a unique nonrandomized UMP

test. By Theorem 15.1.1, the UMP test is

T∗(x) =

1 f 1 (x) > cf 0 (x) 0 otherwise.

And f 1 (x) > cf 0 (x) ⇐⇒ f f^10 ((xx)) > c ⇐⇒

(^14) e−|x|/ 2 √^1 2 π e −x^2 / 2 > c^ ⇐⇒

2 πe(x (^2) −|x|)/ 2

4 c ⇐⇒

πe(x (^2) −|x|)

8 c^2 ⇐⇒ x^2 − |x| > log

π c

2 ). Hence, we obtain that |x| > z and

|x| < 1 − z for some z > 12 , where z = 1+

√1+4t 2 and 1^ −^ z^ =^

1 −√1+4t 2 are two solutions of the equation x^2 − x − t = 0, t = log

π c

To determine z, we use

α = E 0 [T∗(X)] = P 0 (|X| > z) + P 0 (|X| < 1 − z).

If z ≤ 1 then P 0 (|X| > z) > P 0 (|X| > 1) ≈ 0. 3 > α. Hence z > 1 and α = P 0 (|X| > z) = Φ(−z) + 1 − Φ(z) = 2 − 2Φ(z), thus z = Φ−^1 (1 − α/2). The power of the test is then

E 1 [T∗(X)] = P 1 (|X| > z) = 1 −

∫^ z

−z

e−|x|/^2 dx = 1 −

∫^ z

0

e−x/^2 dx = e−z/^2.

Example 15.1.2. Let X 1 , ..., Xn be i.i.d. binary random variables with p = P (X 1 = 1). Suppose that H 0 : p = p 0 and H 1 : p = p 1 , where 0 < p 0 < p 1 < 1. By Theorem 15.1.1, a UMP test of size α is

T∗(Y ) =

1 λ(Y ) > c γ λ(Y ) = c 0 λ(Y ) < c,

where Y =

∑n i=1 Xi^ and

λ(Y ) =

p 1 p 0

)Y (

1 − p 1 1 − p 0

)n−Y .

Since λ(Y ) is increasing in Y , there is an integer c > 0 such that

T∗(Y ) =

1 Y > c γ Y = c 0 Y < c,

where c and γ satisfy α = E 0 [T∗(Y )] = P 0 (Y > c) + γP 0 (Y = c). Since Y has the binomial distribution Bi(p, n), we can determine c and γ from

α =

∑^ n

j=c+

n j

pj 0 (1 − p 0 )n−j^ + γ

n c

pc 0 (1 − p 0 )n−c.

Note that c does not depend on p 1. Thus T∗(Y ) is in fact UMP against any p > p 0.

15.2 Monotone likelihood ratio

Definition 15.2.1. Suppose that the distribution of X is in P = {Pθ : θ ∈ Θ}, a parametric family indexed by a real-valued θ, and that P is dominated by a σ-finite measure ν. Let fθ = dPθ/dν. The family P is said to have monotone likelihood ratio in Y (X) (a real-valued statistic) if and only if, for any θ 1 < θ 2 , fθ 2 (x)/fθ 1 (x) is a nondecreasing function of Y (x) for values x at which fθ 1 (x) > 0.

Example 15.2.1. Let θ be real-valued and η(θ) be a nondecreasing function of θ. Then the exponential family

fθ(x) = exp{η(θ)Y (x) − ξ(θ)}h(x)

is MLR family in Y (X).

Example 15.2.2. The following families also have monotone likelihood ratio:

  • the double exponential distribution family {DE(θ, c)} with a known c;
  • the exponential distribution family {E(θ, c)} with a known c;
  • the logistic distribution family {LG(θ, c)} with a known c;
  • the uniform distribution family {U (θ, θ + 1)};
  • the hypergeometric distribution family {HG(r, θ, N − θ)} with known r and N (text Table 1.1, page 18).

An example of a family that does not have monotone likelihood ratio is the Cauchy

Lemma 15.2.1. For MLR family in Y (X), g(θ) = E[ψ(Y )] is a nondecreasing function of θ, where ψ is nondecreasing in Y.

Proof. Let θ 1 < θ 2. Define

A = {x : fθ 1 (x) > fθ 2 (x)}, a = sup x∈A

ψ(Y (x)),

B = {x : fθ 1 (x) < fθ 2 (x)}, b = inf x∈B ψ(Y (x)).

Since it is MLR family and ψ is nondecreasing we have b ≥ a. And

g(θ 2 ) − g(θ 1 ) =

ψ(Y (x))(fθ 2 − fθ 1 )(x)dν

A

ψ(Y (x))(fθ 2 − fθ 1 )(x)dν +

B

ψ(Y (x))(fθ 2 − fθ 1 )(x)dν

≥ a

A

(fθ 2 − fθ 1 )(x)dν + b

B

(fθ 2 − fθ 1 )(x)dν

≥ (b − a)

B

(fθ 2 − fθ 1 )(x)dν ≥ 0

since

B

(fθ 2 − fθ 1 )(x)dν = −

A

(fθ 2 − fθ 1 )(x)dν.

Corollary 15.2.1 (one-parameter exponential families). Suppose that X has a p.d.f. in a one-parameter exponential family with η being a strictly monotone func- tion of θ. If η is increasing, then T∗ given by Theorem 6.2 is UMP for testing H 0 : θ ≤ θ 0 versus H 1 : θ > θ 0 , where γ and c are determined by βT∗ (θ 0 ) = α. If η is decreasing or H 0 : θ ≥ θ 0 (H 1 : θ < θ 0 ), the result is still valid by reversing inequalities in the definition of T∗.

Example 15.2.4. Let X 1 , ..., Xn be i.i.d. from the N (μ, σ^2 ) distribution with an unknown μ ∈ R and a known σ^2. Consider H 0 : μ ≤ μ 0 versus H 1 : μ > μ 0 , where μ 0 is a fixed constant. The p.d.f. of X = (X 1 , ..., Xn) is from a one-parameter exponential family with Y (X) = X¯ and η(μ) = nμ/σ^2. By the last corollary and the fact that X¯ is N (μ, σ^2 /n), the UMP test is T∗(X) = I(cα,∞)( X¯), where cα = σz 1 −α/

n + μ 0 and za = Φ−^1 (a).

Remark 15.2.2 (Discussion). To derive a UMP test for testing H 0 : θ ≤ θ 0 ver- sus H 1 : θ > θ 0 when X has a p.d.f. in a one-parameter exponential family, it is essential to know the distribution of Y (X). Typically, a nonrandomized test can be obtained if the distribution of Y is con- tinuous; otherwise UMP tests are randomized.

Theorem 15.2.2. Let X be distributed accordingly to one parameter exponential family. Then there exists a UMP test for testing two-sided hypothesis (1) H 0 : θ 1 ≤ θ ≤ θ 2 vs H 1 : θ < θ 1 , or θ > θ 2 , (2) H 0 : θ = θ 0 vs H 1 : θ 6 = θ 0. (where θ 0 , θ 1 , θ 2 are given constants). UMP test of size α is given by

T∗(X) =

0 c 1 < Y (X) < c 2 , γi Y (X) = ci, i = 1, 2 , 1 Y (X) < c 1 or Y (X) < c 2 ,

where c 1 , c 2 , γ 1 , γ 2 are determined by βT∗ (θ 1 ) = βT∗ (θ 2 ) = α.

Example 15.2.5. Let X 1 , ..., Xn be i.i.d. from N (θ, 1). Consider H 0 : θ = 0 versus H 1 : θ 6 = 0. A UMP test is T∗(X) = (^1) (c 1 ,c 2 )( X¯), where ci’s are determined by

P ( X < c¯ 1 or X > c¯ 2 ) = α,

or equivalently 1 − P (c 1 < X < c¯ 2 ) = α.

THANK YOU FOR YOUR ATTENTION THIS SEMESTER

AND GOOD LUCK DURING FINALS!