Chapter - 3-Hypothesis Testing
Chapter - 3-Hypothesis Testing
Chapter 3
Hypothesis Testing
Solution 2:
Step 1: Determine the population parameter of interest
The population parameter of interest is the mean weighted per sack, μ.
Step 2: Identify the hypothesis of interest
The machine is filling the sacks with the proper amount. Which is μ = 20
ounces
Step 3: Formulate the null and alternative hypothesis
Ho : μ = 20 ounces
HA : μ ≠ 20 ounces
α/2 α/2 α α
Do not reject 𝑯𝒐 Do not reject 𝑯𝒐 Do not reject 𝑯𝒐
The sampling distribution of the test statistic is divided into two regions, a
region of rejection (critical region) and a region of non-rejection.
If the test statistic falls into the region of non-rejection, you do not
reject the null hypothesis.
If the test statistic falls into the rejection region, you reject the null
hypothesis.
Critical Critical
Value Value
Rejection Rejection
Region Region
Non-rejection Region
µ
To make a decision concerning the null hypothesis, you first determine the
critical value of the test statistic. The critical value divides the non-
rejection region from the rejection region.
Because of the potential for extreme sampling error, two possible errors
can occur when hypothesis tested. These error show the relationship
between what actually exists and the decision made based on the sample
information.
Type I Error occurs when a true null hypothesis is rejected. The value of α
represents the probability of committing this type of error.
Type II Error occurs when a false null hypothesis is not rejected. The
value of β represents the probability of committing a Type II error.
Example 3:
A hospital performs many knee replacement surgery procedures each year.
Recently, research physicians at the hospital have developed a surgery
process they believe will reduce the average patient recovery time. The
hospital board will not recommend the new procedure unless there is
substantial evidence to suggest that it is better than the existing procedure.
Records indicate that the current mean recovery rate for the standard
procedure is 142 days, with a standard deviation of 15 days. The procedure
was performed on a random sample of 36 patients and the sample mean is
140.2 days. Using 5% significance level, test whether the new procedure
results in a lower mean recovery time.
Solution 3:
Step 1: Formulate the null and alternative hypotheses
𝐻0 : µ ≥ 142 days
𝐻𝐴 : µ < 142 days
Step 2: Specify the desired significance level (α)
The researchers wish to test the hypothesis using a 0.05 significance level
Step 3: Construct the rejection region.
This will be one tailed test, with rejection region in the lower tail of the
sampling distribution. The critical value is
−𝑧0.05 = −1.645, therefore, the decision rule is
if 𝑧 < −1.645, reject 𝐻0 , otherwise don’t reject
Rejection region
α = 0.05
0
z
−𝑧0.05 = −1.645 µ=142
Rejection region
α = 0.01
0
z
−𝑧0.01 = −2.33 µ = $300,000
𝜎 80,000
Step 4: Compute the test statistic 𝜎𝑥ҧ = = = 16,000
𝑛 25
𝑥ҧ − 𝜇 288,000 − 300,000 −12,000
𝑧= 𝜎 = = = −𝟎. 𝟕𝟓
16,000 16,000
𝑛
Example 5:
According to a Telephone Company that provides long-distance telephone
service in an area, the average length of all long-distance calls placed
through this company last year was μ = 12.44 minutes. The company’s
management wanted to check if the mean length of the current long-
distance calls is different from 12.44 minutes.
A sample of n = 150 such calls placed through this company produced a
mean length of 𝒙 ഥ =13.71 minutes. The standard deviation of all such calls
is σ = 2.65 minutes. Using the 5% significance level, can you conclude
that the mean length of all current long-distance calls is different from
12.44 minutes?
z
0
−𝑧α/2 = −1.96 µ = 12.44 𝑧α/2 =1.96
σ 2.65 2.65
Step 5: Compute the test statistic σ𝑥ҧ = = = = 𝟎. 𝟐𝟏𝟔
𝑛 150 12.25
𝑥ҧ − 𝜇 13.71 − 12.44 1.27
𝑧= σ = = = 𝟓. 𝟖𝟕
0.216 0.216
𝑛
Example 6:
Grand Auto Corporation produces auto batteries. The company claims that
its top-of-the-line Never Die batteries are good, on average, for at least 65
months. A consumer protection agency tested 45 such batteries to check
this claim.
It found that the mean life of these 45 batteries is 63.4 months, and the
standard deviation is 3 months. Find the test that the mean life of all such
batteries is less than 65 months. What will your conclusion be if the
significance level is 1%?
Rejection region
α = 0.01
t
0
−𝑡0.01 = −2.414 µ = 65
𝑠 3 3
Step 5: Compute the test statistic 𝑠𝑥ҧ = = = = 0.447
𝑛 45 6.708
𝑥ҧ − 𝜇 63.4 − 65 −1.6
𝑡= = = = −𝟑. 𝟓𝟕9
𝑠𝑥ҧ 0.447 0.447
t
0
−𝑡α/2 = −2.09 µ = 15 𝑡α/2 = 2.09
𝑠 1.9 1.9
Step 5: Compute the test statistic 𝑠𝑥ҧ = = = = 0.425
𝑛 20 4.47
𝑥ҧ − 𝜇 14.1 − 15 −0.9
𝑡= = = = −𝟐. 𝟏𝟐
𝑠𝑥ҧ 0.425 0.425
Solution 8:
Step 1: Formulate the null and alternative hypotheses
𝐻0 : µ ≤ 20 minutes
𝐻𝐴 : µ > 20 minutes
Rejection region
α = 0.05
t
0
µ = 20 𝑡α = 1.96
𝑠 4.3 4.3
Step 5: Compute the test statistic 𝑠𝑥ҧ = = = = 1.62
𝑛 7 2.65
𝑥ҧ − 𝜇 22.7 − 20 2.7
𝑡= = = = 𝟏. 𝟔𝟕
𝑠𝑥ҧ 1.62 1.62
𝑝Ƹ − 𝑝
𝑧=
𝑝(1 − 𝑝)
𝑛
where 𝑝Ƹ = Sample Proportion
p = Hypothesized population proportion
n = Sample size
NOTE: the sample is considered to be large when np ≥ 5 and n(1 – p) ≥ 5
Example 9:
Direct Mailing Company sells computers and computer parts by mail. The
company claims that at least 90% of all orders are mailed within 72 hours
after they are received.
The quality control department at the company often takes samples to
check if this claim is valid. A recently taken sample of 150 orders showed
that 129 of them were mailed within 72 hours. Do you think the
company’s claim is true? Use a 5% significance level.
𝑝Ƹ − 𝑝 𝑝Ƹ − 0.90 𝑥 129
𝑧= = Therefore, 𝑝Ƹ = = = 0.86
𝑝(1 − 𝑝) 0.90(1 − 0.90) 𝑛 150
𝑛 150
0
z
−𝑧0.05 = −1.645 p =0.90
Solution 10:
Step 1: Formulate the null and alternative hypotheses
𝐻0 : p ≥ 0.75 (The report’s claim is true)
𝐻𝐴 : p < 0.90 (The report’s claim is false)
Step 2: Check whether the sample is large enough & specify the
significance level for testing the null hypothesis
We first check if np and n(1 – p) is both greater than 5
np = 125(0.75) = 93.75 > 5 and n(1 – p) = 125(0.25) = 31.25 > 5
The sample size is large
The significance level for testing null hypothesis is α = 0.10
Step 3: Construct the rejection region.
The significance level is 0.10. and the alternative hypothesis indicates that
the test is left (see < sign). The critical value of z, obtained from normal
distribution table for 0.10 area in the left tail is -1.28
Rejection region
α = 0.01
z
0
−𝑡0.01 = −1.28 p = 0.75
𝑥 92
Step 5: Compute the test statistic Where, 𝑝ො = = = 0.736
𝑛 125