Hypothesis Testing
Hypothesis Testing
• There are two types of statistical hypotheses for each situation: the
null hypothesis and the alternative hypothesis.
Hypothesis Testing (Contd.)
• To state hypotheses correctly, researcher must translate the
conjecture or claim from words into mathematical symbols. The basic
symbols used are as follows:
• The null and alternative hypotheses are stated together, and the null
hypothesis contains the equals sign, as shown (where k represents a
specified number).
State the null and alternative hypotheses
for each conjecture
• An engineer hypothesizes that the mean number of defects can be
decreased in a manufacturing process of compact disks by using robots
instead of humans for certain tasks. The mean number of defective disks
per 1000 is 18.
• A psychologist feels that playing soft music during a test will change the
results of the test. The psychologist is not sure whether the grades will be
higher or lower. In the past, the mean of the scores was 73.
• A real estate agent claims that 60% of all private residences being built
today are 3bedroom homes. To test the claim, a large sample of new
residences are inspected; the proportion of these homes with 3 bedrooms
is recorded and used as out test statistic state the null & alternative
hypotheses.
Hypothesis Testing (Contd.)
• After stating the hypothesis, the researcher designs the study. The
researcher selects the correct statistical test, chooses an appropriate
level of significance, and formulates a plan for conducting the study.
4 types of decisions
• In the hypothesis-testing situation, there are four possible outcomes.
P(Type-I) = Level of significance Ho True Ho False
Error Correct
Reject Ho
(Type – I) Decision
P-value = P(Type – I)
9.73 40.5437
Example # 16
• Cholesterol Levels: A dietitian wishes to see if a person’s cholesterol
level will change if the diet is supplemented by a certain mineral. Six
subjects were pretested, and then they took the mineral supplement
for a 6-week period. The results are shown in the table. (Cholesterol
level is measured in milligrams per deciliter.) Can it be concluded that
the cholesterol level has been changed at a 0.10? Assume the variable
is approximately normally distributed.
I have calculated mean and variance for their differences above in
excel.
t-critical = 2.571
t-statistics = 0.0126
we are unable to reject Ho because t-statistics is less than t-critical.
the supplement has no effect in changing cholesterol level.
How to select correct test for testing mean
• Students sometimes have difficulty deciding whether to use the z test
or t test.