Escolar Documentos
Profissional Documentos
Cultura Documentos
Mean of a Population
What is a Hypothesis?
A hypothesis is a claim
(assumption) about a
population parameter:
population mean
Example: The mean monthly cell phone bill
of this city is μ = $42
population proportion
Example: The proportion of adults in this
city with cell phones is p = .68
The Null Hypothesis, H0
H0 : μ 3 H0 : X 3
The Null Hypothesis, H0
(continued)
Begin with the assumption that the null
hypothesis is true
Similar to the notion of innocent until
proven guilty
Refers to the status quo
Always contains “=” , “≤” or “” sign
Conclusion: Reject or fail to reject Ho
Acceptance of a hypothesis just means that there is
not enough evidence to refute it.
Rejection implies that the evidence truly does refute
it.
The Alternative Hypothesis, H1
To prove a hypothesis in statistics, we generally
set up the opposite of the hypothesis and see if we
can reject it
e.g.: The average number of TV sets in U.S. homes is not
equal to 3 ( H1: μ ≠ 3 )
Challenges the status quo
Never contains the “=” , “≤” or “” sign
May or may not be accepted
Is generally the hypothesis that is believed (or
needs to be supported) by the researcher
Level of Significance,
H0: μ ≥ 3
H1: μ < 3
Lower tail test 0
Errors in Making Decisions
Type I Error
Reject null hypothesis when it is true
Considered a serious type of error
= P (type I Error)
Called level of significance of the test
Set by researcher in advance
Errors in Making Decisions
(continued)
Type II Error
Accepting the null hypothesis when it
false
β = P (type II Error)
In hypothesis testing, we generally want to
minimize , the probability of making a type I
error.
The value of can be reduced by adjusting the
critical region.
Decreasing generally causes to increase and
vice versa.
Increasing the sample size n will decrease both
and .
Outcomes and Probabilities
Actual Situation
Decision H0 True H0 False
Hypothesis
Tests for
Known Unknown
Z Test of Hypothesis for the
Mean (σ Known)
Convert sample statistic ( X ) to a Z test statistic
Hypothesis
Tests for
σ Known σ Unknown
X μ
Z
σ
n
Critical Value
Approach to Testing
For two tailed test for the mean, σ known:
Convert sample statistic ( X ) to test statistic (Z
statistic )
Determine the critical Z values for a specified
level of significance from a table or
computer
Decision Rule: If the test statistic falls in the
rejection region, reject H0 ; otherwise do not
reject H0
Two Tailed Tests
H0: μ = 3
There are two
H1: μ 3
cutoff values
(critical values),
defining the
regions of /2 /2
rejection
3 X
Reject H0 Do not reject H0 Reject H0
-Z 0 +Z Z
Lower Upper
critical critical
value value
Example
Test the claim that the true mean # of TV
sets in US homes is equal to 3.
(Assume σ = 0.8)
1. State the appropriate null and alternative
hypotheses
H0: μ = 3 H1: μ ≠ 3 (This is a two tailed test)
2. Collect the data and compute the test statistic
Suppose the sample results are
n = 100, Xbar = 2.84 (σ = 0.8 is assumed
known)
So the test statistic is:
Example
(continued)
X μ 2.84 3 .16
Z 2.0
σ 0.8 .08
n 100
= .05/2 = .05/2
= .05/2 = .05/2
X = 2.84 is translated
to a Z score of Z = -2.0
/2 = .025 /2 = .025
P(Z 2.0) .0228
.0228 .0228
P(Z 2.0) .0228
p-value
=.0228 + .0228 = .0456
-1.96 0 1.96 Z
-2.0 2.0
p-Value Example
(continued)
Compare the p-value with
If p-value < , reject H0
If p-value , do not reject H0
2.6832 ≤ μ ≤ 2.9968
μ X
Critical value
Upper Tail Tests
H0: μ ≤ 3
There is only one
critical value, since H1: μ > 3
the rejection area is
in only one tail
X μ
Critical value
Example: Upper Tail Z Test
for Mean ( Known)
A phone industry manager thinks that
customer monthly cell phone bill have
increased, and now average over $52 per
month. The company wishes to test this
claim. (Assume = 10 is known)
Xμ 53.1 52
Z 0.88
σ 10
n 64
Example: Find Rejection Region
(continued)
Suppose that = .10 is chosen for this test
= .10
Standard Normal
What is Z given = 0.10? Distribution Table (Portion)
.90 .10
Z .07 .08 .09
= .10
1.1 .8790 .8810 .8830
.90
1.2 .8980 .8997 .9015
z 0 1.28
1.3 .9147 .9162 .9177
Critical Value
= 1.28
Example: Decision and Conclusion
(continued)
Reach a decision and interpret the result:
Reject H0
= .10
σ Known σ Unknown
X μ
t n-1
S
n
From the five steps of hypothesis testing, when
dealing with hypothesis test with unknown σ,
which most of the time occurs, the main
different is calculating the test statistics and
determining the critical region
We have to compute s for calculating t statistics
We use tdf, for one sided test and tdf,/2 for two sided
test where df = n-1
Example: One sided t test
Nickel-hydrogen (Ni-H) batteries use a nickel plate as the
anode. A critical quality characteristic is the plate’s porosity
which control the interface of the anode with the potassium
hydroxide electrolyte solution. For this particular battery
cell, the manufacturer has set a target porosity of 80% as
measured by a standard test. The porosity is essentially
controlled by sintering process at high temperature. The
production people have expressed concerns that the plate
is being overfired and thus is not sufficiently porous
Data have been collected as follows: 79.1 79.5 79.3 79.3
78.8 79.0 79.2 79.7 79.0 79.2
Solution
1. Stating hypotheses:
Ho: ≥ 80
Ha: < 80
X μ
t n -1
s
n
n
1 792.1
x
n
i 1
xi
10
79.21
n i 1 yi2 (i 1 yi ) 2
n n
s2 0.06767
n ( n 1)
s 0.26
4. Conclusion:
t statistics = -9.60 is less than t critical region, we may
reject Ho
5. Conclusion in English:
We have enough evidence to suggest that the true
mean porosity is less than 80% which supports the
contention that the sintering process is overfiring the
plate
Checking the Confidence
Interval
The confidence interval is:
s
x t df , / 2 79.21 2.262 * 0.0822
n
[79.02, 79.40]
P (T < -9.60) = 0