5. Hypothesis Test_1 Population
5. Hypothesis Test_1 Population
5. Hypothesis Test_1 Population
Population Proportion
The alternative hypothesis, denoted by Ha, is the opposite of what is stated in the null hypothesis.
It states that the new theory is true, there are new standards, the system is out of control, and/or something is
happening .
The hypothesis testing procedure uses data from a sample to test the two competing statements indicated by H0 and Ha.
Developing Null and Alternative Hypotheses
• It is not always obvious how the null and alternative hypotheses should be formulated.
• Care must be taken to structure the hypotheses appropriately so that the test conclusion
provides the information the researcher wants.
• The context of the situation is very important in determining how the hypotheses should
be stated.
• In some cases, it is easier to identify the alternative hypothesis first. In other cases, the
null is easier.
• Correct hypothesis formulation will take practice.
Developing Null and Alternative Hypotheses
Alternative Hypothesis as a Research Hypothesis
Example: A new sales force bonus plan is developed in an attempt to increase sales.
Null Hypothesis: The new bonus plan will not increase sales.
Alternative Hypothesis: The new bonus plan will increase sales.
Example: A new drug is developed with the goal of lowering blood pressure more than the existing
drug.
Null Hypothesis: The new drug does not lower blood pressure more than the
existing drug.
Alternative Hypothesis: The new drug lowers blood pressure more than the existing
drug.
In each case, rejection of null hypothesis, Ho, provides statistical support for the research hypothesis.
Developing Null and Alternative Hypotheses
Null Hypothesis as an Assumption to be Challenged
• Not all hypothesis tests involve research hypotheses.
• We might begin with a belief or assumption that a statement about the value of a
population parameter is true.
• We then use a hypothesis test to challenge the assumption and determine if there
is statistical evidence to conclude that the assumption is incorrect.
• In these situations, it is helpful to develop the null hypothesis first.
Example: The label on a soft drink bottle states that it contains 67.6 fluid ounces.
Summary of Forms for Null and Alternative Hypotheses
• The equality part of the hypotheses always appears in the null
hypothesis.
• In general, a hypothesis test about the value of a population mean μ
must take one of the following three forms (where μ0 is the
hypothesized value of the population mean).
Null and Alternative Hypotheses
Example: Metro EMS
A major west coast city provides one of the most comprehensive emergency medical
services in the world. Operating in a multiple hospital system with approximately 20 mobile
medical units, the service goal is to respond to medical emergencies with a mean time of 12
minutes or less.
The director of medical services wants to formulate a hypothesis test that could use a
sample of emergency response times to determine whether or not the service goal of 12
minutes or less is being achieved.
Solution
Steps of Hypothesis Testing
Step 1: Develop the null and alternative hypotheses.
Step 3: Collect evidence or sample data, compute the sample statistic, and then
test statistic like Z (standard normal variate) or t (Student’s t) etc.
• Cases where Type-I error is more costly, we choose a small value of α, e.g.,
1%
• Cases where Type-II error is more costly, we keep large value of α, e.g., 10%
• Cases where we are not able to determine which type of error is more costly,
or if the costs are roughly equal or if we do not have much knowledge about
the relative costs of the two types of errors, we will keep α = 5%
Example: Type I and Type II errors
An automobile currently attains a fuel efficiency of 20 kms per litre in city driving. A product research group has
developed a new fuel injection system designed to increase the kms per litre rating. The group will run controlled tests with
the new fuel injection system looking for statistical support for the conclusion that the new fuel injection system provides
more kms per litre than the current system.
Several new fuel injection units will be manufactured, installed in test automobiles, and subjected to research-controlled
driving conditions. The sample mean miles per litre for these automobiles will be computed and used in hypothesis test to
determine if it can be concluded that the new system provides more than 20 kms per litre.
a) Which form of the hypotheses should be used to test the manager's claim? Explain.
H0: μ ≥ 600 H0: μ ≤ 600 H0: μ = 600
Ha: μ < 600 Ha: μ > 600 Ha: μ ≠ 600
a) Develop the null and alternative hypotheses most appropriate for this study.
e) What is the Type II error in this situation? What are the consequences of making this error?
Problems on hypothesis formulation and
Type I and Type II errors
Microsoft Word
Document
Test Statistic
• The null hypothesis H0 is accepted or rejected on the basis of a ‘Test Statistic’
• For Population Mean test, z- test statistic or t-test statistic is used depending on
the knowledge of population standard deviation
Test Population Mean
Cases in which the test statistic is Z
The formula
The formula for forcalculatin
calculatingg ZZ isis::
xx
zz
n
n
Test Population Mean
Cases in which the test statistic is t
Sigma is unknown but the sample standard deviation s is known, and the
population is normal.
The formula
The formula for forcalculatin
calculatingg ttisis::
xx
tt
ss
n
n
Exercise 8.3 (8.19)
• If our goal is to accept a null hypothesis that µ=36.5 with 96% certainty when it’s
true, and our sample size is 50, diagram the acceptance and rejection regions for
the following alternative hypotheses.
(a) µ≠36.5
(b) µ>36.5
(C) µ<36.5
p-Value Approach to One-Tailed Hypothesis Testing
• The p-value is the probability, computed using the test statistic, that measures the
support (or lack of support) provided by the sample for the null hypothesis.
• If the p-value is less than or equal to the level of significance α, the value of the test
statistic is in the rejection region.
• Between 0.01 and 0.05: Strong evidence to conclude Ha is true (Reject H0)
• Between .05 and .10: Weak evidence to conclude Ha is true (Fail to reject H0)
• Greater than .10: Insufficient evidence to conclude Ha is true. (Fail to reject H0)
The response times for a random sample of 40 medical emergencies were tabulated. The
sample mean is 13.25 minutes. The population standard deviation is believed to be 3.2
minutes.
The EMS director wants to perform a hypothesis test, with a .05 level of significance, to
determine whether the service goal of 12 minutes or less is being achieved.
One-Tailed Tests About a Population Mean: σ Known
Acceptance
0.025% Region 0.025%
Total = 5% Level
95%
• Select a simple random sample from the population and use the value of the
sample meanto develop the confidence interval for the population mean μ.
• If the confidence interval contains the hypothesized value μ0, do not reject H0.
Otherwise, reject H0. (Actually, H0 should be rejected if μ0 happens to be equal to
one of the end points of the confidence interval.)
Confidence Interval Approach to Two-Tailed Tests About a Population Mean
Because the hypothesized value for the population mean, μ0 = 6, is not in this
interval, the hypothesis-testing conclusion is that the null hypothesis, H0: μ = 6,
can be rejected.
8.33
The bay city Bigleaguers, a semiprofessional baseball team, have the player who led
the league in batting average for many years. For the past several years, Joe Carver’s
batting average has had a mean of .343 and a standard deviation of .018. This year,
however, Joe’s average was only .306.
Joe is renegotiating his contract for the next year, and the salary he will be able to
obtain is highly dependent on his ability to convince the team’s owner that his batting
average this year was not significantly worse than the previous years. If the owner is
willing to use a 0.02 significance level, will Joe’s salary be cut next year?
Hypothesis Testing: σ Unknown
Example: Highway Patrol
One-Tailed Test About a Population Mean: σ Unknown
The locations where H0 is rejected are deemed the best locations for radar traps. At
Location F, a sample of 64 vehicles shows a mean speed of 66.2 mph with a standard
deviation of 4.2 mph. Use α = 0.05 to test the hypothesis.
Hypothesis Tests About a Population Mean when σ unknown
H0: Reject
H0 if t < - t or t > t
Note: critical value approach is advisable in case of t-test statistic to avoid complications as exact
p-value is not available. Hence, an approximation or interpolation is required to obtain p-value.
One-Tailed Test About a Population Mean: σ Unknown
Reject H0 if p –value ≤ α
For a Christmas and New Year’s week, the National Safety Council estimated that 500 people
would be killed and 25,000 injured on the nation’s roads. The NSC claimed that 50% of the
accidents would be caused by drunk driving.
A sample of 120 accidents showed that 67 were caused by drunk driving. Use these data to
test the NSC’s claim with α = 0.05.
Two-Tailed Test About a Population Proportion
Two-Tailed Test About a Population Proportion
p –Value Approach
4. Compute the p –value.