Hypothesis Testing
Hypothesis Testing
Hypothesis Testing
Inferential Statistics
Source: http://www.discover6sigma.org/post/2005/12/statistics-simplified/
Main Objectives
• Estimation: To estimate the parameters on the
basis of sample observations through a
statistic.
• Hypothesis Testing: To compare these
parameters among themselves on the basis of
observations and their estimates.
What is a Statistical Hypothesis?
• A hypothesis is a claim (assumption) about a
population parameter.
• Example:
– Average height of students is greater than 165 cm.
– The mean monthly cell phone bill of this city is $42.
– Older workers are more loyal to a company
– Companies with more than $1 billion of assets spend a
higher percentage of their annual budget on advertising
than do companies with less than $1 billion of assets.
Example
Imagine an automatic bottling machine that
fills two-liter bottles with cola.
The amount of cola filled in every bottle on the
average is expected to be of course, 2 liters.
Suppose a consumer advocate suspects that the
average amount of cola is less than 2 liters and
to wants to test it.
Example (contd.)
In fact the company sells cola in bottles
labeled 2 liters.
This implies a claim by the company that on
the average each bottle contains at least 2
liters.
The consumer advocate suspects that the
claim made by the company about the
population is not correct!
Null Hypothesis
• A null hypothesis (H0) is an assertion about the
value of a population parameter.
• It is an assertion that we hold as true unless we
have sufficient statistical evidence to conclude
otherwise.
• Examples: (Claim about the population)
– On the average each bottle contains at least 2 liters.
We write the null hypothesis:
H0: µ >= 2
Null Hypothesis
• The term null hypothesis arises from earlier
agricultural and medical applications of
statistics. In order to test the effectiveness of a
new fertilizer or drug, the tested hypothesis
(the null hypothesis) was that it had no effect,
that is, there was no difference between
treated and untreated samples.
Alternative Hypothesis
• A alternative hypothesis (H1 or Ha) is the negation
of the null hypothesis.
• Examples: (Suspicion about the claim)
– We write the alternative hypothesis:
H 1: µ ≤ 2
H0 is clearly specified and of intrinsic interest,
whereas H1 serves only to indicate what types of
departure from H0 are of interest.
Example 1
• A researcher has a theory that the average age of managers in
a particular industry is over 35‑years‑old, and he wishes to
prove this. The null hypothesis to conduct a statistical test on
this theory would be ____________.
Draw a sample
Question: Is X = 43
Sample likely if µ = 50?
Suppose the sample
mean age is 43. i.e. If NOT likely DO NOT
X =43 ACCEPT H0
Errors Committed by the Decision Taker
• Type II Error
– Failing to reject a false null hypothesis
– The probability of committing a Type II error is called , i.e.,
= P( Accept H0|H0 is false)
Decision Table
for Hypothesis Testing
Rejection Region
Rejection Region
= 50
Level of significance = α
a Rejection
Represents region is
critical value shaded
0
1-Tailed and 2-Tailed Tests
If action is to be taken if a parameter is either greater
than or less than some value α, then the alternative
hypothesis is that the parameter is not equal to α, and
the test is a right-tailed test.
H0: µ < 50 vs. H1: µ ≥ 50
Represents
Level of significance = α critical value
a Rejection
region is
shaded
0
1-Tailed and 2-Tailed Tests
If action is to be taken if a parameter is either greater
than or less than some value α, then the alternative
hypothesis is that the parameter is not equal to α, and
the test is a two-tailed test.
H0: µ = 50 vs. H1: µ ≠ 50
34554554444444454443444354454445
Example 8
• A manufacturer claims that the mean life of batteries
manufactured by his company is at least 44 months. A
random sample of 40 of these batteries was tested, resulting
in a sample mean life of 41 months with a sample standard
deviation of 16 months. Test at α = 0.01 whether the
manufacturer’s claim is correct.
Type II Errors
• Failure to reject null hypothesis means staying with the status
quo, not implementing a new process, not making
adjustments.
• If a new process, product, theory or adjustment is not
significantly better than what is currently accepted practice,
the decision maker makes a correct decision.
• If a new process, product, theory or adjustment would
significantly improves sales, business climate, costs, or morale
the decision maker makes error in judgement (Type II).
Type II Errors
• Type II errors can translate to
– Lost opportunities
– Poor product quality
– Failure to react to the marketplace
– The ability to react to change, new developments, or new
opportunities
Solving for Type II Errors
• Decide appropriate test statistics
• Determine the rejection region using a given alpha
• Find the probability that the observed test statistics does not
fall in the rejection region assuming H1 is true, i.e.,
β = P(Test statistics falls in the non-rejection region | H1 is true.)
Example 9
• Suppose a hypothesis states that the mean is exactly 50. if a
random sample of 35 items is taken to test this hypothesis,
what is the value of β if the population standard deviation is 7
and the alternative mean is 53? Use α = .01.