Hypothesis Testing For One Population
Hypothesis Testing For One Population
2
HYPOTHESIS TESTS
A statement made about a population for testing purpose is
called hypothesis.
H0: μ k
Ha: μ < k
Rejection area
z
-3 -2 -1 0 1 2 3
Critical
value
Right-tailed Test
2. If the alternative hypothesis contains the greater-than symbol
(>), the hypothesis test is a right-tailed test.
H0: μ k
Ha: μ > k
Rejection area
z
-3 -2 -1 0 1 2 3
Critical
value
Two-tailed Test
3. If the alternative hypothesis contains
1 the not-equal-to symbol
2
(), the hypothesis test is a two-tailed test.
H0: μ = k
Ha: μ k
Rejection area
Rejection area
z
-3 -2 -1 0 1 2 3
Critical Critical
value value
Example of STATING A
HYPOTHESIS
Green marketing is
a practice whereby
Yes No
Z distribution T- distribution
HYPOTHESIS TESTING
FOR THE MEAN (
KNOWN)
Hypothesis Testing Approach
Two approaches
2. p-value approach
24
Critical Value Approach (CVA)
Decision Rule Based on Rejection Region
To use a rejection region to conduct a hypothesis test, calculate the
standardized test statistic, z. If the standardized test statistic
1. is in the rejection region, then reject H0.
2. is in the non-rejection region, then fail to reject H0.
Non-rejection area
Non-rejection area
(Failed to reject Ho).
(Failed to reject Ho).
Rejection region
Rejection region
(Reject Ho.)
(Reject Ho.)
z Non-rejection area
z
z < z0 z0 0 0 z0 z > z0
(Failed to reject Ho).
Left-Tailed Test Right-Tailed Test
Rejection region Rejection region
(Reject Ho.) (Reject Ho.)
z
z < z0 z0 0 z0 z > z0
Two-Tailed Test
Step for Hypothesis Testing Using CVA
In Words In Symbols
1. State the claim mathematically and
verbally. Identify the null and State H0 and Ha.
alternative hypotheses.
2. Specify the level of significance. Identify .
3. Determine the critical value(s) and the Decide whether the test is
rejection regions left, right or two tailed
x
4. Find the standardized test statistic. z , x
x n
5. Make a decision to reject or fail to
reject the null hypothesis. If z is in the rejection
region, reject H0.
6. Interpret the decision/ make a
conclusion Otherwise, fail to reject
H0.
Example :Hypothesis Testing(critical
value approach)
A local telephone company claims that the average length of a phone call is 8
minutes. In a random sample of 58 phone calls, the sample mean was 7.8 minutes.
Previous history show that the standard deviation length was 0.5 minutes. Is there
enough evidence to support this claim at = 0.05?
Solution
Given μ = 8, n = 58, xbar = 7.8 , σ = 0.5
STEP 1 H0: = 8 (Claim) Ha: 8
STEP 2 = 0.05.
z
z0 = 1.96 0 z0 = 1.96
29
Example : Make a Decision with p
Value
The P-value for a hypothesis test is P = 0.0256. What is your
decision if the level of significance is
a.) 0.05,
b.) 0.01?
a.) Because 0.0256 is < 0.05, you should reject the null
hypothesis.
b.) Because 0.0256 is > 0.01, you should fail to reject the null
hypothesis.
Determine of P-VALUE
After determining the hypothesis test’s standardized test statistic and
the test statistic’s corresponding area, do one of the following to find
the P-value.
a. For a left-tailed test, P = (Area in left tail).
b. For a right-tailed test, P = (Area in right tail).
c. For a two-tailed test, P = 2(Area in tail of test statistic).
FIND THE P-VALUE
Example:
The test statistic for a two-tailed test is z = 2.63. Find the P-value.
0.0043
z
2.63 0
The area to the left of z = 2.63 is 0.0043.
The P-value is 2(0.0043) = 0.0086
Example:
The test statistic for a right-tailed test is z = 1.56. Find the P-value.
P-value = 0.0594
The area to the right of z = 1.56
z
0 1.56 is 0.0594.
Step for Hypothesis Testing
Using P-Value
In Words In Symbols
1. State the claim mathematically and
State H0 and Ha.
verbally. Identify the null and
alternative hypotheses.
2. Specify the level of significance. Identify .
3. Determine the standardized test x μ
z
statistic. σ n
4. Find the area (p value) that
corresponds to z.
5. Make a decision to reject or fail to p value < , reject H0
reject the null hypothesis.
6. Interpret the decision in the context of
Continued.
the original claim.
Example : Hypothesis Testing using P-values
A manufacturer claims that its rechargeable batteries are good for an average
of more than 1,000 charges. A random sample of 100 batteries has a mean
life of 1002 charges. Given that = 14. Is there enough evidence to support
this claim at = 0.01?
Solution
Given μ=1000, n = 100, xbar=1002, σ=14
A manufacturer claims that its rechargeable batteries are good for an average
of more than 1,000 charges. A random sample of 100 batteries has a mean
life of 1002 charges. Given that = 14. Is there enough evidence to support
this claim at = 0.01?
36
Critical Values in a t-Distribution
Finding Critical Values in a t-Distribution
1. Identify the level of significance .
2. Identify the degrees of freedom d.f. = n – 1.
3. Find the critical value(s) using Table 5 in Appendix B in the row
with n – 1 degrees of freedom. If the hypothesis test is
a. left-tailed, use “One Tail, ” column with a negative sign,
b. right-tailed, use “One Tail, ” column with a positive sign,
c. two-tailed, use “Two Tails, ” column with a negative and a
positive sign.
FINDING CRITICAL VALUES
FOR t
Example:
Find the critical value t0 for a right-tailed test given = 0.01 and n =
24.
Use t-table with d.f. = 23 and = 0.01 . Because the test is a right-
tail test, the critical value is positive.
t0 = 2.500
FINDING CRITICAL VALUES
FOR t
Example:
Find the critical values t0 and t0 for a two-tailed test given = 0.10
and n = 12.
Use t-table with d.f. = 11 and =0.1. Because the test is a two-tail
test, one critical value is negative and one is positive.
In Words In Symbols
1. State the claim mathematically and State H0 and Ha.
verbally. Identify the null and alternative
hypotheses.
2. Specify the level of significance and Identify .
identify the degrees of freedom .
d.f. = n – 1.
3. Determine a critical values rejection
region(s). x μ
t
s
4. Find the standardized test statistic. n
5. Make a decision.
6. Interpret the decision in the context of the
original claim Continued.
Example
A local telephone company claims that the average length of a phone call is 8
minutes. In a random sample of 18 phone calls, the sample mean was 7.8
minutes and the standard deviation was 0.5 minutes. Is there enough
evidence to support this claim at = 0.05?
Solution
Given μ=8, n=18, xbar = 7.8, s = 0.5
1. H0: = 8 (Claim) Ha : 8
A local telephone company claims that the average length of a phone call is 8
minutes. In a random sample of 18 phone calls, the sample mean was 7.8
minutes and the standard deviation was 0.5 minutes. Is there enough
evidence to support this claim at = 0.05?
z
z0 = 2.110 0 z0 = 2.110
Using the d.f. = 9 row, you can determine that p > 0.1
and therefore fail to reject to H0.
t 0.45
0 0.45 z
At the 1% level of significance, there is not enough evidence to support the claim
that the rechargeable battery has a mean life of greater than 1000 charges.
Hypothesis Testing for
Proportions
Z-TEST FOR A POPULATION PROPORTION
The z-test for a population is a statistical test for a population
proportion. The z-test can be used when a binomial distribution is
given such that np 5 and nq 5.
pˆ μ pˆ pp
z ˆ
σ pˆ pq n
HYPOTHESIS TEST FOR
PROPORTIONS
Verify that np 5 and nq 5.
In Words In Symbols
1. State the claim mathematically and
verbally. Identify the null and alternative State H0 and Ha.
hypotheses.
2. Specify the level of significance. Identify .
3. Determine any critical values.
p̂ p
4. Find the standardized test statistic. z
pq n
5. Make a decision to reject or fail to reject
the null hypothesis.
6. Interpret the decision in the context of the
original claim.
Continued.
Example Hypothesis Test For Proportions
Statesville college claims that more than 94% of their graduates find
employment within six months of graduation. In a sample of 500 randomly
selected graduates, 475 of them were employed. Is there enough evidence to
support the college’s claim at a 1% level of significance?
Solution
Verify that the products np and nq are at least 5.
np = (500)(0.94) = 470 and nq = (500)(0.06) = 30
Continued.
Example continued…
Southville college claims that more than 94% of their graduates find
employment within six months of graduation. In a sample of 500 randomly
selected graduates, 475 of them were employed. Is there enough evidence to
support the college’s claim at a 1% level of significance?
Because the test is a right-tailed test and = 0.01, the critical value is
2.33.
p̂ p 0.95 0.94
z
pq n (0.94)(0.06) 500
0.94 Test statistic
0 2.33 z
The test statistic falls in
the nonrejection region, At the 1% level of significance, there is
so H0 is not rejected. not enough evidence to support the
college’s claim.
Example Hypothesis Test For Proportions (p-
value approach)
A cigarette manufacturer claims that one-eighth of the Malaysian adult
population smokes cigarettes. In a random sample of 100 adults, 5 are
cigarette smokers. Test the manufacturer's claim at = 0.05.
Continued.
Example continued:
At the 5% level of significance, there is not enough evidence to support the claim
that one-eighth of the Malaysian adult population smokes cigarettes.
Exercises
1. State the null hypothesis, h0 , and the alternative
hypothesis. Ha , in terms of the appropriate parameter (μ or
p) .
I.Fewer than 5% of adults ride the bus to work in bangi.
II.The mean number of cars a person owns in her lifetime is not more than ten.
III.About half of Malaysian prefer to live away from cities, given the choice.
V.Private universities' mean tuition cost is more than $20,000 per year.
52
2. The national institute of mental health published an article stating that in any one-year period, approximately 9.5 percent of
american adults suffer from depression or a depressive illness. Suppose that in a survey of 100 people in a certain town, seven of
them suffered from depression or a depressive illness. Conduct a hypothesis test to determine if the true proportion of people in that
town suffering from depression or a depressive illness is lower than the percent in the general adult american population.
X= ______7__________
n= ____100____________
Phat= _____0.07________
Decision:
53
Reason for the decision:
x= ________________
n= ________________
phat= _____________
Find the p-value . At α=0.05 , what is your decision? Reason for the decision:
54
Solution
I . H0:
Ha:
Ii. Alpha=_______.
Iii. Test statistic (if a t test is used, also report the df):
Iv. P-value:
V. Conclusion (both statistical conclusion and conclusion in the context of the problem)
55
4. A researcher wishes to test the claim that for a particular
manufacturer of cereal, the mean weight in its boxes of cereal is less
than 18 ounces. A sample of 36 boxes yields a sample mean weight
of 17.88 ounces. Assume that the population standard deviation is .
28 ounces. Let alpha=.05.
56
5. A study was done on 31 female patients following a new treatment for
cardio-vascular disease (cvd). Doctors measured the increase in exercise
capacity (in minutes) over a 6-week period. The conventional treatment
had produced an average increase of 2 minutes. Researchers wish to
claim that the new treatment will increase the mean exercise capacity
more than the conventional treatment. The data yielded and s=1.05. Let
=.05.
57