Chapter 04 - Hypothesis Tests About The Mean and Proportion
Chapter 04 - Hypothesis Tests About The Mean and Proportion
Definition
A null hypothesis is a claim (or statement) about a
population parameter that is assumed to be true until it is
declared false.
TWO HYPOTHESES
Definition
An alternative hypothesis is a claim about a population
parameter that will be true if the null hypothesis is false.
REJECTION AND NONREJECTION
REGIONS
Figure 4.1 Nonrejection and rejection regions for the court
case.
TWO TYPES OF ERRORS
Definition
A Type I error occurs when a true null hypothesis is
rejected. The value of α represents the probability of
committing this type of error; that is,
α = P(H0 is rejected | H0 is true)
The value of α represents the significance level of the
test.
TWO TYPES OF ERRORS
Definition
A Type II error occurs when a false null hypotheses is not
rejected. The value of β represents the probability of
committing a Type II error; that is,
β = P (H0 is not rejected | H0 is false)
The value of 1 – β is called the power of the test. It
represents the probability of not making a Type II error.
FOUR POSSIBLE OUTCOMES FOR A TEST OF
HYPOTHESIS
TAILS OF A TEST
Definition
x
z where x
x n
The value of z calculated for x using this formula is also called
the observed value of z.
STEPS TO PERFORM A TEST OF
HYPOTHESIS USING THE P–VALUE
APPROACH
H1: μ ≠ 90
Step 2: The population standard deviation σ is known,
the sample size is small (n < 30), but the population
distribution is normal. We will use the normal distribution
to find the p–value and make the test.
SOLUTION
Step 3:
7
x 1.56524758 min utes
n 20
x 85 90
z 3.19
x 1.56524758
H1: μ < 10
Step 2: The population standard deviation σ is known, the
sample size is large (n > 30). Due to the Central Limit
Theorem, we will use the normal distribution to find the p–
value and perform the test.
SOLUTION
Step 3:
2.4
x .40
n 36
x 9.2 10
z 2.00
x .40
p-value = .0228
THE P-VALUE FOR A LEFT-TAILED
TEST.
SOLUTION
Step 4:
Since α = .01 is less than the p-value of .0228, we do
not reject the null hypothesis at this significance level.
Consequently, we conclude that the mean weight lost
within the first month of membership by the members of
this club is 10 pounds or more.
• Step 3: α = .025
• The < sign in the alternative hypothesis indicates that
the test is left-tailed
• Area in the left tail = α = .025
• The critical value of z is -1.96
FIGURE
SOLUTION
• Step 4:
80,000
x $16,000
n 25
x 288,000 300,000
z .75
x 16,000
SOLUTION
Step 5: This value of z = -.75 is greater than the critical
value of z = -1.96, and it falls in the rejection region. As a
result, we fail to reject H0.
Therefore, we can state that based on the sample
information, it appears that the mean net worth of families in
this city is not less than $300,000.
CLASS WORK 1
CLASS WORK 2
• Consider the following hypothesis test:
H 0 : 25
H1 : 25
• A sample of 40 provided a sample mean of 26.4. The
population standard deviation is 6.
• a. At α .01, what is your conclusion?
HYPOTHESIS TESTS ABOUT :
NOT KNOWN
1. The p-Value Approach
s 3
sx .44721360
n 45
x 63.4 65
t 3.578
sx .44721360
and df = n – 1 = 45 – 1 = 44
p-value < .001
FIGURE
CLASS WORK 1
• A random sample of 8 observations taken from a
population that is normally distributed produced a sample
mean of 44.98 and a standard deviation of 6.77.
• Find the critical and observed values of t and the ranges
for the p-value for each of the following tests of
hypotheses, using .05.
CLASS WORK 2
• A random sample of 14 observations taken from a
population that is normally distributed produced a sample
mean of 212.37 and a standard deviation of 16.35.
Find the critical and observed values of t and the ranges
for the p-value for each of the following tests of
hypotheses, using .10.
Critical value approach
EXAMPLE 3
The value of the test statistic t = 2.121 falls between the two
critical points, -2.898 and 2.898, which is the nonrejection
region. Consequently, we fail to reject H0.
As a result, we can state the difference between the
hypothesized population mean and the sample mean is so
small that it may have occurred because of sampling error.
EXAMPLE 4
The management at Dara salam Bank is always concerned
about the quality of service provided to its customers. With
the old computer system, a teller at this bank could serve, on
average, 22 customers per hour. The management noticed
that with this service rate, the waiting time for customers was
too long. Recently the management of the bank installed a
new computer system in the bank, expecting that it would
increase the service rate and consequently make the
customers happier by reducing the waiting time.
EXAMPLE 4
To check if the new computer system is more efficient
than the old system, the management of the bank took a
random sample of 70 hours and found that during these
hours the mean number of customers served by tellers
was 27 per hour with a standard deviation of 2.5. Testing
at the 1% significance level, would you conclude that the
new computer system is more efficient than the old
computer system?
SOLUTION
• Step 1: H0 : μ = 22
H1 : μ > 22
• Step 2: The population standard deviation σ is not known
and the sample size is large (n > 30). Consequently, we
will use the t distribution to perform the test.
SOLUTION
Step 3: Significance level = .01. The > sign in the
alternative hypothesis indicates that the test is right-tailed
and the rejection region lies in the right tail.
• Area in the right tail = α = .01
• df = n – 1 = 70 – 1 = 69
• The critical value for t for 69 df and .01 area in the right tail
is 2.382.
FIGURE
SOLUTION
Step 4: s 2.5
sx .29880715
n 70
x 27 22
t 16.733
sx .29880715
1. Use the t value from the last row (the row of ∞) in Table
V of Appendix C.
2. Use the normal distribution as an approximation to the t
distribution.
CLASS WORK 1
• Perform the following tests of hypothesis for data coming
form a normal distribution
CLASS WORK 2
Paint manufacturing company claims that the mean drying
time for its paints is not longer than 45 minutes. A random
sample of 20 gallons of paints selected from the
production line of this company showed that the mean drying
time for this sample is 49.50 minutes with a standard
deviation of 3 minutes. Assume that the drying times for
these paints have a normal distribution
a) Using a 1% significance level, would you conclude that the
company’s claim is true?
HYPOTHESIS TESTS ABOUT A POPULATION
PROPORTION: LARGE SAMPLES
Test Statistic
The value of the test statistic z for the sample proportion,
p̂
, is computes as
pˆ p pq
z where pˆ
pˆ n p̂
The value of p that is used in this formula is the one from the
null hypothesis. The value of q is equal to 1-p. The value of
z calculated for using the above formula is also called the
observed value of z.
EXAMPLE 1
According to a Nationwide Mutual Insurance Company
Driving While Distracted Survey conducted in 2008, 81% of
the drivers interviewed said that they have talked on their
cell phones while driving (The New York Times, July 19,
2009). The survey included drivers aged 16 to 61 years
selected from 48 states. Assume that this result holds true
for the 2008 population of all such drivers in the United
States. In a recent random sample of 1600 drivers aged 16
to 61 years selected from the United States, 83% said that
they have talked on their cell phones while driving.
EXAMPLE
Find the p-value to test the hypothesis that the current
percentage of such drivers who have talked on their
cell phones while driving is different from 81%. What
is your conclusion if the significance level is 5%?
SOLUTION
• Step 1: H0 : p = .81
H1 : p ≠ .81
• Step 2: To check whether the sample is large, we
calculate the values of np and nq:
np = 1600(.81) = 1296 > 5
nq = 1600(.19) = 304 > 5
Consequently, we will use the normal distribution
to find the p-value for this test.
SOLUTION
• Step 3: The ≠ sign in the alternative hypothesis indicates
that the test is two-tailed.
pq (.81)(.19)
pˆ .00980752
n 1600
pˆ p .83 .81
z 2.04
pˆ .00980752
p-value = .0749
FIGURE : THE REQUIRED P-
VALUE
SOLUTION
pq (.81)(.19)
pˆ .00980752
n 1600
pˆ p .83 .81
z 2.04
pˆ .00980752
SOLUTION
pq (.90)(.10)
pˆ .02449490
n 150
pˆ p .86 .90
z 1.63
pˆ .02449490
SOLUTION
• Step 5: The value of test statistic z = -1.63 is greater
than the critical value of z = -1.96, and it falls in the
nonrejection region. Therefore, we fail to reject H0.
We can state that the difference between the sample
proportion and the hypothesized value of the
population proportion is small, and this difference may
have occurred owing to the chance alone.
CLASS WORK 1
• A random sample of 500 observations produced a
sample proportion equal to .38.
• Find the critical and observed values of z for each of the
following tests of hypotheses using .05.
CLASS WORK 2
• Make the following hypothesis tests about p
CLASS WORK 3
• According to the U.S. Census Bureau, 11% of children in
the United States lived with at least one grandparent in
2009 (USA TODAY, June 30, 2011). Suppose that in a
recent sample of 1600 children, 224 were found to be
living with at least one grandparent. At a 5% significance
level, can you conclude that the proportion of all children
in the United States who currently live with at least one
grandparent is higher than .11?
• Use both the p-value and the critical-value
approaches.