Sample Hypothesis Test
Sample Hypothesis Test
H 0 : μ ≤μ0 H 0 : μ ≥μ0 H 0 : μ = μ0
H 1 :μ > μ0 H 1 :μ < μ0 H 1 :μ ≠μ0
3
D. Characteristics of the Null Hypothesis, H0,
S c i e n t i f i c
S t a t i s t i c a l
D e d u c t i v e i n f e r e n c e
h y p o t h e s i s
h y p o t h e s e s
R a n d o m s a m p l i n g
I n d u c t i v e
a n d e s t i m a t i o n o f
i n f e r e n c e
p o p u l a t i o n p a r a m e t e r
S t a t i s t i c a l
t e s t
8
III Two Statistics for Testing H0: = 0
A. t Test Statistic
X −μ0 X = ∑ X i /n
t=
σ̂ / n μ0 = hypothesized pop.m ean
9
B. Sampling Distribution of the t Statistic
ν = ∞ ( same
) as normal distribution)
ν = 12
f ( t )
ν = 4
ν
Var(t) =
ν −2
X = ∑ X i /n
X −μ0
z=
σ/ n μ0 = hypothesized pop.m ean
σ = know n population
standard deviation
n = sam ple size
D. Comparison of t and z
16
X = 2.62
n = 27
μ =? X = 2.98
n = 27
= 3.24
X N = 12,660
n = 27
= 2.90
X
X = 2.86
n = 27
n = 27
X = 3.21
n = 27
18
B. Five-Steps in Testing a Null Hypothesis for
the Registration Example
Step 1. State the statistical
hypotheses: H 0 : μ ≥3.10
H 1 :μ < 3.10
Step 2. Specify the test
statistic: t statistic because she wants
to test ≥ 3.10, is unknown,
the sample is random, and the
population distribution of X is
probably approximately normal
19
Step 3. Specify the sample
size: n = 27
and the sampling
distribution: t distribution with = n – 1 = 26,
because is unknown and must
be estimated, and the population
distribution of X is probably
approximately normal
Step 4. Specify the
significance level: = .05
20
Step 5. Obtain a random
sample of size n,
compute t, and
make a decision
for α = .05
f ( t )
–3 –2 –1 0 1 2 3
Critical
value = –1.706
Reject
H Don't reject H
0
0
1 2.9 0.00
2 2.7 0.04
3 2.4 0.25
. . .
27 2.5 0.16
∑ X i = 78.3 ∑( X i − X )2 = 2.36
∑ X i 78.3 ∑ X i − X )2 2.36
X= = = 2.90 σ̂ = = = 0.3013
n 27 n −1 27 −1
24
X −μ0 2.90−3.10
−0.20
t= = = = −3.449
σ̂ / n 0.3013/ 27 0.0580
ν = n −1= 27 −1= 26
−t.05,26 = −1.706
25
Critical region
for α = .05
f ( t )
–3 –2 –1 0 1 2 3
Critical
value = –1.706
Reject
H Don't reject H
0
0
A. One-Tailed Test
1. Critical region is in either the upper or
lower tail of the sampling distribution.
27
Critical region
f ( t )
α = .05
–3 –2 –1 0 1 3
2
t
.05, 26
= 1.706
Don't reject
H 0 Reject H 0
28
B. Two Tailed Test
f ( t )
α /2 = .025 α /2 = .025
–3 –2 –1 0 1 2 3
– t = – =
.05/2, 26
2.056 t 2.056
.05/2, 26
H H
0 0
30
D. Merits of One- and Two-Tailed Tests
31
C. Correct Acceptance and Correct Rejection
X .05 = μ0 + t.05,26σ̂ / n
32
2. Minimum reduction in registration time that
would
warrant changing to the new procedure
μ0 −μ ′ = 3.10−2.95= nine m inutes
33
4. t statistic for computing the probability of a Type II
error, , and power, 1 –
X .05 −μ ′
t=
σ̂ / n
3.001−2.9500.051
= = = 0.880
0.3013/ 27 0.058
34
Sampling distribution
under H
0
1 – α = .95
α = .05
t
f ( t )
μ = 3.1
Sampling distribution 0
^
1– = .81
β
β = .19
'
μ = 2.95
35
0
Table 2. Probabilities Associated with the Decision Process
True Situation
μ ≤ 3.10
^
1 – α = .95 β = .19
Researcher’s
Decision
μ > 3.10
^
α = .05 1 – β = .81
36
E. Factors that determine the probability of a
Type II error, and power, 1 –
1. Level of significance,
37
5. Simple way to increase power: increase the
sample size.
d = |μ −μ0 |/σ
One-Sided Two-Sided
Hypothesis, Hypothesis,
Effect 1 −β 1 −β
Size,
d
C. Reporting p Values
40
2. TDIST function
TDIST(x,deg_freedom,tails)
TDIST(3.449,26,1)