Professional Documents
Culture Documents
Learning Objectives
Hypothesis
Hypothesis testing
testing is
is necessary
necessary
to:
to:
•determine
•determine when
when there
there is
is aa
significant
significant difference
difference between
between two
two
sample
sample populations.
populations.
•determine
•determine whether
whether there
there is
is aa
significant
significant difference
difference between
between aa
sample
sample population
population and
and aa target
target
value.
value.
IMPROVEMENT ROADMAP
Uses of Hypothesis Testing
Common Uses
Phase 1:
Measurement
Characterization
We
We think
think we
we see
see something…well,
something…well,
we
we think…err
think…err maybe
maybe itit is…
is… could
could
be….
be….
But,
But, how
how do
do we
we know
know for
for sure?
sure?
Hypothesis
Hypothesis testing
testing is
is the
the key
key by
by
giving
giving us
us aa measure
measure of of how
how
confident
confident we
we can
can be
be inin our
our
decision.
decision.
SO HOW DOES THIS HYPOTHESIS STUFF WORK?
Critical
Point
Statistic Value
We
We determine
determine aa critical
critical value
value from
from aa probability
probability table
table for
for the
the statistic.
statistic. This
This value
value is
is
compared
compared with
with the
the calculated
calculated value
value we
we get
get from
from our
our data.
data. IfIf the
the calculated
calculated value
value
exceeds
exceeds the
the critical
critical value,
value, the
the probability
probability ofof this
this occurrence
occurrence happening
happening duedue to
to
random
random variation
variation is
is less
less than
than our test α.
our test α.
SO WHAT IS THIS ‘NULL” HYPOTHESIS?
Population
Population Population
Population
Average
Average Variance
Variance
Many test statistics use α and others use α/2 and often it is confusing to tell
which one to use. The answer is straightforward when you consider what
the test is trying to accomplish.
If there are two bounds (upper and lower), the α probability must be split
between each bound. This results in a test statistic of α/2.
If there is only one direction which is under consideration, the error
(probability) is concentrated in that direction. This results in a test statistic
of α.
α α/2
Critical
Critical Critical Critical
Value Critical Critical
Examples
Examples
Value Value
Value
Value
Value
Examples
Examples
Ho:μμ11>μ
Ho:
Ho:μμ11=μ
>μ22 Ho:
Common Rare Rare
Common
Occurrence
Rare =μ22
Ho:σσ11<σ
Occurrence Occurrence Occurrence Occurrence
Ho:
Ho:σσ11=σ
<σ22 Ho: =σ22
Confidence
ConfidenceInt
Int
α Probability α/2 Probability 1−α Probability α/2 Probability
1−α Probability
Test
TestFails
Failsin
inone direction==αα
onedirection Test
TestFails
Failsin
ineither direction==α/2
eitherdirection α/2
Sample Average vs Sample Average
Coming up with the calculated statistic...
n1 = n2 ≤ 20 n1 + n 2 ≤ 30 n1 + n 2 > 30
2 Sample t
2 Sample Tau 2 Sample Z
(DF: n1+n2-2)
X1 − X 2 X1 − X 2
τ dCALC =
|
2 X1 − X 2 | t=
1 1 [( n − 1) s1 + ( n − 1) s2]
2 2 Z CALC =
σ1
2
σ 21
2
+
R1 + R 2 n1 n2 n1 + n2 − 2 +
n1 n2
Use these formulas to calculate the actual statistic for comparison with
the critical (table) statistic. Note that the only major determinate here is
the sample sizes. It should make sense to utilize the simpler tests (2
Sample Tau) wherever possible unless you have a statistical software
package available or enjoy the challenge.
Hypothesis Testing Example (2 Sample Tau)
Several changes were made to the sales organization. The weekly number
of orders were tracked both before and after the changes. Determine if the
samples have equal means with 95% confidence.
• Test:
• Ho: tauCALC< tauCRIT
• Ho: .06<.613 = true? (yes, therefore we will fail to reject the null hypothesis).
• Conclusion: Fail to reject the null hypothesis (ie. The data does not support the conclusion that there is a significant difference)
Hypothesis Testing Example (2 Sample t)
Several changes were made to the sales organization. The weekly number of orders
were tracked both before and after the changes. Determine if the samples have equal
means with 95% confidence.
+
• Test: n1 n2 n1 + n2 − 2
• Ho: tCALC< tCRIT
• Ho: .24 < 2.306 = true? (yes, therefore we will fail to reject the null hypothesis).
• Conclusion: Fail to reject the null hypothesis (ie. The data does not support the conclusion that there is a significant
difference
Sample Average vs Target (m0)
Coming up with the calculated statistic...
n ≤ 20 n ≤ 30 n > 30
Use these formulas to calculate the actual statistic for comparison with
the critical (table) statistic. Note that the only major determinate again
here is the sample size. Here again, it should make sense to utilize the
simpler test (1 Sample Tau) wherever possible unless you have a
statistical software package available (minitab) or enjoy the pain.
Sample Variance vs Sample Variance (s2)
Coming up with the calculated statistic...
R MAX ,n1 2
′ = Fcalc = s 2 MIN
MAX
FCALC
R MIN ,n2 s
Use these formulas to calculate the actual statistic for comparison with
the critical (table) statistic. Note that the only major determinate again
here is the sample size. Here again, it should make sense to utilize the
simpler test (Range Test) wherever possible unless you have a statistical
software package available.
Hypothesis Testing Example (2 Sample Variance)
Several changes were made to the sales organization. The number of receipts was
gathered both before and after the changes. Determine if the samples have equal
variance with 95% confidence.
p1 − p 0 p1 − p2
Z CALC = Z CALC =
p 0 (1 − p 0 ) ⎛ n1 p1 _ n 2 p2 ⎞ ⎛ n1 p1 _ n 2 p 2 ⎞ ⎛ 1 1⎞
⎜ ⎟ ⎜1 − ⎟⎜ + ⎟
n ⎝ n1 + n 2 ⎠ ⎝ n1 + n 2 ⎠ ⎝ n1 n2 ⎠
Use these formulas to calculate the actual statistic for comparison with
the critical (table) statistic. Note that in both cases the individual samples
should be greater than 30.
How about a manufacturing example?