Hypothesis Testing
Hypothesis Testing
Hypothesis: It’s a statement about a population parameter developed for the purpose of
testing.
Hypothesis testing: It’s a procedure based on sample evidence and probability theory to
determine whether the hypothesis is a reasonable statement.
Examples
1. A study by the Coca-Cola Company showed that the typical adult Kenyan consumes 18
gallons of Coca-Cola each year. According to the same survey, the standard deviation of
the number of gallons consumed is 3.0. A random sample of 64 college students showed
they consumed an average (mean) of 17 gallons of cola last year. At the 0.05 significance
level, can we conclude that there is a significance difference between the mean
consumption rate of college students and adults?
2. Past experience indicates that the monthly long distance telephone bill per household in a
particular community is normally distributed, with a mean of Sh. 1012 and a standard
deviation of Sh. 327. After an advertising campaign that encouraged people to make long
distance telephone calls more frequently, a random sample of 57 households revealed that
the mean monthly long distance bill was Sh. 1098. Can we conclude at the 10%
significance level that the advertising campaign was successful?
3. A factory manufactures cars with a warranty of 5 years on the engine and transmission.
An engineer believes that the engine or transmission will malfunction in less than 5 years.
He tests a sample of 40 cars and finds the average time to be 4.8 years with a standard
deviation of 0.50. At a 5 % significance level, is there enough evidence to support the
idea that the warranty should be revised?
4. The average IQ for the adult population is 100 with a standard deviation of 15. A
researcher believes this value has changed. The researcher decides to test the IQ of 75
random adults. The average IQ of the sample is 105. Is there enough evidence to suggest
that the average IQ has changed?
5. The average IQ of the adult population is 100. A researcher believes the average IQ of
adults is lower. A random sample of 5 adults are tested and scored 69, 79, 89, 99, 109.
(15.81 standard deviation). Is there enough evidence to suggest the average IQ is lower at
5% significance level
pˆ qˆ
Confidence interval estimator of p is pˆ Z
2 n
( x1 x 2 ) ( 1 2 )
Z
12 22
n1 n2
Confidence interval estimator of 1 2 when 1 and 2 are known is
2 2
12 22
1 2 ( x1 x 2 ) Z
2 n1 n2
Example
1. The selection of a new store location depends on many factors, one of which is the
level of household income in areas around the proposed site. A large departmental
store chain is trying to decide whether to build a new store in Nakuru or in the nearby
city of Nairobi. Building costs are lower in Nairobi and the company decides it will
build there unless the average household income is higher in Nakuru than in Nairobi.
In a survey of 100 residences in each of the cities, the mean household was Sh. 29,980
in Nakuru and Sh. 28,650 in Nairobi. From other sources, it is known that the
population standard deviations of households’ incomes are Sh. 4,740 in Nakuru and
Sh. 5,365 in Nairobi.
(a) At the 5% significance level, can it be concluded that the mean household income in
Nakuru exceeds that of Nairobi?
(b) Estimate with 90% confidence level, the difference in means between the mean
household income in Nakuru and that of Nairobi?
2. The mean height of 50 male students who showed above average participation in
college athletics was 68.2 inches with a standard deviation of 2.5 inches, while 50
male students who showed no interest in such participation had a mean height of 67.5
inches with a standard deviation of 2.8 inches. Test the hypothesis that male student
who participate in college athletics are taller than the other male students at a
significance level of 5%