Beruflich Dokumente
Kultur Dokumente
HYPOTHESE TESTING
Statistical Hypothesis
Decision: Ho is:
True False
Tests About
a
Population Mean
Case I: A Normal Population
With Known
Null hypothesis: H 0 : 0
x 0
Test statistic value: z
/ n
Case I: A Normal Population
With Known
Alternative Rejection Region
Hypothesis for Level Test
H a : 0 z z
H a : 0 z z
H a : 0 z z / 2 or z z / 2
Recommended Steps in
Hypothesis-Testing Analysis
1. Identify the parameter of interest and
describe it in the context of the
problem situation.
2. Determine the null value and state
the null hypothesis.
3. State the alternative hypothesis.
Hypothesis-Testing Analysis
1. Give the formula for the computed value
of the test statistic.
2. State the rejection region for the selected
significance level
3. Compute any necessary sample quantities,
substitute into the formula for the test
statistic value, and compute that value.
Hypothesis-Testing Analysis
H a : 0
z / 2
0
z / 2
0
/ n / n
Hypothesis Testing for a Mean: p-value
Approach
Z-stat is the test statistic to be used because we know its
distribution and so can calculate probabilities:
x − 2400 x − 2400
z − statvalue = = ~ N(0,1)
σx σ n
p − value = P(z ≥ z − statvalue)
p-value is probability that a random sample results in a test
statistic value as extreme (as far away from µ) in the direction
consistent with the intent of H0 as it is
p-value is also the probability of a Type I error: rejecting H0
when it is true
Example
Reject when average pipe exceeds code by a
considerable amount => a rejection region
Determined by Type I error: probability (α) of
rejecting the null hypothesis when it is true
Set rejection region so that α=.05
=> reject falsely 1 out of 20 times
H0: µ = µ0 H0: µ = µ0
H a: µ < µ0 (or Ha :µ > µ0 ) Ha µ ≠ µ0
Test Statistic: x − µ0 Test Statistic: x − µ0
z= z=
s n s n
Rejection region: z < − zα Rejection region: z > zα 2
(or z > zα when Ha: µ > µ0 )
A certain type of automobile is known to sustain no visible
damage 25% of the time in 10-mph crash tests. A modified
bumper design has been proposed in an effort to increase this
percentage. Let p denote the proportion of all 10-mph crashes
with this new bumper that result in no visible damage. The
hypotheses to be tested are H0: p=.25 (no improvement) versus
Ha: p>0.25. The test will be based on an experiment involving
n=20 independent crashes.
one-tailed test
0
n 2
( z / 2 z )
two-tailed test
0
Determine β
_
β ( µ ' ) = P( X < µ 0 + zα ∗ σ / n )
_
X − µ' µ0 − µ ' µ0 − µ '
=P < zα + = Φ zα +
σ / n σ/ n σ / n
Case II: Large-Sample Tests
Null hypothesis: H 0 : 0
x 0
Test statistic value: t
s/ n
The One-Sample t Test
curve for n – 1 df
when
0
Value of d corresponding to
specified alternative to
8.3
Tests Concerning
a
Population Proportion
A Population Proportion
Null hypothesis: H 0 : p p0
H a : p p0 p0 p z p0 (1 p0 ) / n
p(1 p) / n
p0 p z p0 (1 p0 ) / n
H a : p p0 1
p(1 p) / n
General Expressions for ( p)
P (type I) 1 B (c 1; n, p0 )
B ( p) B (c 1; n, p)
P - Value
The P-value is the smallest level of
significance at which H0 would be
rejected when a specified test procedure
is used on a given data set.
1. P-value
reject H 0 at a level of
2. P -value
do not reject H 0 at a level of
P - Value
P-value:
1 ( z ) upper-tailed test
P ( z ) lower-tailed test
2 1 ( z ) two-tailed test
P-Value (area)
P-value = 1 − Φ ( z )
Upper-Tailed
P -value = Φ ( z ) 0 z
Lower-Tailed
-z 0
P-value = 2[1 − Φ(| z |)] Two-Tailed
-z 0 z
P–Values for t Tests