3 Hypothesis Testing For Means
3 Hypothesis Testing For Means
Testing on a
Single
Population
Hypothesis Testing on the Mean of a
Single Population
𝑯𝟎 Value of Test Statistic 𝑯𝟏 Critical Region
̅ !
%&' 𝜇 < 𝜇# 𝑧 < −𝑧+
𝑧= ; 𝜎 known
𝜇 = 𝜇# (/ * 𝜇 > 𝜇# 𝑧 > 𝑧+
𝜇 ≠ 𝜇# 𝑧 < −𝑧+/, or 𝑧 > 𝑧+/,
̅ !
𝜇 = 𝜇# 𝑡 = %&' ; 𝑣 = 𝑛 − 1, 𝜎 unknown 𝜇 < 𝜇# 𝑡 < −𝑡+
-/ *
𝜇 > 𝜇# 𝑡 > 𝑡+
𝜇 ≠ 𝜇# 𝑡 < −𝑡+/, or 𝑡 > 𝑡+/,
Example 1:
A random sample of 100 recorded deaths in
the United States during the past year showed
an average lifespan of 71.8 years. Assuming a
population standard deviation of 8.9 years,
does this seem to indicate that the mean
lifespan today is greater than 70 years? Use a
0.05 level of significance.
A random sample of 100 recorded deaths in the United States during the past year
showed an average lifespan of 71.8 years. Assuming a population standard
deviation of 8.9 years, does this seem to indicate that the mean life span today is
greater than 70 years? Use a 0.05 level of significance.
Excel function -NORM.S.INV(.05) gives the z-value whose area to the right is 0.05
→ 𝑃 𝑧 > 1.645 = 0.05
Test Statistic
̅ !
#$% )*.,$)! Since the P-value is less
𝑧= = ≈ 2.02 than the significance
&/ ( ,.-/ *!!
level 𝜶, we say that the
sample data give
sufficient evidence to
P-value reject 𝑯𝟎 .
The evidence in favor of
2.02 𝐻* is significant.
P-value = 𝑃 𝑧 > 2.02 = 0.0217
The Excel function NORM.S.DIST(2.02,1) gives the area to the left of z = 2.02.
To get 𝑃 𝑧 > 2.02 , we use 1-NORM.S.DIST(2.02,1)
Note the following characteristics of the problem:
• The test relates to the population mean µ.
• The population standard deviation 𝜎 is known.
• There is only one sample with a large sample size.
• The test has the critical region in one tail of the
distribution, i.e. the test is a one-tailed (right-tailed)test.
̅ !
"#$
• The test statistic is 𝑧 = .
%/ '
• We can check if the test statistic is within the critical
region.
• We can compare the P-value to the value of 𝜶.
Example 2:
A manufacturer of sports equipment has developed a
new synthetic fishing line that the company claims has a
mean breaking strength of 8 kilograms, with a standard
deviation of 0.5 kilogram. Test the hypothesis that µ = 8
kilograms against the alternative that µ ≠ 8 kilograms if a
random sample of 50 lines is tested and found to have a
mean breaking strength of 7.8 kilograms. Use a 0.01 level
of significance.
A manufacturer of sports equipment has developed a new synthetic fishing line that the company
claims has a mean breaking strength of 8 kilograms, with a standard deviation of 0.5 kilogram. Test
the hypothesis that µ = 8 kilograms against the alternative that µ ≠ 8 kilograms if a random sample
of 50 lines is tested and found to have a mean breaking strength of 7.8 kilograms. Use a 0.01 level of
significance.
Excel function NORM.S.INV(.005) gives the z-value whose area to the left is 0.005
→ 𝑃 𝑧 < −2.576 = 0.005
Test Statistic
𝑥̅ − 𝜇! 7.8 − 8 Since the P-value is less
𝑧= = ≈ −2.83
𝜎/ 𝑛 0.5/ 50 than the significance
level 𝜶, the decision is to
reject 𝑯𝟎 .
The evidence in favor of
½ P-value ½ P-value
𝐻* is significant.
-2.83 2.83
P-value = 𝑃 𝑧 < −2.83 + 𝑃 𝑧 > 2.83 = 0.0023 x 2 = 0.0046
The Excel function NORM.S.DIST(2.83,1) gives the area to the left of z = -2.83.
Note the following characteristics of the problem:
• The test relates to the population mean µ.
• The population standard deviation 𝜎 is known.
• There is only one sample with a large sample size.
• The test has the critical region in both tails of the distribution,
i.e. the test is two-tailed.
̅ !
#$%
• The test statistic is 𝑧 = .
&/ (
• We can check if the test statistic is within the critical region.
• We can compare the P-value to the value of 𝜶.
• The critical region is composed of two sub-regions. Each sub-
region has area 𝜶/2.
Example 3:
The Edison Electric Institute has published figures on the
number of kilowatt hours used annually by various home
appliances. It is claimed that a vacuum cleaner uses an average
of 46 kilowatt hours per year. If a random sample of 12 homes
included in a planned study indicates that vacuum cleaners use
an average of 42 kilowatt hours per year with a standard
deviation of 11.9 kilowatt hours, does this suggest at the 0.05
level of significance that vacuum cleaners use, on average, less
than 46 kilowatt hours annually? Assume the population of
kilowatt hours to be normal.
The Edison Electric Institute has published figures on the number of kilowatt hours used annually by
various home appliances. It is claimed that a vacuum cleaner uses an average of 46 kilowatt hours
per year. If a random sample of 12 homes included in a planned study indicates that vacuum
cleaners use an average of 42 kilowatt hours per year with a standard deviation of 11.9 kilowatt
hours, does this suggest at the 0.05 level of significance that vacuum cleaners use, on average, less
than 46 kilowatt hours annually? Assume the population of kilowatt hours to be normal.
Excel function T.INV(.05,11) gives the t-value with df = 11 whose area to the left is 0.05.
→ 𝑃 𝑡 < −1.796 = 0.05
Test Statistic Since the P-value is
̅ !
#$% 12$13 greater than the
𝑡= = ≈ -1.16
0/ ( **.-/ *2
significance level 𝜶, the
decision is not to reject
53 𝑯𝟎 .
0.13
l u e = The evidence in favor of
P-va 𝐻* is not significant
enough to reject 𝐻! .
-1.16
P-value = 𝑃 𝑡 < −1.16 = 0.1353
The Excel function T.DIST(-1.16,11,1) gives the area to the left of t = -1.16.
Note the following characteristics of the problem:
• The test relates to the population mean µ.
• The population standard deviation is not known.
• There is only one sample with a small sample size.
• The test has the critical region in one tail of the distribution, i.e.
the test is one-tailed (left-tailed)..
̅ !
#$%
• The test statistic is 𝑡 = .
0/ (
• We use the t-distribution with 11 degrees of freedom.
• We can check if the test statistic is within the critical region.
• We can compare the P-value to the value of 𝜶.
Hypothesis Testing on the Proportion of a
Single Population (large sample size)
𝑯𝟎 Value of Test Statistic 𝑯𝟏 Critical Region
. !
/&/ 𝑝 < 𝑝# 𝑧 < −𝑧+
𝑧= "! #!
; 𝜎 known
𝑝 = 𝑝# $
𝑝 > 𝑝# 𝑧 > 𝑧+
𝑝 ≠ 𝑝# 𝑧 < −𝑧+/, or 𝑧 > 𝑧+/,
Notes:
%
𝑝̂ = * , where x is the number of “successes” in the sample
sample size 𝑛 ≥ 30
Example 4:
A commonly prescribed drug for relieving nervous tension is
believed to be only 60% effective. Experimental results with a
new drug administered to a random sample of 100 adults who
were suffering from nervous tension show that 70 received
relief. Is this sufficient evidence to conclude that the new drug is
superior to the one commonly prescribed? Use a 0.05 level of
significance.
A commonly prescribed drug for relieving nervous tension is believed to be only 60% effective.
Experimental results with a new drug administered to a random sample of 100 adults who were
suffering from nervous tension show that 70 received relief. Is this sufficient evidence to conclude
that the new drug is superior to the one commonly prescribed? Use a 0.05 level of significance.