The purpose of this document is to provide detailed information on the formulas in the QI
Macros. This paper provides the formulas, a sample calculation and a histogram run in
the QI Macros using the same data provided.
USL LSL
6
USL X
CpU
3
X LSL
CpL
3
Cpk Min CpU , CpL
Pp
USL LSL
6
USL X
PpU
3
X LSL
PpL
3
Ppk Min PpU , PpL
Pp
(
USL-LSL
)
(6 * sigma estimator)
(
USL-LSL
)
(6 * standard deviation)
Ppk
CpU
PpU
(
USL-Xbar
)
(3 * sigma estimator)
CpL
(
USL-Xbar
)
(3 * standard deviation)
PpL
( Xbar - LSL )
(3 * sigma estimator)
( Xbar - LSL )
(3 * standard deviation)
Points to note:
Xbar = the average of the data points = X /n
Changing the spec limits, will change Cp and Pp and may change Cpk and Ppk
Cp and Cpk use sigma estimator because they assume your data represents a
sample of the population
Pp and Ppk use standard deviation because they assume your data represents the
total population
R
d2
s
c4
For n=1-4, use R/d2 formula; for n>4 use s/c4 formula
Definitions
Rbar = Average of the
ranges
d2 is a constant based on the
sample size
Sbar = Average of the
standard deviations
c4 is a constant based on the
sample size
Constant
d2
d2
d2
d2
c4
c4
c4
c4
c4
c4
c4
c4
c4
c4
Value
1.128
1.128
1.693
2.059
0.94
0.9515
0.9594
0.965
0.9693
0.9727
0.9754
0.9776
0.9794
0.981
Subgroup
Size
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Constant
c4
c4
c4
c4
c4
c4
c4
c4
c4
c4
c4
c4
c4
c4
Value
0.9901
0.9905
0.9908
0.9912
0.9915
0.9917
0.992
0.9922
0.9925
0.9927
0.9929
0.9931
0.9933
0.9935
0.9823
0.9835
0.9845
0.9854
0.9862
0.9869
0.9876
0.9882
0.9887
0.9892
0.9896
c4
c4
c4
c4
c4
c4
c4
c4
c4
c4
c4
15
16
17
18
19
20
21
22
23
24
25
40
41
42
43
44
45
46
47
48
49
50
c4
c4
c4
c4
c4
c4
c4
c4
c4
c4
c4
0.9936
0.9938
0.9939
0.9941
0.9942
0.9944
0.9945
0.9946
0.9947
0.9948
0.9949
USL Only
Cp = Cpk = CpU
Pp = Ppk = PpU
(# of non conforming)*1000000
(# of parts)
(LSL-Xbar)/sigest
(USL-Xbar)/ sigest
normsinv(1-(Expected PPM/1,000,000))
(Xbar-Target)/(3*sigest)
Sample Calculation
Let's perform calculations using the following sample data from Montgomery, Intro to
SPC, 4th Ed., pgs. 353-358. You can download this data as part of the QI Macros test
data at http://www.qimacros.com/testdata/SPCManufacturing.xls Open the
spreadsheet and click on the histogram tab.
Sample
S1
S2
S3
S4
S5
S6
S7
S8
S9
S10
S11
S12
S13
S14
S15
S16
S17
S18
S19
S20
Obs
1
265
268
197
267
346
300
280
250
265
260
200
276
221
334
265
280
261
250
278
257
Obs
2
205
260
286
281
317
208
242
299
254
308
235
264
176
280
262
274
248
278
250
210
Obs
3
263
234
274
265
242
187
260
258
281
265
246
269
258
265
271
253
260
254
265
280
Obs
4
307
299
243
214
258
264
321
267
294
283
328
235
263
272
245
287
274
274
270
269
Obs
5
220
215
231
318
276
271
228
293
223
277
296
290
231
283
301
258
337
275
298
251
Calculations
Calc
Formula
Calc
Value
( 346-200 )
6*(30.02/.94)
146
191.62
.762
( 346-200 )
(6 * 31.85)
146
191.10
.764
( 346-264.46 )
(3 * (30.02/.94)
81.54
95.81
.851
(264.46-200 )
(3 * (30.02/.94)
64.46
95.81
.673
Cp
(
Pp
USL-LSL
6*( SBar/c4 )
USL-LSL )
(6 *standard dev)
CpU
(
USL-Xbar
3 *( SBar/c4 )
CpL
( Xbar - LSL )
3 * ( SBar/c4 )
Cpk
Minimum of CpU and
CpL
.851 vs .673
.673
PpU
(
USL-Xbar
)
(3 * standard deviation)
( 346-264.46 )
3 * 31.85
81.54
95.55
.853
(
Xbar - LSL-)
(3 * standard deviation)
(264.46-200 )
3 * 31.85
64.46
95.55
.675
PpL
Ppk
Minimum of PpU and PpL
Actual
PPM
Est
PPM
.853 vs .675
3
100
(1NORMSDIST
(2.553) )*
1000000
+
NORMSDIST
(2.019) *
1000000
346 - 264.46
.675
30,000
1,000,000
21,768.4
+
5334.3
30,000
27,102.7
upper
(Zu)
USL-Ave
( SBar/c4 )
31.93
2.553
Z
lower
(Zl)
Z
bench
Target
LSL -Ave
( SBar/c4 )
200 - 264.46
31.93
-2.019
Z
target
normsinv(1-(Expected
PPM/1,000,000))
Defined by Customer or
Midpoint between
USL and LSL
ABS(Xbar-Target)
(3*sigest)
normsinv(1(.0267104)
(346 +200)
2
normsinv(.97329)
1.93
546
2
273
264.46 - 273
3*(30.02/.94)
8.54
95.81
.09
Since the standard deviation and sigma estimator were fairly close in value, the Cp and
Pp and Cpk and Ppk values were very similar.