Docsity

Hypothesis Testing: Errors, Power, and Critical Regions, Exams of Asian literature

Toggle sidebar
bg1
PSTAT 120C: Errors and Power in Hypothesis Testing March 31, 2009
•Class Policies
•Power
Hypothesis Testing
1. What are we trying to do with a hypothesis test?
2. What is an example of a hypothesis test?
3. What are the components of statistical testing framework?
•Two hypotheses
1. Null hypothesis H0:θ=θ0– default state of nature
2. Alternative hypothesis HA:θ ><6=θ0– interesting outcome
•More generally H0:θ∈Θ0, some set of possible models (eg. think of µ= 0 but any standard
deviation)
•Critical region: set of data where we reject H0.
•Test statistic: simplifies critical region =⇒T(X1, X2, . . . , Xn)∈C.
•Critical value:C={x:T(x)> c}.
•Size α= the largest value of P0(C) under the null hypothesis.
Making Errors in Tests
Reality
H0HA
Decision accept Ok β
H0Type II error
Rule reject αOk
H0Type I error
Two types of error:
α= probability of rejecting H0when it is true.
Type I error
β= probability of accepting H0when it is false.
Type II error
Objective: For a fixed level α, use the test with the smallest β.
Both of these are quantities relating the decision rule and not the particular data.
1
pf3
pf4

Partial preview of the text

Download Hypothesis Testing: Errors, Power, and Critical Regions and more Exams Asian literature in PDF only on Docsity!

PSTAT 120C: Errors and Power in Hypothesis Testing March 31, 2009

  • Class Policies
  • Power

Hypothesis Testing

  1. What are we trying to do with a hypothesis test?
  2. What is an example of a hypothesis test?
  3. What are the components of statistical testing framework?
    • Two hypotheses
      1. Null hypothesis H 0 : θ = θ 0 – default state of nature
      2. Alternative hypothesis HA : θ >< 6 = θ 0 – interesting outcome
    • More generally H 0 : θ ∈ Θ 0 , some set of possible models (eg. think of μ = 0 but any standard deviation)
    • Critical region: set of data where we reject H 0.
    • Test statistic: simplifies critical region =⇒ T (X 1 , X 2 ,... , Xn) ∈ C.
    • Critical value: C = {x : T (x) > c}.
    • Size α = the largest value of P 0 (C) under the null hypothesis.

Making Errors in Tests

Reality H 0 HA Decision accept Ok β H 0 Type II error Rule reject α Ok H 0 Type I error

Two types of error:

α = probability of rejecting H 0 when it is true.

Type I error

β = probability of accepting H 0 when it is false.

Type II error

Objective: For a fixed level α, use the test with the smallest β.

Both of these are quantities relating the decision rule and not the particular data.

Normal Experiment

The critical region is C = {|z| ≥ 1. 96 }, for

z =

x¯ − μ 0 σ/

n

By design the probability of C if μ = μ 0 is α = 0.05. The type I error is fixed beforehand and the critical region is designed with this in mind. Why is this a good critical region?

  • [− 1. 96 , 1 .96] is the shortest segment with probability 0.95.
  • Any other normal puts less than 0.95 on the interval.

Power = 1 − β

  • Maximize power.
  • A different value of power for every value of θ in the alternative hypothesis.

Continuing the normal example

μ 0 = 100 σ^2 = 25 n = 64

C 1 =

¯x − 100 5 / 8

∣ ≥^1.^96

C 2 =

x¯ − 100 5 / 8

Both of these have level α,

  • For μ = 98,

Power 1 = P

¯x − 100 5 / 8

+ P

¯x − 100 5 / 8

= P{x <¯ 100 − 5 /8(1.96)} + P{x >¯ 100 + 5/8(1.96)}

= P

¯x − 98 5 / 8

+ P

x¯ − 98 5 / 8

= P{Z < 1. 24 } + P{Z > 5. 16 }

Power 2 = P {x¯ ≥ 100 + (5/8)1. 645 }

= P

¯x − 98 5 / 8

= 1 − P{Z ≤ 4. 84 } = 6. 5 × 10 −^7

A Two-sided test

To test H 0 : λ = 2 versus HA : λ 6 = 2. Again the sum is the test statistic. The critical region is C = {Y ≤ 3 or Y ≥ 16 }.

α = P 2 {Y ≥ 16 or Y ≤ 3 } =. 059

Y 2 3 4 5 6 P .002 .008 .02 .04. Y 16 17 18 19 20 P .02 .01 .008 .004.

Possible critical regions P{Y ≥ 17 or Y ≤ 4 } =. 056 P{Y ≥ 16 or Y ≤ 3 } =. 059 P{Y ≥ 17 or Y ≤ 3 } =. 037 P{Y ≥ 18 or Y ≤ 4 } =. 043

Which critical region should we use?

  • The power when λ = 1

P 1 {Y ≥ 16 or Y ≤ 3 } = 0 + 0.265 = 0. 265

  • The power when λ = 4

P 4 {Y ≥ 16 or Y ≤ 3 } = 0.8435 + 0 = 0. 8435

Towards Optimality

  • Choose a test with level α that gives the greatest power.
  • The critical region should have high probability under H 0 and low probability under HA.
  • The best way to do this is have the critical region of the form:

f 0 (x) fA(x)

≤ c or

P 0 (k) PA(k)

≤ c

  • c is the critical value that makes the sets have P 0 probability α.