Beruflich Dokumente
Kultur Dokumente
Welcome to Analyze
“X” Sifting
Inferential Statistics
Hypothesis Testing ND P1
Hypothesis Testing ND P2
LSS Green Belt v11.1 MT - Analyze Phase 2 © Open Source Six Sigma, LLC
Hypothesis Testing Roadmap Attribute Data
Attribute Data
LSS Green Belt v11.1 MT - Analyze Phase 3 © Open Source Six Sigma, LLC
Sample Size and Types of Data
The hypotheses:
– H o: p = p 0
– H a: p p 0
(normal approximation) Z
pˆ p
0
p 1 p n
obs
0 0
LSS Green Belt v11.1 MT - Analyze Phase 5 © Open Source Six Sigma, LLC
Proportion versus a Target
4. Sample size:
LSS Green Belt v11.1 MT - Analyze Phase 6 © Open Source Six Sigma, LLC
Proportion versus a Target
LSS Green Belt v11.1 MT - Analyze Phase 9 © Open Source Six Sigma, LLC
Proportion vs Target Example: Solution
LSS Green Belt v11.1 MT - Analyze Phase 10 © Open Source Six Sigma, LLC
Proportion versus Target Example: Solution
X 1680
p̂ 0.84
n 2000
LSS Green Belt v11.1 MT - Analyze Phase 11 © Open Source Six Sigma, LLC
Comparing Two Proportions
The hypotheses:
H0: p1 - p2 = D
Ha: p1 – p2 = D
p̂1 p̂ 2 D
Zobs
p̂1 1 p̂1 n1 p̂ 2 1 p̂ 2 n 2
LSS Green Belt v11.1 MT - Analyze Phase 12 © Open Source Six Sigma, LLC
Sample Size and Two Proportions
a p1 p2 n
5% .01 0.79 0.8 ___________
5% .01 0.81 0.8 ___________
5% .02 0.08 0.1 ___________
5% .02 0.12 0.1 ___________
5% .01 0.47 0.5 ___________
5% .01 0.53 0.5 ___________
LSS Green Belt v11.1 MT - Analyze Phase 13 © Open Source Six Sigma, LLC
Proportion versus a Target
Sample Target
Proportion 1 Size Power Actual Power
0.85 188 0.9 0.901 451
The sample size is for each group.
LSS Green Belt v11.1 MT - Analyze Phase 14 © Open Source Six Sigma, LLC
Comparing Two Proportions
Calculate proportions:
X1 510
Before Improvement: 600 samples, 510 accurate p̂1 0.85
n1 600
X 2 212
After Improvement: 225 samples, 212 accurate p̂ 2 0.942
n 2 225
LSS Green Belt v11.1 MT - Analyze Phase 15 © Open Source Six Sigma, LLC
Comparing Two Proportions
LSS Green Belt v11.1 MT - Analyze Phase 16 © Open Source Six Sigma, LLC
Exercise
# Req's # Wrong
Boris 356 47
Igor 571 99
1. Who is worse?
2. Is the sample size large enough?
LSS Green Belt v11.1 MT - Analyze Phase 17 © Open Source Six Sigma, LLC
2 Proportion vs Target Example: Solution
X1 47
Boris p̂1 0.132
n1 356
X 2 99
Igor p̂ 2 0.173
n 2 571
LSS Green Belt v11.1 MT - Analyze Phase 18 © Open Source Six Sigma, LLC
2 Proportion vs Target Example: Solution
Now let’s see what the minimum sample size should be…
Stat > Power and Sample Size > 2 Proportions
LSS Green Belt v11.1 MT - Analyze Phase 19 © Open Source Six Sigma, LLC
Contingency Tables
This test generally works the best with five or more observations
in each cell. Observations can be pooled by combining cells.
LSS Green Belt v11.1 MT - Analyze Phase 20 © Open Source Six Sigma, LLC
Contingency Tables
observed expected
2
expected
Where “observed” is the sample frequency, “expected” is the
calculated frequency based on the null hypothesis and the
summation is over all cells in the table.
LSS Green Belt v11.1 MT - Analyze Phase 21 © Open Source Six Sigma, LLC
Test Statistic Calculations
Chi-square Test
r c (O ij E ij ) 2
χ
2 Where:
o
i 1 j1 E ij O = the observed value
(from sample data)
E = the expected value
(Frow * Fcol )
E ij r = number of rows
Ftotal c = number of columns
Frow = total frequency for that row
χ 2
critical χ 2
α, ν Fcol = total frequency for that column
Ftotal = total frequency for the table
From the Chi-Square Table
n = degrees of freedom [(r-1)(c-1)]
LSS Green Belt v11.1 MT - Analyze Phase 22 © Open Source Six Sigma, LLC
Contingency Table Example
1. Larry, Curley and Moe are order entry operators and you
suspect one of them has a lower defect rate than the others.
2. Ho: pMoe = pLarry = pCurley
Ha: at least one p is different
3. Use Contingency Table since there are 3 proportions.
4. Sample Size: To ensure a minimum of 5 occurrences were
detected the test was run for one day.
LSS Green Belt v11.1 MT - Analyze Phase 24 © Open Source Six Sigma, LLC
Contingency Table Example
0.306 * 45 = 13.8
0.694 * 38 = 26.4
LSS Green Belt v11.1 MT - Analyze Phase 25 © Open Source Six Sigma, LLC
Contingency Table Example
observed - expected 2
expected
LSS Green Belt v11.1 MT - Analyze Phase 26 © Open Source Six Sigma, LLC
Contingency Table Example
LSS Green Belt v11.1 MT - Analyze Phase 27 © Open Source Six Sigma, LLC
Contingency Table Example
Critical Value ~
• Like any other Hypothesis Test compare the observed statistic
with the critical statistic. We decide a = 0.05 so what else do we
need to know?
• For a chi-square distribution we need to specify n in a
Contingency Table:
n = (r - 1)(c - 1), where
r = # of rows
c = # of columns
• In our example we have 2 rows and 3 columns so n = 2
• What is the critical chi-square? For a Contingency Table all the
risk is in the right hand tail (i.e. a one-tail test); look it up in
MINITABTM using Calc>Probability Distributions>Chisquare…
2 5.99
χ crit
LSS Green Belt v11.1 MT - Analyze Phase 28 © Open Source Six Sigma, LLC
Contingency Table Example
Graphical Summary:
Since the observed chi-square exceeds the critical chi-square
we reject the null hypothesis that the defect rate is independent
of which person enters the orders.
0.5
0.4
0.3
Accept Reject
f
0.2 obs
2 7.02
0.1
0.0
0 1 2 3 4 5 6 7 8
chi-square crit 5.99
2
LSS Green Belt v11.1 MT - Analyze Phase 29 © Open Source Six Sigma, LLC
Contingency Table Example
Using MINITABTM ~
• Notice the row labels are not necessary and row and column
totals are not used just the observed counts for each cell.
LSS Green Belt v11.1 MT - Analyze Phase 30 © Open Source Six Sigma, LLC
Contingency Table Example
2 20 30 25 75
17.36 26.39 31.25
0.401 0.494 1.250
Total 25 38 45 108
6. Practical Conclusion: The defect rate for one of these stooges is different. In other
words, defect rate is contingent upon the stooge.
LSS Green Belt v11.1 MT - Analyze Phase 31 © Open Source Six Sigma, LLC
Exercise
• You are the quotations manager and your team thinks the
reason you do not get a contract depends on its complexity.
• You determine a way to measure complexity and classify
lost contracts as follows:
LSS Green Belt v11.1 MT - Analyze Phase 32 © Open Source Six Sigma, LLC
Contingency Table Example: Solution
Stat>Tables>Chi-Square Test
LSS Green Belt v11.1 MT - Analyze Phase 33 © Open Source Six Sigma, LLC
Contingency Table Example: Solution
LSS Green Belt v11.1 MT - Analyze Phase 34 © Open Source Six Sigma, LLC
Overview
LSS Green Belt v11.1 MT - Analyze Phase 35 © Open Source Six Sigma, LLC
Summary
LSS Green Belt v11.1 MT - Analyze Phase 36 © Open Source Six Sigma, LLC
IASSC Certified Lean Six Sigma Green Belt (ICGB)