Professional Documents
Culture Documents
STAT2225 Module 7. Hypothesis Testing for One Population Parameter
STAT2225 Module 7. Hypothesis Testing for One Population Parameter
Inferential
Statistics
Hypothesis
Estimation
Testing
Hypothesis Testing
• test of significance
• procedure for testing a claim about a parameter such as mean (𝜇),
variance (𝜎 2 ), standard deviation (𝜎), and proportion (𝑝)
a. The mean weight of airline passengers with carry-on baggage is at most 195 lbs.
Claim: mean weight is at most 195 lbs → (𝝁 ≤ 𝟏𝟗𝟓)
𝑯𝟎 : 𝝁 ≤ 𝟏𝟗𝟓 𝑯𝒂 : 𝝁 > 𝟏𝟗𝟓
b. The standard deviation of IQ scores of college students is equal to 15.
Claim: standard deviation is equal to 15 → (𝝈 = 𝟏𝟓)
𝑯𝟎 : 𝝈 = 𝟏𝟓 𝑯𝒂 : 𝝈 ≠ 𝟏𝟓
c. The proportion of workers who gets job through networking is less than 45%
Claim: proportion less than 0.45 → (𝒑 < 𝟎. 𝟒𝟓)
𝑯𝟎 : 𝒑 ≥ 𝟎. 𝟒𝟓 𝑯𝒂 : 𝒑 < 𝟎. 𝟒𝟓
Hypothesis Testing for One Population Parameter | 5
DEPARTMENT of
STATISTICS
Try this!
d. Test the claim that the population mean is no longer 75.
Claim: population mean is no longer 75 → (𝝁 ≠ 𝟕𝟓)
𝑯𝟎 : 𝝁 = 𝟕𝟓 𝑯𝒂 : 𝝁 ≠ 𝟕𝟓
e. The attorney for the Food and Drug Administration claims that the Medassist
Pharmaceutical Company makes cold caplets that contain amounts of
acetaminophen with a mean different from the 650 mg amount indicated on the
label.
Claim: mean different from 650 mg → (𝝁 ≠ 𝟔𝟓𝟎)
𝑯𝟎 : 𝝁 = 𝟔𝟓𝟎 𝑯𝒂 : 𝝁 ≠ 𝟔𝟓𝟎
f. The proportion of graduating students is higher than last year’s proportion of 68%
Claim: proportion higher than 68% → (𝒑 > 𝟎. 𝟔𝟖)
𝑯𝟎 : 𝒑 ≤ 𝟎. 𝟔𝟖 𝑯𝒂 : 𝒑 > 𝟎. 𝟔𝟖
Hypothesis Testing for One Population Parameter | 6
DEPARTMENT of
STATISTICS
Test Statistic
• value used in making a decision about 𝐻0
Critical Region
• rejection region
• range of values of the test statistic that cause us to reject the 𝐻0
Acceptance Region
• nonrejection region
• range of values of the test statistic that indicates that the difference
was probably due to chance and that the null hypothesis should not be
rejected
Hypothesis Testing for One Population Parameter | 7
DEPARTMENT of
STATISTICS
Critical Value
• value that separate the critical region and the acceptance region
• depends in the nature of 𝐻0 , sampling distribution, and the
significance level 𝛼
Distribution’s Tail
• identifies the extreme regions bounded by critical values
• type of distribution’s tail depends on the 𝐻𝑎
Two-tailed ( 𝐻𝑎 is ≠ )
One-tailed
Left-tailed ( 𝐻𝑎 is < )
Right-tailed ( 𝐻𝑎 is > )
Hypothesis Testing for One Population Parameter | 8
DEPARTMENT of
STATISTICS
Two-Tailed Test
• If 𝐻𝑎 uses ≠
Rejection Region
Acceptance Region Rejection Region
Acceptance Region
Rejection Region
It means that if the test
statistic fall in this region,
It means that if the test we failed to reject Ho
statistic fall in this region,
we reject Ho
Acceptance Region
Rejection Region
It means that if the test
statistic fall in this region,
we failed to reject Ho It means that if the test
statistic fall in this region,
we reject Ho
a. The mean weight of airline passengers with carry-on baggage is at most 195 lbs.
Claim: mean weight is at most 195 lbs → (𝝁 ≤ 𝟏𝟗𝟓)
𝑯𝟎 : 𝝁 ≤ 𝟏𝟗𝟓 𝑯𝒂 : 𝝁 > 𝟏𝟗𝟓 Right-tailed
b. The standard deviation of IQ scores of college students is equal to 15.
Claim: standard deviation is equal to 15 → (𝝈 = 𝟏𝟓)
𝑯𝟎 : 𝝈 = 𝟏𝟓 𝑯𝒂 : 𝝈 ≠ 𝟏𝟓 Two-tailed
c. The proportion of workers who gets job through networking is less than 45%
Claim: proportion less than 0.45 → (𝒑 < 𝟎. 𝟒𝟓)
𝑯𝟎 : 𝒑 ≥ 𝟎. 𝟒𝟓 𝑯𝒂 : 𝒑 < 𝟎. 𝟒𝟓 Left-tailed
Hypothesis Testing for One Population Parameter | 12
DEPARTMENT of
STATISTICS
Try this!
d. Test the claim that the population mean is no longer 75.
Claim: population mean is no longer 75 → (𝝁 ≠ 𝟕𝟓)
𝑯𝟎 : 𝝁 = 𝟕𝟓 𝑯𝒂 : 𝝁 ≠ 𝟕𝟓 Two-tailed
e. The attorney for the Food and Drug Administration claims that the Medassist
Pharmaceutical Company makes cold caplets that contain amounts of
acetaminophen with a mean different from the 650 mg amount indicated on the
label.
Claim: mean different from 650 mg → (𝝁 ≠ 𝟔𝟓𝟎)
𝑯𝟎 : 𝝁 = 𝟔𝟓𝟎 𝑯𝒂 : 𝝁 ≠ 𝟔𝟓𝟎 Two-tailed
f. The proportion of graduating students is higher than last year’s proportion of 68%
Claim: proportion higher than 68% → (𝒑 > 𝟎. 𝟔𝟖)
𝑯𝟎 : 𝒑 ≤ 𝟎. 𝟔𝟖 𝑯𝒂 : 𝒑 > 𝟎. 𝟔𝟖
Right-tailed
Hypothesis Testing for One Population Parameter | 13
DEPARTMENT of
STATISTICS
Decisions
• Reject the null hypothesis
• Fail to reject null hypothesis
Decision Criterion
• Reject 𝐻0 if the value of the test statistic falls within the critical region.
• Fail to reject 𝐻0 if the value of the test statistic does not fall within the
critical region
Errors
True State of Nature
Decision
𝐻0 is TRUE 𝐻0 is FALSE
TYPE I ERROR
REJECT 𝐻0 (Rejecting a True 𝐻0 ) Correct Decision
𝜶
TYPE II ERROR
FAIL TO REJECT 𝐻0 Correct Decision (Failing to Reject a False 𝐻0)
𝜷
o The commonly used level of significance are 0.10, 0.05 and 0.01 levels. That is, if
the null hypothesis is rejected, the probability of a type I error will be 10%, 5%, or
1%, depending on which level of significance is used.
o Note that in a hypothesis-testing situation, the researcher decides what level of
significance to use. It does not have to be the 0.10, 0.05, or 0.01 level. It can be any
level, depending on the seriousness of the type I error
Requirements
Example 1. In a study, it was found out that the average IQ score of students is
101.5. The variable is normally distributed, and the population standard
deviation is 15. A school superintendent claims that the students in her school
district have an IQ higher than the average of 101.5. She selects a random
sample of 30 students and finds the mean of the test scores is 106.4. Test the
claim at 𝛼 = 0.05.
Step 2: Determine the test statistic to use and its distribution’s tail.
Test statistic: z-test (since 𝜎 is known)
Distribution’s tail: right-tailed test (since 𝐻𝑎 is 𝜇 > 101.5)
Step 3: Find the critical value and the critical region. Formulate decision rule.
𝑧 = 1.645
Decision Rule:
Step 3: Find the critical value and the critical region. Formulate decision rule.
𝑧 = 1.645
Decision Rule:
Reject 𝐻0 if 𝑍𝑐 > 𝑍𝑎 , that is,
Reject 𝑯𝟎 if 𝒁𝒄 > 𝟏. 𝟔𝟒𝟓
𝑋ത − 𝜇0 106.4 − 101.5
𝑍𝑐 = 𝜎 = = 𝟏. 𝟕𝟖𝟗
15
𝑛 30
Step 5: Make a decision.
Recall: Decision Rule: Reject 𝐻0 if 𝑍𝑐 > 1.645
Since 1.789 > 1.645, we reject 𝑯𝟎 .
Example 2. A researcher claims that the average wind speed in a certain city is
8 miles per hour. A random sample of 32 days has an average wind speed of
8.2 miles per hour. The standard deviation of the population is 0.6 mile per
hour. At 𝛼 = 0.05, is there enough evidence to reject the claim?
Step 2: Determine the test statistic to use and its distribution’s tail.
Test statistic: z-test (since 𝜎 is known)
Distribution’s tail: two-tailed test (since 𝐻𝑎 is 𝜇 ≠ 8)
Step 3: Find the critical value and the critical region. Formulate decision rule.
Since 𝛼 = 0.05 and the test is a
two-tailed test, the critical value Rejection Acceptance Rejection
Region Region Region
is 𝑍𝛼Τ2 = 𝑍0.05Τ2 = 𝟏. 𝟗𝟔.
𝑧 = −1.96 0 𝑧 = 1.96
Decision Rule:
Step 2: Determine the test statistic to use and its distribution’s tail.
Test statistic: z-test (since 𝜎 is known)
Distribution’s tail: two-tailed test (since 𝐻𝑎 is 𝜇 ≠ 8)
Step 3: Find the critical value and the critical region. Formulate decision rule.
Since 𝛼 = 0.05 and the test is a
two-tailed test, the critical value Rejection Acceptance Rejection
Region Region Region
is 𝑍𝛼Τ2 = 𝑍0.05Τ2 = 𝟏. 𝟗𝟔.
𝑧 = −1.96 0 𝑧 = 1.96
𝑋ത − 𝜇0 8.2 − 8
𝑍𝑐 = 𝜎 = = 𝟏. 𝟖𝟗
0.6
𝑛 32
Step 5: Make a decision.
Recall: Decision Rule: Reject 𝐻𝑜 if 𝑍𝑐 ≥ 1.96
Since 1.89 ≥ 1.96, we failed to reject 𝑯𝟎 .
Hypothesis Testing for One Population Parameter | 35
DEPARTMENT of
STATISTICS
Critical Value
Two-tailed Right-tailed Left-tailed
𝑡𝛼ൗ 𝑡𝛼, 𝑛−1 −𝑡𝛼, 𝑛−1
2 , 𝑛−1
Step 2: Determine the test statistic to use and its distribution’s tail.
Test statistic: t-test (since 𝜎 is unknown)
Distribution’s tail: two-tailed test (since 𝐻𝑎 is 𝜇 ≠ 16.3)
Step 3: Find the critical value and the critical region. Formulate decision rule.
Step 3: Find the critical value and the critical region. Formulate decision rule.
Decision Rule:
Step 3: Find the critical value and the critical region. Formulate decision rule.
𝑋ത − 𝜇0 17.7 − 16.3
𝑡𝑐 = 𝑠 = = 𝟐. 𝟒𝟔𝟎
1.8
𝑛 10
Step 5: Make a decision.
Recall: Decision Rule: Reject Ho if 𝑡𝑐 ≥ 2.262
Since 2.460 ≥ 2.262, we reject 𝑯𝟎 .
Hypothesis Testing for One Population Parameter | 44
DEPARTMENT of
STATISTICS
Step 2: Determine the test statistic to use and its distribution’s tail.
Test statistic: t-test (since 𝜎 is unknown)
Distribution’s tail: left-tailed test (since 𝐻𝑎 is 𝜇 < 7)
Step 3: Find the critical value and the critical region. Formulate decision rule.
Step 3: Find the critical value and the critical region. Formulate decision rule.
Decision Rule:
Step 3: Find the critical value and the critical region. Formulate decision rule.
Given: 𝑛 = 12, 𝜇0 = 7
Since the given is the data itself, compute for 𝑋ത and 𝑠, which are 𝑋ത = 6.83 and 𝑠 = 1.99
𝑋ത − 𝜇0 6.83 − 7
𝑡𝑐 = 𝑠 = = −𝟎. 𝟐𝟗𝟔
1.99
𝑛 12
Step 5: Make a decision.
Recall: Decision Rule: Reject Ho if 𝑡𝑐 < −2.718
Since −0.296 < −2.718, we failed to reject 𝑯𝟎 .
(Try answering this first before looking at the answer key at the last page of this module.)
Example 5. A television executive claims that fewer than half of the adults are
annoyed by the violence shown on television. Test the claim by using sample
data from a Roper poll in which 48% of 1,998 surveyed randomly selected
adults indicated their annoyance with television violence. Use a 0.05
significance level.
j
Step 2: Determine the test statistic to use and its distribution’s tail.
Test statistic: z-test for Proportion
Distribution’s tail: left-tailed test (since 𝐻𝑎 is 𝑝 < 0.50)
Step 3: Find the critical value and the critical region. Formulate decision rule.
Since 𝛼 = 0.05 and the test is a
left-tailed test, the critical value Rejection
Region
Acceptance
Region
is −𝑍𝛼 = −𝑍0.05 = −𝟏. 𝟔𝟒𝟓.
−1.645
Decision Rule:
Step 2: Determine the test statistic to use and its distribution’s tail.
Test statistic: z-test for Proportion
Distribution’s tail: left-tailed test (since 𝐻𝑎 is 𝑝 < 0.50)
Step 3: Find the critical value and the critical region. Formulate decision rule.
Since 𝛼 = 0.05 and the test is a
left-tailed test, the critical value Rejection
Region
Acceptance
Region
is −𝑍𝛼 = −𝑍0.05 = −𝟏. 𝟔𝟒𝟓.
−1.645
𝑝Ƹ − 𝑝0 0.48 − 0.50
𝑍𝑐 = = ≈ −𝟏. 𝟕𝟖𝟖
𝑝0 𝑞0 (0.50)(0.50)
𝑛 1998
Step 5: Make a decision.
Recall: Decision Rule: Reject 𝐻0 if 𝑍𝑐 < −1.645 Rejection Acceptance
Since −1.788 < −1.645, we reject 𝑯𝟎 . Region Region
−1.645
Hypothesis Testing for One Population Parameter | 61
DEPARTMENT of
STATISTICS
Step 2: Determine the test statistic to use and its distribution’s tail.
Test statistic: z-test for Proportion
Distribution’s tail: right-tailed test (since 𝐻𝑎 is 𝑝 > 0.75)
Step 3: Find the critical value and the critical region. Formulate decision rule.
𝑧 = 1.645
Decision Rule:
Step 3: Find the critical value and the critical region. Formulate decision rule.
𝑧 = 1.645
Decision Rule:
Reject 𝐻0 if 𝑍𝑐 > 𝑍𝑎 , that is,
Reject 𝑯𝟎 if 𝒁𝒄 > 𝟏. 𝟔𝟒𝟓
𝑝Ƹ − 𝑝0 0.90 − 0.75
𝑍𝑐 = = ≈ 𝟑. 𝟔𝟑𝟑
𝑝0 𝑞0 (0.75)(0.25)
𝑛 110
Step 5: Make a decision.
Recall: Decision Rule: Reject 𝐻0 if 𝑍𝑐 > 1.645
Since 3.633 > 1.645, we reject 𝑯𝟎 .
2. 𝒑 − value Method
- popular with the advent of modern computers; statistical softwares use 𝑝 − value
- Decision Rule: Reject 𝑯𝟎 if 𝒑 < 𝜶
Step 0: The requirements are met, since samples are random samples and
the data are normally distributed.