Escolar Documentos
Profissional Documentos
Cultura Documentos
13 Chi-squared Test
and Proportion Test
2008-06-10 © SKF Group Slide 1 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Using Statistical Tools to analyse Data
2008-06-10 © SKF Group Slide 2 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
The Data Type is important in choosing a
Hypothesis Test
2008-06-10 © SKF Group Slide 3 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Analysis Matrix (Single X – Single Y)
X Data
Attribute Variable
Attribute
Proportion Defective,
Logistic Regression
Chi-squared
Y Data
Variable
Means/Medians Test,
Regression
t-Test, ANOVA
2008-06-10 © SKF Group Slide 4 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Hypothesis Tests Attribute Data
Attribute
Data
2 pop.
2008-06-10 © SKF Group Slide 5 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Chi-squared Test
2008-06-10 © SKF Group Slide 6 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Attribute Data
Discrete
• Rating Scales
• Scale Groupings
Insight into
Y = f(X1, X2, X3, ..., Xn)
2008-06-10 © SKF Group Slide 7 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
When to use Chi-squared
2008-06-10 © SKF Group Slide 8 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Example
2008-06-10 © SKF Group Slide 9 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Example
Got Hired
What’s the Y ? _____________ Attribute
Type of Data ? ______________
Age
What’s the X ? _____________ Attribute
Type of Data ? ______________
Chi-squared
What type of tool would you use ? ________________________
2008-06-10 © SKF Group Slide 10 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
The Hypothesis
2008-06-10 © SKF Group Slide 11 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Hypothesis for Example
2008-06-10 © SKF Group Slide 12 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Contingency Table
2008-06-10 © SKF Group Slide 13 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Step #1
Old 30 150
Young 45 230
2008-06-10 © SKF Group Slide 14 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Step #2
2008-06-10 © SKF Group Slide 15 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Step #3
Old
Young
How do we do that?
2008-06-10 © SKF Group Slide 16 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Step #3 Continued
Young 275
Young 45.3
____ 229.7
____ 275
Young -____
0.3 0.3
____ 275
Young .09
____ .09
____ 275
Young .002
____ .0004
____ 275
(Observed − Expected)2
χ2 =∑
Expected
2008-06-10 © SKF Group Slide 22 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Step #8
0.25
0.20
0.00
0 1 2 3 4 5 6 7 8 9 10
2008-06-10 © SKF Group Slide 23 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Another Example ...
Old 45 135
Young 45 230
2008-06-10 © SKF Group Slide 24 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Multiple Categories for each Attribute
Attribute Y
B1 B2 B3 B4 B5 . . .
A1
Attribute X
A2
A3
A4
A5
.
.
.
2008-06-10 © SKF Group Slide 25 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Chi-squared Assumptions
2008-06-10 © SKF Group Slide 26 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Analysing the Data in MINITAB
Y variable
X variable
2008-06-10 © SKF Group Slide 27 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Analysing the Data in MINITAB
2 45 230 275
45.33 229.67
p-value
2008-06-10 © SKF Group Slide 28 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Exercise - 1
2008-06-10 © SKF Group Slide 29 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Exercise - 2
Joint Parents 19 98
2008-06-10 © SKF Group Slide 30 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Exercise - 3
On-Time Late
70 11
Fed-Ex
UPS 46 9
Post Office 57 14
2008-06-10 © SKF Group Slide 31 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Exercise - 1: Answer
3 45 83 128
42.96 85.04
0.096 0.049
2008-06-10 © SKF Group Slide 32 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Exercise - 2: Answer
2 30 80 110
26.84 83.16
0.373 0.120
3 19 98 117
28.54 88.46
3.191 1.030
2008-06-10 © SKF Group Slide 33 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Exercise - 3: Answer
1 70 11 81
67.70 13.30
0.078 0.399
2 46 9 55
45.97 9.03
0.000 0.000
3 57 14 71
59.34 11.66
0.092 0.469
There is not a relationship between on time delivery and the shipment provider.
2008-06-10 © SKF Group Slide 34 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Marketing Application
What
What are
are your
your recommendations?
recommendations?
2008-06-10 © SKF Group Slide 35 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Chi-squared Summary
2008-06-10 © SKF Group Slide 36 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Proportion Test
2008-06-10 © SKF Group Slide 37 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Hypothesis Tests Attribute Data
Attribute
Data
2 pop.
2008-06-10 © SKF Group Slide 38 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Confidence Interval Estimate for Proportion
Example
Rule of Thumb:
Use the normal approximation
when np ≥ 10 and n(1 – p) ≥ 10.
In our case (p = 250/2000 =
0.125 and n= 2000), it’s OK.
The QA Manager can estimate with 95% confidence
that the proportion of SKU’s having errors is
between 11.05 % and 13.95%
2008-06-10 © SKF Group Slide 40 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
The Same Solution – But manually
0.125-1.96(0.007395) = 11.05%
2008-06-10 © SKF Group Slide 41 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Is this Proportion Higher than
Company Average of 11%?
2008-06-10 © SKF Group Slide 42 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Are Proportions from Two Samples Different?
2008-06-10 © SKF Group Slide 43 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
How to use One-sided Test?
2008-06-10 © SKF Group Slide 44 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test
Improve Power of Test with more Samples
2008-06-10 © SKF Group Slide 46 SKF (Group Six Sigma) 2.13 Chi-squared - Proportion Test