Lecture 07 (Part I) Hypothesis Testing
Lecture 07 (Part I) Hypothesis Testing
(We can assume that the IQs of the students in CCN1234 are
normally distributed with an unknown mean 𝜇𝜇 and a standard
deviation of 5)
Step 2: 𝛼𝛼 = 0.05 and it is a right tailed test, therefore critical value is 𝑧𝑧0.05 =
1.645 Standard Normal Distribution
area = 𝛼𝛼 =0.05
𝑧𝑧𝛼𝛼
Critical region is on
the RIGHT hand for
RIGHT tailed test
critical test
value value
(1.645) (2.683)
2. If the average IQ is actually much greater than 100 (i.e. 𝐻𝐻1 is TRUE), sample
mean will likely be large, and hence, the test value will also be large (and
positive too).
3. Therefore we need to reject 𝐻𝐻0 when test value is large. But how large is
large??
4. We use the critical value to judge what do we mean by a “large” test value.
The critical value is chosen such that 𝛼𝛼 = 𝑃𝑃 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇 𝐼𝐼 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸 = 0.05. That is
we have a small probability making Type I Error if using the critical value as a
cut-off.
Step 2: 𝛼𝛼 = 0.01 and it is a left tailed test, therefore critical value is −𝑧𝑧0.01 =
− 2.33 Standard Normal Distribution
area = 𝛼𝛼 =0.01
−𝑧𝑧𝛼𝛼
Critical region is on
the LEFT hand for
LEFT tailed test
critical test
value value
(-2.33) (-1.25)
2. If the average blood pressure is actually much smaller than 90 after taking
the new drug (i.e. 𝐻𝐻1 is TRUE), sample mean will likely be small, and hence,
the test value will also be small (and negative too).
3. Therefore we need to reject 𝐻𝐻0 when test value is small. But how small is
small??
4. We use the critical value to judge what do we mean by a “small” test value.
The critical value is chosen such that 𝛼𝛼 = 𝑃𝑃 𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇 𝐼𝐼 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸 = 0.01. That is
we have a small probability making Type I Error if using the critical value as a
cut-off.
(We can assume that the heart rates of healthy adults are normally
distributed with an unknown mean 𝜇𝜇 and a standard deviation of
10)
−𝑧𝑧𝛼𝛼/2 𝑧𝑧𝛼𝛼/2
Critical region is on
both sides for 2
tailed test
test critical critical
value value value
(-2.4) (-1.96) (1.96)
2. If the average heart rate is actually different from 67 after taking the new
drug (i.e. 𝐻𝐻1 is TRUE), sample mean will likely be either be much smaller than
67 or much larger than 67, and hence, the test value will also be very small
(and negative) or very large (and positive).
3. Therefore we need to reject 𝐻𝐻0 when test value is either very small or very
large. But for how small or how large??
• Despite of the change in 𝐻𝐻0 , the procedure of the tests are the
same as before.
• However the probability of committing Type I error will be less
than or equal to 𝛼𝛼, instead of exactly equal to 𝛼𝛼.
p-value=0.0668
p-value=0.0359 p-value=0.9332
p-value=0.0718 p-value=0.1336
Types of Tests:
𝐻𝐻0 : 𝜇𝜇 = 𝑐𝑐 vs 𝐻𝐻1 : 𝜇𝜇 > 𝑐𝑐 [Right tailed test]
𝐻𝐻0 : 𝜇𝜇 ≤ 𝑐𝑐 vs 𝐻𝐻1 : 𝜇𝜇 > 𝑐𝑐 [Right tailed test]
𝐻𝐻0 : 𝜇𝜇 = 𝑐𝑐 vs 𝐻𝐻1 : 𝜇𝜇 < 𝑐𝑐 [Left tailed test]
𝐻𝐻0 : 𝜇𝜇 ≥ 𝑐𝑐 vs 𝐻𝐻1 : 𝜇𝜇 < 𝑐𝑐 [Left tailed test]
𝐻𝐻0 : 𝜇𝜇 = 𝑐𝑐 vs 𝐻𝐻1 : 𝜇𝜇 ≠ 𝑐𝑐 [Two tailed test]
(We can assume that the speeds of cars on the highway were
normally distributed with unknown mean and standard deviation)
Step 2: 𝛼𝛼 = 0.05 and it is a right tailed test, therefore critical value is 𝑡𝑡0.05;(14) =
1.761 t-Distribution with 14 d.f. (i.e. n-1 d.f.)
area = 𝛼𝛼 =0.05
𝑡𝑡𝛼𝛼;(𝑛𝑛−1)
Critical region is on
the RIGHT hand for
RIGHT tailed test
test critical
value value
(1.549) (1.761)
(We can assume that the salaries of janitors in Tuen Mun were
normally distributed with unknown mean and standard deviation)
area = 𝛼𝛼 =0.01
−𝑡𝑡𝛼𝛼;(𝑛𝑛−1)
Critical region is on
the LEFT hand for
LEFT tailed test
test critical
value value
(-4.472) (-2.539)
(We can assume that the daily commuting times of workers in Town
B are normally distributed with an unknown mean and standard
deviation)
−𝑡𝑡𝛼𝛼/2;(𝑛𝑛−1) 𝑡𝑡𝛼𝛼/2;(𝑛𝑛−1)
Critical region is on
both sides for 2
tailed test
critical test critical
value value value
(-2.179) (0.901) (2.179)