Process monitoring

Overdispersion in p and u Charts: When to Use Laney p′ and u′

Kitstead Labs · Engineering reference · Synthetic worked example

A p chart with a few thousand units a day can put several ordinary days outside its limits, because the limits allow only for sampling variation and not for the real day-to-day variation that many processes have. This guide explains why that happens, how to check whether your data show it, how the Laney p′ chart measures the extra variation and widens the limits to match, and what that costs, with a worked example that starts in the site's Attribute Control Chart Calculator and finishes in a spreadsheet.

Quick answer

The limits of a p chart assume that every day's fraction defective comes from the same binomial distribution: one true fraction, with only sampling variation around it. Their width shrinks with the square root of the sample size, so with thousands of units a day they can become narrow enough that the ordinary variation between days falls outside them. That is overdispersion: more variation between subgroups than the binomial model allows. The Laney p′ chart converts each day to a z-score against the p chart, measures how widely the z-scores actually vary with a moving range, and multiplies the distance from p̄ to each of the p chart's limits by that factor, σz. With σz close to 1 the p′ chart is the p chart; with σz above 1 its limits are wider. The u′ chart does the same for defects per unit. In the worked example, the p chart flags two days and the p′ chart flags only the one day that was made to be different. The price is that the day-to-day variation becomes part of what the chart treats as normal.

Why large samples make p and u charts cry wolf

The NIST/SEMATECH e-Handbook derives the p chart from the binomial model: with a process fraction p and samples of n units, the limits are p ± 3√(p(1 − p)/n). When p is not known, it is estimated from preliminary samples. For a c chart the e-Handbook's section on counts control charts uses the Poisson model, and the u chart applies the same idea to defects per unit.

Both models describe sampling variation only. Nothing in √(p(1 − p)/n) allows for the true fraction itself moving a little from day to day. With small samples the sampling variation is large and hides that movement. With large samples it is not: at a fraction of 0.02 and 2,000 units, the binomial standard deviation of the daily fraction is 0.0031, so a day only 0.0094 above the average falls outside the 3σ limit. If the true daily fraction itself varies with a standard deviation of half a percentage point (0.005), about one day in nine falls outside the 3σ limits at that sample size, although nothing unusual has happened on it.

Minitab's documentation describes the same effect: traditional P and U charts assume the rate is constant, so with large subgroups the limits become narrow and points can appear out of control when they are not. Laney's Quality Digest article notes that there is sometimes batch-to-batch variation as well, and calls the result overdispersion.

Checking for overdispersion

Two checks are freely documented.

Underdispersion, a σz below 1, means the data vary less than the binomial model allows. Minitab's documentation names autocorrelation as a possible cause, for example from a wearing tool; the p′ chart then narrows the limits.

The Laney p′ chart step by step

With subgroups in time order, the numbers of defectives dᵢ and the subgroup sizes nᵢ, Minitab's documentation and Laney's article give the same steps:

  1. Center line. p̄ = Σdᵢ / Σnᵢ, the pooled fraction, as for the p chart.
  2. Standard deviation for each subgroup. σpᵢ = √(p̄(1 − p̄)/nᵢ), the p chart's value for that subgroup size.
  3. z-scores. zᵢ = (pᵢ − p̄) / σpᵢ, where pᵢ = dᵢ / nᵢ.
  4. Moving ranges of the z-scores. MRᵢ = |zᵢ − zᵢ₋₁| for consecutive subgroups, and their average MR̄.
  5. σz. σz = MR̄ / 1.128, as on an individuals (XmR) chart.
  6. Limits. UCL = p̄ + 3 σpᵢ σz and LCL = p̄ − 3 σpᵢ σz for each subgroup. Minitab sets a negative LCL to 0 and caps the UCL at 1.

Laney points out two special cases. If the data are binomial, σz is about 1 and the p′ chart is the p chart. If every subgroup has the same size, the p′ limits are those of an individuals chart on the fractions themselves. The p′ chart can be read as an individuals chart that keeps the p chart's adjustment for unequal subgroup sizes.

The u′ chart

For defects counted per unit, Minitab's Laney U′ chart follows the same steps with the Poisson standard deviation: uᵢ = cᵢ / nᵢ for cᵢ defects on nᵢ units, ū = Σcᵢ / Σnᵢ, zᵢ = (uᵢ − ū) / √(ū/nᵢ), σz = MR̄ / 1.128 from the moving ranges of the zᵢ, and limits ū ± 3 √(ū/nᵢ) σz, with a negative LCL set to 0. The steps and the cautions in this guide apply to it in the same way; Minitab's diagnostic for defects data is the U Chart Diagnostic.

Worked example: 25 days of visual inspection

The data below are synthetic. They represent the number of molded housings inspected each day at a final visual inspection and the number rejected, over 25 days. Each day's inspected count was drawn between 1,800 and 2,600. Each day's true fraction rejected was drawn from a normal distribution with mean 0.02 and standard deviation 0.005, so the days differ for reasons a p chart does not allow for; on day 18 it was set to 0.045 instead, to represent a real excursion. The rejected counts were then drawn unit by unit. The random seed was the first, counting up from 1, for which the p′ chart flags day 18 alone and the p chart flags at least one other day; that was seed 1.

Step 1: the p chart. Pasted into the Attribute Control Chart Calculator as a p chart, one "inspected,rejected" pair per line, the 25 days give p̄ = 0.0208 (1,155 rejected out of 55,419 inspected), limits of 0.0117 to 0.0299 at the average sample size of 2,217, and limits computed for each day's own size. Two days fall outside their limits: day 18 at 0.0486, above its UCL of 0.0296, and day 21 at 0.0108, below its LCL of 0.0124.

Step 2: z-scores and moving ranges. The table gives each day's fraction, its z-score against the p chart and the moving range of the z-scores.

Daily inspection counts, fraction rejected, z-score against the p chart and moving range of the z-scores
DayInspectedRejectedFraction rejectedzMoving range of z
11,937370.0191−0.54—
22,252360.0160−1.611.08
32,419400.0165−1.480.13
41,890330.0175−1.030.45
52,370320.0135−2.501.47
62,353410.0174−1.161.34
72,376330.0139−2.371.21
82,243440.0196−0.411.97
92,204420.0191−0.590.18
101,961300.0153−1.721.13
112,114520.0246+1.212.93
121,800520.0289+2.391.18
132,089370.0177−1.003.39
141,929430.0223+0.451.45
152,253510.0226+0.600.15
162,268650.0287+2.612.01
172,335620.0266+1.930.67
182,4081170.0486+9.537.60
192,470390.0158−1.7611.29
202,017560.0278+2.183.93
212,595280.0108−3.585.76
221,944290.0149−1.831.76
232,347580.0247+1.313.14
242,516490.0195−0.481.79
252,329490.0210+0.070.55

The 24 moving ranges average 2.357, so σz = 2.357 / 1.128 = 2.09. The z-scores vary about twice as much as the binomial model allows: the data are overdispersed.

Step 3: the p′ limits. Each day's p chart half-width, 3 σpᵢ, is multiplied by 2.09. At the average sample size the limits become 0.0018 to 0.0399, against 0.0117 to 0.0299 for the p chart. For the two days the p chart flagged:

p chart and Laney p′ limits on the two days the p chart flags
DayFraction rejectedp chart limitsp′ limitsp chartp′ chart
180.04860.0121 to 0.02960.0026 to 0.0391Above UCLAbove UCL
210.01080.0124 to 0.02930.0033 to 0.0384Below LCLInside

Day 21 was an ordinary day at the low end of the day-to-day variation, and the p′ chart no longer flags it. Day 18 was the excursion, and the p′ chart still flags it.

0 0.01 0.02 0.03 0.04 0.05 1 5 10 15 20 25 Day Fraction rejected p chart limits Laney p′ limits Daily fraction CL 0.0208 Day 18 Day 21
The fraction rejected on each of the 25 synthetic days, with the p chart's limits and the wider Laney p′ limits, both computed for each day's sample size. The p chart flags days 18 and 21; the p′ chart flags day 18 only.

Step 4: the effect of the excursion on σz. Day 18 enters two moving ranges, 7.60 and 11.29, which together make up 33 % of the total. Recomputed without day 18, the 24 remaining days give σz = 1.63; the p chart now flags days 16 and 21, and the p′ chart flags none. A large excursion inflates σz and widens the limits for every other day, which is one more reason to look for the cause of a flagged day before using the limits for monitoring.

What Laney limits give up

The p′ chart treats the day-to-day variation it measures as part of the process. That is the right reading when that variation is routine and nobody intends to remove it. It is the wrong reading when the variation between days is itself the problem: if material lots or setups differ enough to move the daily fraction, the p chart's signals point at something that could be reduced, and widening the limits hides it. Before switching to the p′ chart, decide which of the two the process is.

σz is also an estimate. Twenty-five subgroups give 24 moving ranges, and a value of 1.3 from that many days says less than one of 2 or more. The worked example shows how much one unusual day can move it.

Common mistakes

Using the tools with this guide

The Attribute Control Chart Calculator gives p̄ or ū, the limits for each subgroup's own size and the subgroups outside them for p, np, c and u charts. It does not compute Laney limits: for steps 2 and 3, put the subgroup sizes and counts in a spreadsheet and add columns for pᵢ, σpᵢ, zᵢ and the moving range. Which control chart for which data covers when a count chart is the right chart, and Control chart run rules explains why the zone rules need care on count charts.

Sources and further reading