Automated capability analysis: let the data pick the model
An automated capability analysis runs the model selection step of a capability study for you. It fits the normal distribution, several nonnormal distributions and the Box-Cox and Johnson transformations to your data, rules out the ones that do not fit, picks the best of the rest by a stated rule, and reports Ppk and the expected PPM out of specification with that model. It saves time, but it does not replace a look at the data and at what the candidates say about the tail.
When to use it
- You run many capability studies on characteristics whose shape you do not know in advance, for example during a production part approval with dozens of dimensions.
- The data may or may not be normal, and you want a consistent, documented rule for choosing the model instead of a choice made case by case.
- You want to see in one table how much the capability estimate depends on the model.
- For a single important characteristic, it is a good first pass; follow it with individual distribution identification and the probability plots.
How it works
A typical automated procedure has five steps. Details vary between programs; this is the logic.
- Fit the candidates. Normal, lognormal, exponential, Weibull, gamma and others by maximum likelihood; Box-Cox with λ estimated and rounded; Johnson with its family chosen from the data.
- Test each fit. Compute the Anderson-Darling statistic and its p-value. For a transformation, test the transformed values for normality.
- Screen. Drop every candidate with p below a cutoff, commonly 0.05.
- Choose. Among the survivors, keep the normal distribution if it passed; otherwise take the one with the best fit (smallest A², or largest p), preferring a simpler model when two are close.
- Report capability with the chosen model: expected PPM beyond each limit and Ppk. To compare candidates on the same footing, Ppk can be computed from the expected fraction out of specification, Ppk = Φ⁻¹(1 − p)/3, which for a transformation equals the normal Ppk on the transformed scale.
Example
A stamping press punches mounting holes in brackets. The burr height must not exceed 60 µm (USL = 60, natural lower bound 0). These are 30 brackets, in µm:
39.5, 11.0, 35.9, 5.7, 17.4, 15.7, 13.5, 23.0, 14.6, 22.7, 17.2, 17.3, 2.9, 22.8, 44.5, 16.8, 19.8, 7.7, 10.6, 32.5, 39.8, 14.5, 4.8, 23.0, 30.8, 10.6, 14.6, 3.9, 7.1, 11.1
The mean is 18.38 µm and the standard deviation 11.26 µm. The candidates (distribution p-values from simulation; transformation p-values from the normality test on transformed values):
| Candidate | A² | P | Expected PPM above 60 µm | Ppk |
|---|---|---|---|---|
| Normal | 0.819 | 0.030 | 85 | 1.25 |
| Exponential | 2.147 | 0.006 | 38,197 | 0.59 |
| Lognormal | 0.384 | 0.40 | 21,096 | 0.68 |
| Weibull (shape 1.74, scale 20.69) | 0.283 | 0.66 | 1,699 | 0.98 |
| Gamma (shape 2.59, scale 7.09) | 0.238 | 0.80 | 5,343 | 0.85 |
| Box-Cox, λ = 0.5 (optimum 0.33) | 0.275 | 0.64 | 2,714 | 0.93 |
| Johnson SB | 0.229 | 0.79 | 3,328 | 0.91 |
Screen: the normal (p = 0.030) and the exponential (p = 0.006) are out. Choose: five candidates remain. The gamma has the largest p-value among the distributions and is a simple two-parameter model for a positive, right-skewed quantity, so it is the choice. Its result: Ppk = 0.85, with about 5,300 PPM of brackets above 60 µm.
How to read the results
- The normal model would have passed the process. With Ppk 1.25 and 85 PPM it looks nearly capable. It fails the fit test, and every model that does fit gives a much lower Ppk.
- The conclusion is robust, the decimals are not. The five acceptable models give Ppk from 0.68 to 0.98 and PPM from about 1,700 to 21,000. All of them say the process is not capable at 1.33. That is the finding; 0.85 is the best single estimate.
- The tail is where models disagree. All five fit the 30 values well; they differ beyond the largest observation (44.5 µm), where the limit is. More data, or a physical argument for one family, narrows the choice.
- Next step. Burr height grows with punch wear and die clearance. Plot it against strokes since the last sharpening before changing the model or the limit.
Common mistakes
- Treating the selected model as proven. "Best fit among those tried" is a ranking, not a proof. Look at the probability plot of the chosen model.
- Letting the transformations win too easily. Box-Cox and Johnson are tuned to make the data look normal, so their normality p-values are optimistic compared with those of a fixed distribution.
- Running it on unstable data. No model fits a process that shifted halfway through. Check a control chart first.
- Hiding the comparison table. A report that shows only the chosen model hides how sensitive the answer is. Include the table, at least in an appendix.
Frequently asked questions
Why prefer the normal distribution when it fits?
Because the normal model is the most familiar, has the best-known estimators and matches how most customers expect capability to be reported. If it fits, there is little to gain from a more complex model.
Why not just pick the model with the highest p-value?
A higher p-value only means less evidence against the model. Among several models that fit, small differences in p are noise. Simplicity and physical plausibility are better tie-breakers.
Is the percentile method different from the Ppk shown here?
Yes, slightly. The percentile method uses the median and the 99.865th percentile of the fitted distribution; the Z method used in the table converts the expected PPM into a Ppk. For the gamma fit, the percentile method gives (60 − 16.08)/(71.53 − 16.08) = 0.79, against 0.85 from the Z method. See nonnormal capability analysis for the percentile method.
How many data do I need for the automated choice to be reliable?
Thirty values rule out the clearly wrong models, as here. Telling similar models apart in the tail takes 100 or more.