Process statistics

Process Capability for Non-Normal Data: Percentiles, Box-Cox and What Ppk Means for Skewed Readings

Kitstead Labs · Engineering reference · Synthetic worked example

Ppk divides the distance to the specification limit by three standard deviations, and that is only a statement about the fraction out of specification when the readings are normal. Flatness, runout, roughness and other quantities that cannot go below zero are often skewed, with an upper tail longer than the normal one. This guide explains the two standard remedies, the percentile method and the Box-Cox transformation, and the Z-score method that some software uses by default, and works all of them on one synthetic set of 60 flatness readings that can be pasted into the site's calculators.

Quick answer

The normal Ppk, (USL − mean)/(3s), places the 99.865th percentile at the mean plus three standard deviations. For moderately skewed readings with a long upper tail, such as the example below, that point is too low and the normal Ppk overstates capability. The percentile method fits a distribution and uses its percentiles instead: PPU = (USL − X0.5)/(X0.99865 − X0.5) [M1]. The Box-Cox method transforms the readings and the limit with a power λ chosen from the data and computes Ppk on the transformed scale [N1][N2]. In the example below, 60 flatness readings with an upper limit of 60 µm give a normal Ppk of 1.634, a Weibull percentile Ppk of 1.431, a Box-Cox Ppk of 1.068 and a lognormal Ppk of 0.882; none of the three non-normal models is rejected by the usual fit checks, yet their estimates of the fraction above 60 µm run from 12 to about 4,100 parts per million. The readings were drawn from a distribution whose true Ppk is about 1.06. In this example the choice of model and method decides whether the index clears 1.33, and 60 readings are not enough to check the tail near the limit, so report the model and the method with the index.

Why the normal assumption matters for capability

For a normal distribution, 99.865 % of the population lies below the mean plus three standard deviations, so a PPU of 1 means that the 99.865th percentile sits exactly on the upper limit and about 1,350 parts per million exceed it. Every familiar threshold rests on that correspondence: 1.33 means the limit is about four standard deviations from the mean, with about 33 parts per million beyond it, and the conversion from an index to a defect rate in the sigma level guide is the same normal tail read further out. The site's Process Capability Calculator does not make that conversion, because it needs a known distribution shape.

A quantity bounded at zero, with an upper limit only, is usually skewed to the right: most parts are close to the bound and a few run long. For moderately skewed data like these, the mean plus three standard deviations usually falls short of the real 99.865th percentile, and the normal Ppk is then too high. That is not a law: a very long tail can inflate s so much that the mean plus 3s lands above the real percentile, and the normal Ppk is then too low. Either way the index is still arithmetic that anyone can repeat; what fails is the meaning that 1.33 carries.

First, check that the data are one process

Skewed-looking data can be two normal processes mixed: a tool change halfway through, two fixtures, or a shift in the mean. A transformation does not repair that, and if the mix of states changes, an index computed from the pooled readings will not predict what comes next. Before fitting anything, plot the readings in collection order on an individuals and moving range chart (see the I-MR chart guide and the run rules guide, which notes that skewed data put more points in one tail than the zone rules expect), and ask whether there is a physical reason for skew: a lower bound at zero, a one-sided limit, a mechanism that adds but cannot subtract.

Only then is the question which distribution describes the stable process, and that question is about the upper tail, where the data are thinnest.

The percentile method

The percentile method keeps the definition of Ppk as "distance to the limit over the spread to the tail" but takes the median and the tail points from a distribution fitted to the readings rather than from the mean and three standard deviations. With X0.00135, X0.5 and X0.99865 the 0.135th, 50th and 99.865th percentiles of the fitted distribution, Minitab's ISO method computes [M1]:

PPU = (USL − X0.5) / (X0.99865 − X0.5)

PPL = (X0.5 − LSL) / (X0.5 − X0.00135)

Ppk = min(PPU, PPL), and with both limits Pp = (USL − LSL) / (X0.99865 − X0.00135)

For a normal distribution X0.5 is the mean and X0.99865 − X0.5 is three standard deviations, so the formulas give the usual indices. NIST's e-Handbook describes a related family of percentile indices, Cnp, Cnpk and Cnpm [N1]. Its Cnpk divides the distance from the median to the nearer limit by half the whole width X0.99865 − X0.00135, the same denominator on both sides, rather than by the distance from the median to the tail on that side, so for skewed data it gives a different number; NIST also notes that some authors use the 0.5th and 99.5th percentiles instead [N1].

In practice the percentiles come from a model. A sample percentile can be computed without one, but on average it takes about 740 readings before even one of them lies beyond the 99.865th percentile (1/0.00135); with 60 readings the largest one sits, on average, near the 98th percentile of the population (60/61), so 60 readings cannot estimate the 99.865th percentile with any precision without a model. The fitted distribution fills that gap, which is why the answer depends on the distribution chosen.

Box-Cox: transform the readings and the limit

The Box-Cox transformation of a positive reading x is [N2]

x(λ) = (x^λ − 1)/λ for λ ≠ 0, and x(λ) = ln x for λ = 0.

λ = 1 leaves the shape unchanged, λ = 0.5 is a square root and λ = 0 a logarithm; values below 1 pull in a long upper tail. NIST chooses λ by maximum likelihood, maximizing

f(x, λ) = −(n/2) ln[Σ(x_i(λ) − mean of x(λ))² / n] + (λ − 1) Σ ln x_i

and gives an approximate confidence interval for λ as the set of values whose f lies within half the 95 % chi-square value with one degree of freedom (1.92) of the maximum [N2]. The transformation is increasing for every λ, so a reading below the limit stays below the transformed limit, and the index is computed on the transformed scale:

PPU = (USL(λ) − mean of x(λ)) / (3 × standard deviation of x(λ))

Because the transformed readings are treated as normal, the within-process Cpk can be computed the same way from the moving ranges of the transformed readings; Minitab reports both overall and within-process indices for a transformation [M3][M4]. Two details make results differ between programs. Minitab chooses λ by a different criterion: the value between −5 and 5 that minimizes the standard deviation of the transformed data, standardized by the geometric mean of the readings so that different values of λ can be compared, with the standard deviation estimated for individual readings from the average moving range [M5]. By default it then "rounds the optimal lambda to 0.5 or the nearest integer" [M6]. NIST's worked example tabulates the likelihood from −2.0 to 1.9 in steps of 0.1 [N2]. The criteria can land on different values of λ for the same data, and in the example below a change from λ = 0.288 to λ = 0.5 is worth 0.15 in Ppk.

The Z-score method

Minitab's default for a fitted non-normal distribution is neither of the above. It computes the probability that a part falls below the upper limit, p = P(X ≤ USL), from the fitted distribution, converts that probability to a standard normal value and divides by 3 [M1][M2]:

PPU = Φ⁻¹(P(X ≤ USL)) / 3, and PPL = −Φ⁻¹(P(X ≤ LSL)) / 3

where Φ⁻¹ is the inverse of the standard normal distribution, the z value in the statistical tables guide. A Z-score PPU of 1.33 means the fitted model puts the same fraction beyond the limit as a normal process with PPU 1.33, about 33 parts per million. The percentile PPU says how far the limit is from the median in units of the median-to-tail distance. For a normal distribution the two agree; for a skewed one they differ even with the same fitted model, and the report should say which was used. The Box-Cox Ppk in the previous section is a Z-score index, since it treats the transformed readings as normal.

Worked example: flatness of machined plates, upper limit 60 µm

The readings are synthetic flatness values in micrometers for 60 machined plates, rounded to 0.1 µm and listed in collection order. The specification has an upper limit only, USL = 60 µm. They were drawn from a gamma distribution with shape 5 and scale 4 µm, which is none of the models fitted below; its true 99.865th percentile is 57.57 µm, its true percentile Ppk 1.06, its Z-score Ppk 1.05 and its true fraction above 60 µm 857 parts per million. This sample was chosen as one in which the normal and Weibull indices clear 1.33 and the Box-Cox index does not, which happens in about half of all 60-reading samples from this distribution (simulation on this page; the code and seeds are in the notes). No reading lies outside the I chart limits (upper limit 45.43 µm). One moving range, the jump from 6.4 to 43.3 µm, is above the moving range chart's upper limit of 33.73 µm: a long upper tail produces large jumps now and then, so a single moving-range signal on skewed data is weak evidence of a process change, though it is still worth a look at that part.

Readings 1 to 60 in µm, in order: 14.1, 25.9, 12.2, 11.1, 28.1, 20.9, 15.0, 34.6, 11.1, 32.4, 33.6, 14.0, 19.7, 21.8, 16.6, 15.4, 33.1, 21.5, 10.8, 18.5, 12.7, 13.9, 23.1, 10.6, 13.5, 12.5, 8.6, 27.3, 7.1, 32.2, 24.2, 17.8, 39.6, 12.7, 16.9, 10.8, 23.0, 12.9, 22.3, 16.5, 16.1, 11.6, 10.0, 8.4, 21.6, 6.9, 16.1, 2.9, 10.3, 14.3, 8.8, 16.7, 19.9, 20.5, 25.3, 6.4, 43.3, 14.1, 22.5, 13.7.

The same readings in the time,status form that the Weibull calculator accepts, every row marked F:

time,status
14.1,F
25.9,F
12.2,F
11.1,F
28.1,F
20.9,F
15.0,F
34.6,F
11.1,F
32.4,F
33.6,F
14.0,F
19.7,F
21.8,F
16.6,F
15.4,F
33.1,F
21.5,F
10.8,F
18.5,F
12.7,F
13.9,F
23.1,F
10.6,F
13.5,F
12.5,F
8.6,F
27.3,F
7.1,F
32.2,F
24.2,F
17.8,F
39.6,F
12.7,F
16.9,F
10.8,F
23.0,F
12.9,F
22.3,F
16.5,F
16.1,F
11.6,F
10.0,F
8.4,F
21.6,F
6.9,F
16.1,F
2.9,F
10.3,F
14.3,F
8.8,F
16.7,F
19.9,F
20.5,F
25.3,F
6.4,F
43.3,F
14.1,F
22.5,F
13.7,F

Step 1: the normal indices. Pasting the readings into the Process Capability Calculator with USL 60 and no LSL gives a mean of 17.9667 µm, s = 8.5722 µm, Cpk 1.531 and Ppk 1.634. Read as a normal process, the 99.865th percentile is 17.9667 + 3 × 8.5722 = 43.68 µm and the fraction above 60 µm is about 0.5 parts per million.

Step 2: is the normal model plausible? The median, 16.1 µm, is below the mean, and the largest reading, 43.3 µm, lies 2.96 standard deviations above the mean while the smallest, 2.9 µm, lies only 1.76 below it. A normal probability plot of the readings bends upward at the top, and an Anderson-Darling test rejects normality at the 1 % level. The skew has a physical reason: flatness cannot be negative.

Step 3: Weibull, percentile and Z-score. The Weibull Analysis Calculator was written for failure times, but its maximum-likelihood fit works for any positive readings when every row is marked F (failure), with no suspensions; "time" and "life" in its output then mean micrometers of flatness. With the default maximum-likelihood method and a percentile of 99.865 it reports β = 2.247, η = 20.34 and a B99.865 life of 47.13; with a percentile of 50, a B50 life of 17.28. The percentile PPU is (60 − 17.28)/(47.13 − 17.28) = 1.431. For the Z-score index, the fraction above the limit is exp[−(60/η)^β], about 1.155 × 10⁻⁵ or 12 parts per million (the calculator's reliability at t = 60 shows 0.00 % because it rounds to two decimals); Φ⁻¹(1 − 1.155 × 10⁻⁵) ≈ 4.233, so PPU = 1.411. These two numbers are worked from the unrounded β and η; the displayed β = 2.247 and η = 20.34 give 4.232 and the same PPU.

Step 4: lognormal. A lognormal model is a normal model for ln x, so the capability calculator can fit it: paste the natural logarithms of the readings and enter USL = ln 60 = 4.0943. It reports Ppk 0.882 and Cpk 0.815. The Z-score fraction above 60 µm is about 4,100 parts per million; the model's 99.865th percentile, exp(mean of ln x + 3 × s of ln x), is 71.63 µm, and the percentile PPU is 0.791. Minitab estimates the lognormal σ by maximum likelihood, dividing by n rather than n − 1, which raises the Z-score Ppk to 0.889.

Step 5: Box-Cox. The likelihood above is largest at λ = 0.288 (0.3 on NIST's 0.1 grid), and the 95 % interval for λ runs from −0.10 to 0.71. Raise every reading and the limit to the power 0.288 (60^0.288 = 3.2517) and paste the results into the capability calculator: it reports Ppk 1.068 and Cpk 0.974. Using x^λ instead of (x^λ − 1)/λ changes nothing, because the index does not change when every value is shifted and scaled by the same amount. The fraction above the limit on the transformed normal scale is about 680 parts per million, the back-transformed 99.865th percentile is 55.99 µm, and the percentile PPU is 1.102. Minitab's criterion, applied to these readings as M5 describes it, gives λ ≈ 0.20 rather than 0.288 (a calculation for this page, not a Minitab run), and rounding moves either value to a round number. As a check on sensitivity, take the two round values nearest the estimate: λ = 0 is the lognormal model of step 4, and with λ = 0.5 the square roots of the readings and √60 = 7.7460 give Ppk 1.220, Cpk 1.113 and about 130 parts per million.

Ppk, 99.865th percentile and fraction above 60 µm for each model fitted to the 60 flatness readings, with the values of the true distribution
Model99.865th percentile (µm)Ppk, percentilePpk, Z-scoreAbove 60 µm (ppm)
Normal43.681.6341.6340.5
Weibull47.131.4311.41112
Box-Cox, λ = 0.550.321.2911.220130
Box-Cox, λ = 0.28855.991.1021.068680
Lognormal71.630.7910.8824,100
True gamma57.571.0631.045857
0 0.02 0.04 0.06 0 10 20 30 40 50 60 70 80 Flatness (µm) Density (per µm) USL 60 µm Normal, 99.865 % point 43.7 µm Weibull, 99.865 % point 47.1 µm Lognormal, 99.865 % point 71.6 µm Readings (histogram)
Histogram of the 60 flatness readings with the fitted normal, Weibull and lognormal densities and the upper limit at 60 µm. The curves already differ within the range of the readings and imply very different upper tails; only one reading lies above 40 µm, and the 99.865th percentiles of the three models are 43.7, 47.1 and 71.6 µm.

Reading the results. The normal model is rejected and can be set aside. The other three are not: the Anderson-Darling test does not reject normality for the logarithms or for the λ = 0.288 transforms, even at the 15 % level, and the Weibull probability plot is close to a straight line (correlation 0.984). These are diagnostics, not a calibrated choice between models; the λ was itself picked from the same readings. They cannot settle the question that matters here: at 60 µm, beyond every reading, the three models disagree by a factor of more than 300 in the fraction out of specification, and only one reading lies above 40 µm. Box-Cox with the estimated λ happens to be closest to the true value in this example; that is a property of this sample and this distribution, not a general ranking of the methods.

0 −5 −10 −15 −0.5 0 0.5 1.0 1.5 Box-Cox λ Log-likelihood minus its maximum 95 % interval: −0.10 to 0.71 λ = 0 (log): Ppk 0.882 λ = 0.288: Ppk 1.068 λ = 0.5 (square root): Ppk 1.220 λ = 1 (none): Ppk 1.634
Box-Cox log-likelihood of the 60 readings against λ from −0.5 to 1.5. The maximum is at λ = 0.288; the dashed line 1.92 below it marks the 95 % interval for λ, −0.10 to 0.71. Ppk on the transformed scale is 0.882 at λ = 0 (the logarithm), 1.068 at the maximum, 1.220 at λ = 0.5 and 1.634 at λ = 1 (no transformation).

The interval for λ includes both the logarithm and the square root, so the data do not decide between them either, and the Ppk changes from 0.882 to 1.220 between those two values. A capability statement for these plates has to name the model, and if the decision is close, the uncertainty in the model belongs in the decision as much as the uncertainty in s does.

What 60 readings can tell you

The same calculation was repeated on 10,000 simulated sets of 60 readings from the same gamma distribution (simulation on this page; the code and seeds are in the notes). The true Ppk is 1.06 by the percentile method and 1.05 by the Z-score method, below 1.33.

Ppk in 10,000 simulated sets of 60 readings from the same distribution, by method
MethodMedian PpkMiddle 90 %Sets with Ppk ≥ 1.33
Normal1.511.21 to 1.8883 %
Weibull, percentile1.361.05 to 1.8056 %
Box-Cox, estimated λ1.030.81 to 1.418 %
Lognormal0.860.73 to 1.020.01 %

Two kinds of error are mixed here. The normal, Weibull and lognormal rows are biased: each fixes a tail shape that is not the gamma's, so whatever the sample they describe the wrong tail, and more readings would only make them more precisely wrong. The normal model, the one most often used without a check, clears 1.33 in five sets out of six. The Box-Cox row is close to the truth in the median but wide, because λ itself is estimated: its middle 90 % is about 0.6 wide, while the approximation in the Cpk confidence interval guide gives about 0.35 for a Ppk near 1.06 from 60 normal readings. The formulas in that guide assume normal readings and do not include the uncertainty of the model.

Common mistakes

  1. Reporting a normal Ppk for skewed readings. For a long upper tail it often overstates capability: in the example it reports 1.634 where the true value is about 1.06. Plot the readings on a normal probability plot before quoting the index.
  2. Transforming the readings but not the limit. A Box-Cox Ppk compares the transformed mean with the transformed limit. Comparing transformed readings with the limit in µm gives a meaningless number.
  3. Choosing the model because it passes a normality test. With 60 readings, several models pass. Choose on the physics of the characteristic and on history from more parts where it exists, and state the model with the result.
  4. Comparing indices from different programs or methods without saying which. Percentile and Z-score indices differ for the same fitted model, and a λ rounded to 0.5 gives a different Box-Cox index from the estimated λ. Report the method, the model and λ.
  5. Reading the 99.865th percentile off the sample. It takes about 740 readings, on average, before one lies beyond it. From 60 readings a sample percentile that far out is close to the largest reading or an interpolation near it, not an estimate of the tail.
  6. Transforming away instability. A mixture of two process states can look skewed and can be made to look normal. Check the control chart first; if the mix of states can change, an index from the pooled readings will not predict the next run.
  7. Quoting a within-process Cpk from a fitted non-normal distribution. Minitab's analysis with a fitted non-normal distribution "yields overall capability indices" only [M7]; a transformation to normal can report both overall and within-process indices, on the transformed scale [M3].

Using the tools and guides

The Process Capability Calculator computes the normal indices and, given transformed readings and a transformed limit, the lognormal and Box-Cox indices; the Weibull Analysis Calculator gives the Weibull fit and its percentiles when every reading is marked F. The λ search, the Anderson-Darling tests, the Weibull probability-plot correlation and the Z-score conversions in this guide are not in the calculators and were computed for this page. The Cpk vs Ppk guide explains the two standard deviations, the Cpk confidence interval guide the sampling uncertainty of a normal index, the Weibull analysis guide the Weibull fit and probability plot, and the statistical tables guide the normal values used in the Z-score method.

Sources and further reading