Hypotheses Testing
Hypotheses Testing
Hypotheses Testing
Inferential Statistics:
HypothesisTesting
Objective
• State the null and alternative hypotheses
• Find critical values for the z test.
• Test means when s is known, using the z test.
• Test means when σ is unknown, using the t test.
• Test variances or standard deviations, using the chi-square
test
• Test hypotheses, using confidence intervals
Introduction
• Researchers are interested in answering many types of questions.
• For example, a scientist might want to know whether there is
evidence of global warming.
• A physician might want to know whether a new medication will
lower a person’s blood pressure.
• Automobile manufacturers are interested in determining whether
a new type of seat belt will reduce the severity of injuries caused
by accidents.
• These types of questions can be addressed through statistical
hypothesis testing, which is a decision-making process for
evaluating claims about a population.
Topics
• Steps in Hypothesis Testing—Traditional Method
• z-Test for a Mean
• t - Test for a Mean
• X2 Test for a Variance or Standard Deviation
Traditional Method
Steps in HypothesisTesting
Statistical Hypothesis
• A statistical hypothesis is a conjecture about
a population parameter. This conjecture may
or may not be true.
Two Types of Statistical Hypothesis
• Null Hypothesis (H )
0
• is a statistical hypothesis that states that there is no difference
between a parameter and a specific value, or that there is no
difference between two parameters.
• Alternative hypothesis (H )
1
• is a statistical hypothesis that states the existence of a
difference between a parameter and a specific value, or states
that there is a difference between two parameters.
Classification Of Alternative Hypothesis
• Non – directional Hypothesis
• The one which asserts the value is different from
another
• Makes use of the “not equal to” sign
• two – sided hypothesis
Classification Of Alternative Hypothesis
• Directional Hypothesis
• An assertion that one measure is less than or greater
than another measure of similar nature
• Involves one of the order relatives, “less than” or
“greater than”
• One – sided hypothesis
How Hypotheses Should Be Stated?
Situation A
A medical researcher is interested in finding out
whether a new medication will have any undesirable
side effects. The researcher is particularly concerned
with the pulse rate of the patients who take the
medication. Will the pulse rate increase, decrease, or
remain unchanged after a patient takes the medication?
Since the researcher knows that the mean pulse rate for
the population under study is 82 beats per minute
Situation A
• the hypotheses for this situation are
This test is called a two-tailed test since the possible side effects of the
medicine could be to raise or lower the pulse rate.
Situation B
• A chemist invents an additive to increase the life of an automobile
battery. If the mean lifetime of the automobile battery without the
additive is 36 months, then her hypotheses are :
𝐻 0 : 𝜇=36
𝐻 1 : 𝜇>36
𝐻 0 : 𝜇=$ 78 78
𝐻 1 : 𝜇>36
Left-Tailed Test
Situation C
A contractor wishes to
lower heating bills by
using a special type of
insulation in houses. If the
average of the monthly
heating bills is $78,
𝐻 0 : 𝜇=$ 78
78
Two-Tailed Test
• the null hypothesis should be rejected when the test value is in
either of the two critical regions.
• the critical region must be split into two equal parts. If α = 0.01,
then one-half of the area, or 0.005, must be to the right of the
mean and one-half must be to the left of the mean
Situation A
Two-Tailed Test A medical researcher is
interested in finding out
whether a new medication will
have any undesirable side
effects. The researcher is
particularly concerned with the
pulse rate of the patients who
take the medication. Will the
pulse rate increase, decrease,
or remain unchanged after a
patient takes the medication?
𝐻 0 : 𝜇=82
𝐻 1 : 𝜇 ≠ 82
Tw0-Tailed Test
Sample Problem:
A manufacturer of a certain brand of rice cereal claims that
the average saturated fat content does not exceed 1.5 grams
per serving. State the null and alternative hypotheses to be
used in testing this claim and determine where the critical
region is located.
Sample Problem:
A real estate agent claims that 60% of all private residences
being built today are 3-bedroom homes. To test this claim, a
large sample of new residences is inspected; the proportion
of these homes with 3 bedrooms is recorded and used as the
test statistic. State the null and alternative hypotheses to be
used in this test and determine the location of the critical
region.
Solving Hypothesis-Testing Problems
(Traditional Method)
𝑋=𝑠𝑎𝑚𝑝𝑙𝑒 𝑚𝑒𝑎𝑛
𝑋−𝜇 𝜇=h𝑦𝑝𝑜𝑡h𝑒𝑠𝑖𝑧𝑒𝑑 𝑝𝑜𝑝𝑢𝑙𝑎𝑡𝑖𝑜𝑛𝑚𝑒𝑎𝑛
𝑧= 𝜎 =𝑝𝑜𝑝𝑢𝑙𝑎𝑡𝑖𝑜𝑛 𝑠𝑡𝑎𝑛𝑑𝑎𝑟𝑑 𝑑𝑒𝑣𝑖𝑎𝑡𝑖𝑜𝑛
𝜎 / √𝑛 𝑛=𝑠𝑎𝑚𝑝𝑙𝑒 𝑠𝑖𝑧𝑒
EXAMPLE
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.
EXAMPLE
A random sample of 100 recorded deaths in the
United States during the past year showed an
average life span 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.
EXAMPLE
• An electrical firm manufactures light bulbs that
have a lifetime that is approximately normally
distributed with a mean of 800 hours and a standard
deviation of 40 hours. Test the hypothesis that μ =
800 hours against the alternative, μ 800 hours, if a
random sample of 30 bulbs has an average life of
788 hours. Use 0.05 level of significance.
Tests on a Single Sample (Variance
Unknown)
• is a statistical test for the mean of a population and is used when
the population is normally or approximately normally distributed
and σ is unknown
𝑋=𝑠𝑎𝑚𝑝𝑙𝑒 𝑚𝑒𝑎𝑛
𝑋 −𝜇 𝜇=h𝑦𝑝𝑜𝑡h𝑒𝑠𝑖𝑧𝑒𝑑 𝑝𝑜𝑝𝑢𝑙𝑎𝑡𝑖𝑜𝑛𝑚𝑒𝑎𝑛
𝑡=
𝑠/ √ 𝑛 𝑠=𝑠𝑎𝑚𝑝𝑙𝑒 𝑠𝑡𝑎𝑛𝑑𝑎𝑟𝑑 𝑑𝑒𝑣𝑖𝑎𝑡𝑖𝑜𝑛
𝑛=𝑠𝑎𝑚𝑝𝑙𝑒 𝑠𝑖𝑧𝑒
2
2( 𝑛 −1) 𝑠
𝑋 = 2
𝜎 s²
σ²
𝑛=𝑠𝑎𝑚𝑝𝑙𝑒 𝑠𝑖𝑧𝑒
Test for normality
• NULL HYPOTHESIS
• σ² = σ
• ALTERNATIVE HYPOTHESIS
• σ² < σ
• σ² > σ
• σ² σ
EXAMPLE
• A manufacturer of car batteries claims that the life of the
company’s batteries is approximately normally distributed
with a standard deviation equal to 0.9 year. If a random
sample of 10 of these batteries has a standard deviation of
1.2 years, do you think that σ > 0.9 year? Use a 0.05 level of
significance.
EXAMPLE
The standard deviation for the Math SAT test is 100. The
variance is 10,000. An instructor wishes to see if the
variance of the 23 randomly selected students in her school
is less than 10,000. The variance for the 23 test scores is
7225. Is there enough evidence to support the claim that the
variance of the students in her school is less than 10,000 at
α = 0.05? Assume that the scores are normally distributed.
EXAMPLE
• Past experience indicates that the time required for high
school seniors to complete a standardized test is a normal
random variable with a standard deviation of 6 minutes.
Test the hypothesis that σ = 6 against the alternative that
σ < 6 if a random sample of the test times of 20 high school
seniors has a standard deviation s = 4.51. Use a 0.05 level
of significance.
Test on a
Single Proportion
Hypotheses:
• p < p0
• p>p0
• p ≠ p0
Testing a Proportion
EXAMPLE
• A builder claims that heat pumps are installed in 70% of all
homes being constructed today in the city of Richmond,
Virginia. Would you agree with this claim if a random
survey of new homes in this city showed that 8 out of 15
had heat pumps installed? Use a 0.10 level of significance.
EXAMPLE
• A new radar device is being considered for a certain missile
defense system. The system is checked by experimenting
with aircraft in which a kill or a no kill is simulated. If, in 300
trials, 250 kills occur, accept or reject, at the 0.04 level of
significance, the claim that the probability of a kill with the
new system does not exceed the 0.8 probability of the
existing device.
EXAMPLE
• 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.