Individual distribution identification: which distribution fits?
Individual distribution identification fits several probability distributions to one column of data and shows how well each one fits, so you can choose a model for a capability study or a reliability calculation. For each candidate it gives the estimated parameters, an Anderson-Darling goodness-of-fit statistic with a p-value, and a probability plot. The best choice is a distribution that fits well and also makes physical sense.
When to use it
- A normality test rejected the normal distribution and you need another model before running a nonnormal capability analysis.
- The data have a natural boundary (zero, 100%) and you expect skewness: roughness, runout, impurities, cycle times, strengths.
- You want to know whether a transformation (Box-Cox or Johnson) would be needed at all.
- You have at least 30 values from a stable process, preferably 50 to 100. With fewer, several distributions will fit equally well.
How it works
- Fit each candidate by maximum likelihood. Common candidates are the normal, lognormal, exponential, Weibull, gamma, smallest and largest extreme value, logistic and loglogistic, plus three-parameter versions with a threshold (a shifted lower bound).
- Compute the Anderson-Darling statistic for each fit. With the data sorted and F the fitted cumulative distribution:
A² = −n − (1/n) Σ (2i − 1) [ln F(x₍ᵢ₎) + ln(1 − F(x₍ₙ₊₁₋ᵢ₎))]A² measures the distance between the data and the fitted curve, with extra weight on the tails. Smaller is better.
- Turn A² into a p-value. Because the parameters were estimated from the same data, the reference distribution of A² depends on the candidate distribution and the sample size. Programs use published approximations or simulation; this article uses simulation (parametric bootstrap with 20,000 samples). A small p-value (below 0.05) is evidence that the distribution does not fit.
- Look at the probability plots. Each plot is scaled so that a perfect fit lies on a straight line. Curvature, an S-shape or a few points peeling away in a tail show where the fit fails.
Example
A honing machine finishes hydraulic cylinder bores. Surface roughness Ra must not exceed 0.40 µm. These are 30 bores, in µm:
0.114, 0.092, 0.144, 0.191, 0.258, 0.168, 0.127, 0.115, 0.219, 0.318, 0.179, 0.095, 0.107, 0.313, 0.174, 0.077, 0.154, 0.098, 0.123, 0.130, 0.119, 0.202, 0.156, 0.125, 0.190, 0.227, 0.080, 0.144, 0.106, 0.149
| Distribution | Parameters (maximum likelihood) | A² | P |
|---|---|---|---|
| Normal | mean 0.1565, standard deviation 0.0613 | 0.891 | 0.022 |
| Lognormal | location −1.924, scale 0.365 | 0.193 | 0.91 |
| Exponential | scale 0.1565 | 5.709 | < 0.001 |
| Weibull | shape 2.68, scale 0.1763 | 0.728 | 0.055 |
| Gamma | shape 7.42, scale 0.0211 | 0.350 | 0.49 |
The probability plots show the difference between the first two rows. On the normal plot, the points bend upward at the right end; on the lognormal plot (logarithms of the data against the same normal scores) they follow a straight line.
The normal scores are Φ⁻¹((i − 0.3)/(n + 0.4)) for the i-th smallest value, a common choice of plotting position.
How to read the results
- Rule out the clear misfits. The exponential (p < 0.001) and the normal (p = 0.022) do not fit. The Weibull (p = 0.055) is borderline.
- Choose among the ones that fit. The lognormal has the smallest A² and the gamma also fits. Both are plausible for roughness, which is positive and right-skewed. The lognormal is the natural first choice here.
- Check what the choice does to your answer. The fits agree in the middle of the data but not in the far tail, where the specification limit sits. The expected fraction above 0.40 µm is about 35 PPM for the normal, 125 PPM for the Weibull, 845 PPM for the gamma and 2,870 PPM for the lognormal. Thirty values cannot settle a factor of three between the lognormal and the gamma, so collect more data before you commit to a PPM figure, or report the more cautious one.
- Do not chase decimals. A p-value of 0.91 does not mean the lognormal is right, only that these 30 values give no reason to reject it.
Common mistakes
- Picking the distribution with the best capability. Pick by fit and physics, then accept the PPM it gives.
- Fitting an unstable process. A shift halfway through the data can make a normal process look skewed. Check a control chart first.
- Comparing A² across very different families too literally. A² is a good guide, but distributions with a threshold parameter have one more parameter to bend toward the data. Prefer the simpler model when the fits are close.
- Ignoring zero or negative values. Lognormal, Weibull, gamma and exponential need positive data. A zero in the column usually means a rounding or recording problem worth fixing, not a reason to switch distributions.
Frequently asked questions
What p-value means a distribution fits?
A p-value above 0.05 means the test found no evidence against the distribution. It does not prove a good fit. Use the p-values to rule distributions out, and the probability plots and physics to choose among the rest.
Why are p-values for some distributions not shown in some reports?
For some families, especially those with a threshold parameter, no simple approximation of the A² reference distribution exists. Reports then show A² only, or a bound such as "p > 0.25". Simulation, as used here, works for any family.
Should I use a transformation instead?
If a transformation makes the data normal, you can use normal-based tools such as control charts on the transformed values. Distribution fitting keeps the original units. Both routes should give similar capability when they fit well; when they disagree, you need more data.
How many values do I need?
At least 30 to rule out poor fits. To tell similar distributions apart in the tails, where it matters for PPM, 100 or more values are much better.