Lecture 4 Hypothesis Testing slides
Lecture 4 Hypothesis Testing slides
1 / 30
Lecture outline
2 / 30
Introduction
3 / 30
Procedure of hypothesis testing
4 / 30
Example 6.3
5 / 30
Step 1: Stating a hypothesis
H0 :µ = µ0
H1 :µ 6= µ0
6 / 30
Example
7 / 30
Step 2: Determine sample mean distribution
8 / 30
Step 3: Determine critical region
9 / 30
Sample mean distribution and critical region
10 / 30
Critical region
I The region that contains the extreme sample values are very
unlikely to be obtained if the null hypothesis is true.
I This region is called the critical region
I The boundaries that define the critical region are determined
by the level of significance or the alpha level
I For example, if α = 0.05, the boundaries are selected such
that the total probability of extreme sample values is equal to
0.05.
11 / 30
Critical region
12 / 30
Critical region
x̄ − µ
z= √ , (3)
σ/ n
14 / 30
Step 4
15 / 30
Step 4
16 / 30
One tail test
17 / 30
One tail test
18 / 30
p-value
19 / 30
Errors in hypothesis testing
20 / 30
Types of error
21 / 30
Types of error
22 / 30
Power of test
23 / 30
Power of test
X̄ − µ1 µ −µ
1 − β = 1 − Pr ( √ < 0 √ 1 + 1.645)
σ/ n σ/ n
µ0 − µ1
= 1 − Φ( √ + 1.645)
σ/ n
24 / 30
Power of test
25 / 30
Example
H0 : µ = 50
HA : µ > 50
I We collect a sample of 100 patients and find that the sample
mean is X̄ = 52. To test the claim that µ = 50,√we use z-test.
The test statistic is: z-statistic = (52-50)/(10/ 100) = 2.
I For α = 0.05, the critical value is CV=1.645, and we reject
H0 when z-stat > CV.
26 / 30
Example
1 − β = 1 − 0.3647 = 0.6353
27 / 30
Types of one sample tests
28 / 30
Types of one sample tests
29 / 30
Example 6.6
30 / 30