Professional Documents
Culture Documents
In this session
▪ What is hypothesis testing?
▪ Interpreting and selecting significance level
▪ Type I and Type II errors
▪ One tailed and two tailed tests
▪ Hypothesis tests for population mean
▪ Hypothesis tests for population proportion
What is hypothesis testing
• Hypothesis testing refers to
1. Making an assumption, called hypothesis, about a
population parameter.
2. Collecting sample data.
3. Calculating a sample statistic.
4. Using the sample statistic to evaluate the
hypothesis (how likely is it that our hypothesized
parameter is correct. To test the validity of our
assumption we determine the difference between
the hypothesized parameter value and the sample
value.)
HYPOTHESIS TESTING
▪State the hypothesized value of the All possible alternatives other than
parameter before sampling. the null hypothesis.
▪The assumption we wish to test (or E.g µ ≠ 20
the assumption we are trying to
reject) µ > 20
▪E.g population mean µ = 20 µ < 20
▪ There is no difference between There is a difference between coke
coke and diet coke and diet coke
Population Condition
H0 True H0 False
Conclusion
Accept H0 Correct
Type II Error
Decision
Reject H0 Correct
Type I Error
Decision
Selecting and interpreting significance
level Selecting and interpreting
1. Deciding on a criterion for accepting or rejecting the null hypothesis.
significance
2. Significance level refers level
to the percentage of sample means that is outside
certain prescribed limits. E.g testing a hypothesis at 5% level of
significance means
▪ that we reject the null hypothesis if it falls in the two regions of area
0.025.
▪ Do not reject the null hypothesis if it falls within the region of area 0.95.
▪ The level of significance denotes the probability of rejecting the null
hypothesis when it is true.
▪ The value of alpha varies from problem to problem but usually it is taken
as either 5 percent or 1 percent . At 5% level means that there are 5
chances out of hundred that a null hypothesis will get rejected when it
should be accepted. The researcher is 95% confident that a right decision
has been taken.
3. The higher the level of significance, the higher is the probability of
rejecting the null hypothesis when it is true.
(acceptance region narrows)
Steps of Hypothesis Testing
Step 5. Use the value of the test statistic and the rejection
rule to determine whether to reject H0.
Critical Value Approach to
One-Tailed Hypothesis Testing
■ The test statistic z has a standard normal probability
distribution.
■ We can use the standard normal probability
distribution table to find the z-value with an area
of α in the lower (or upper) tail of the distribution.
■ The value of the test statistic that established the
boundary of the rejection region is called the
critical value for the test.
● The rejection rule is:
• Lower tail: Reject H0 if z < -zα
• Upper tail: Reject H0 if z > zα
Critical Value Approach to
Two-Tailed Hypothesis Testing
■ The critical values will occur in
both the lower and
upper tails of the standard
■normal curve.
Use the standard normal probability distribution
table to find zα/2 (the z-value with an area of α/2 in
the upper tail of the distribution).
● The rejection rule is:
Reject H0 if z < -zα/2 or z > zα/2.
Two-Tailed Tests About a Population Mean:
σ Known
• Example: Glow Toothpaste
The production line for Glow toothpaste is
designed to fill tubes with a mean weight of 6 oz.
Periodically, a sample of 30 tubes will be selected in
order to check the filling process.
Quality assurance procedures call for the
continuation of the filling process if the sample
results are consistent with the assumption that the
mean filling weight for the population of toothpaste
tubes is 6 oz.; otherwise the process will be adjusted.
Two-Tailed Tests About a Population Mean:
σ Known
● Example: Glow Toothpaste
Assume that a sample of 30 toothpaste tubes
provides a sample mean of 6.1 oz. The population
standard deviation is believed to be 0.2 oz. and the
hypothesized population mean is 6 oz.
Population Proportion
A Summary of Forms for Null and Alternative
Hypotheses About a Population Proportion
● The equality part of the hypotheses always appears
in the null hypothesis.
■ In general, a hypothesis test about the value of a
population proportion p must take one of the
following three forms (where p0 is the hypothesized
value of the population proportion).
H0 : p > p 0 H0 : p < p 0 H0 : p = p 0
Ha: p < p0 Ha: p > p0 Ha: p ≠ p0
● Test Statistic
where:
a common
error is using
in this formula
Two-Tailed Test About a
Population Proportion
■ p−Value Approach
Because 1.278 > -1.96 and < 1.96, we cannot reject H0.