Understand the idea
An ordinary u-chart assumes defects occur at one fixed underlying rate per unit of area, so its limits shrink automatically as the inspected area grows: with very large areas (thousands of lines of code, huge production runs), the limits can become so tight that ordinary day-to-day wobble in the true rate lights up the chart with false alarms almost every time. That wobble is often real, not noise: staffing changes, material variation, and dozens of other unmodeled factors can genuinely shift the true rate a little from sample to sample.
The Laney U' chart measures how much MORE the data actually vary than the plain Poisson model predicts, using a factor called Sigma_z, and widens (or, less commonly, tightens) the control limits by exactly that factor. A Sigma_z near 1 means the Poisson model already describes the data well, and the U' chart looks essentially identical to an ordinary u-chart. A Sigma_z well above 1 means there is real extra variation the ordinary chart was ignoring, and the wider, corrected limits are the more honest picture.
This chart earns its keep specifically when inspection areas are large and/or vary a lot, exactly the situation where an ordinary u-chart's limits become unrealistically narrow.
Laney's u' chart, an overdispersion-corrected u-chart, widens the u-chart limits when samples are so large that ordinary limits flag almost every point. Laney's u' chart works as a Sigma_z u-chart: each rate is turned into a z-score, and the spread of those z-scores sets how much wider the limits must be.
Practitioner explanation
KernelStats converts each sample's rate to a z-score z_i = (u_i - u-bar)/sigma_ui where sigma_ui = sqrt(u-bar/a_i), then estimates the dispersion factor Sigma_z = MRbar(z)/1.128, an individuals-chart-style moving-range estimate of sigma applied to the z-scores, per Laney (2002), identical in spirit to the P-prime chart's construction. The corrected limits are u-bar +/- 3*sigma_ui*Sigma_z: when Sigma_z = 1 this reduces EXACTLY to the ordinary u-chart formula. Sigma_z > 1.1 is flagged as overdispersion (classic limits were too tight); Sigma_z < 0.9 as underdispersion (classic limits were too loose).
As with the P-prime chart, the card explicitly warns when Sigma_z is estimated from fewer than 20 samples (a moving-range-based dispersion estimate from a short series is itself noisy), and refuses cleanly when the pooled rate u-bar is exactly 0 (no defects at all; the chart needs a nonzero rate) or when Sigma_z itself is exactly 0 (every sample's rate identical, making the correction factor undefined).
With CONSTANT inspection areas, the Laney U' chart is identical to an ordinary individuals chart of the raw rates (mirroring the equivalent identity for the P-prime chart), which means this chart's distinctive value is specifically about VARYING areas of opportunity combined with real extra-Poisson dispersion, not the dispersion correction in isolation.
When to use it
Consider it when
An ordinary u-chart's control limits look unrealistically tight (large and/or varying inspection areas with nearly every sample flagged as out of control), usually signaling real sample-to-sample variation in the true defect rate that the Poisson model does not capture.
Use caution when
Small or fairly constant inspection areas, where the ordinary u-chart is already adequate; fewer than about 10-20 samples, where Sigma_z is too noisy an estimate to trust; or a pooled rate of exactly 0, where the chart is mathematically undefined.
Formulas and symbols
Standardized sample rate (z-score)
u_i the observed defect rate in sample i, a_i its inspection area, u-bar the pooled rate across all samples.
Laney's dispersion factor
The average moving range of the z-score series, divided by the same d2=1.128 constant used for an ordinary individuals chart.
Overdispersion-corrected control limits
Reduces exactly to the ordinary u-chart formula when Sigma_z = 1.
Assumptions and checks
- Sigma_z is itself an ESTIMATE of the dispersion, and like any estimate it is noisy with few samples; a Sigma_z estimated from only a handful of samples can look meaningfully different from 1 by chance alone, making the 'corrected' limits themselves unstable.
In KernelStats: Checked directly: the card refuses fewer than 2 samples and adds a data warning whenever Sigma_z is estimated from fewer than 20 samples; the Learn More content recommends 20+ for a stable estimate.
- Independence of observations. Sigma_z is computed from the moving range of consecutive z-scores, which (like an individuals chart) assumes the sample-to-sample deviations are independent; autocorrelated defect rates would distort Sigma_z itself, not just the resulting limits.
In KernelStats: Not checked by KernelStats: no autocorrelation test is run on the z-scores.
Alternatives
- u-Chart (Defects per Unit). Inspection areas are small or fairly constant and there is no evidence of overdispersion: the ordinary u-chart is simpler and gives the same answer when Sigma_z is close to 1.
- I-MR Chart (Individuals & Moving Range). Inspection areas are constant across the whole series: the Laney U-prime chart is then mathematically identical to an ordinary individuals chart of the rates.
Worked example
Scenario
Weekly code-review defect rates per thousand lines across 30 weeks, with reviewed code volume varying widely week to week.
Result
An ordinary u-chart flags 18 of 30 weeks as out of control; the Laney U-prime chart computes Sigma_z = 2.9 and, with the corrected limits, flags only 3 weeks.
Interpretation
The ordinary chart's alarm was largely a symptom of overdispersion (real week-to-week variation in the defect rate that large, varying code volumes made the plain Poisson limits too tight to tolerate) rather than evidence that code quality collapsed in 18 separate weeks. The 3 weeks flagged by the corrected chart are the genuinely unusual ones worth a closer look.
Common misconceptions
Misconception
Nearly every sample on my u-chart is out of control, so the defect-generating process must be falling apart everywhere at once.
Correction
With very large inspection areas, an ordinary u-chart's limits shrink toward the true rate so tightly that ordinary sample-to-sample variation in that rate (not counting noise, but real underlying drift) can throw nearly every point outside the limits. Check the Laney U-prime chart's Sigma_z before concluding the process is broken everywhere: a value well above 1 means the Poisson model was the wrong yardstick for this data.
Misconception
The Laney U-prime chart is a separate technique from the ordinary u-chart, chosen by preference.
Correction
They are the SAME formula: setting Sigma_z = 1 in the U-prime chart's limits reproduces the ordinary u-chart's limits exactly. The U-prime chart is a strict generalization that estimates real extra dispersion and corrects for it, not a competing method.
References
- Improved control charts for attributes, Laney, D. B. (2002), Quality Engineering, 14(4), 531-537.
- Introduction to Statistical Quality Control, Montgomery, D. C. (2019).
