Understand the idea
Suppose a plant inspects a different number of parts each shift: maybe 80 one day, 120 the next. Tracking the raw defect COUNT would not be a fair comparison across shifts (more parts inspected naturally tends to turn up more defects), so a p-chart tracks the PROPORTION defective instead, which is comparable regardless of how many items were inspected that day.
Because smaller subgroups are naturally noisier estimates of the true defect rate than larger ones (a coin flipped 10 times bounces around more, proportionally, than one flipped 1,000 times), the control limits actually WIDEN for smaller subgroups and narrow for larger ones: the chart's limits step up and down along with each subgroup's own size, rather than staying flat.
A point below the lower limit looks like good news (an unusually low defect rate) and usually is worth investigating too: did something genuinely improve, or did inspection quietly get skipped? But watch for a subtlety: when the average defect rate is very low, the lower limit formula often comes out negative and gets floored at zero, which means an 'improvement' signal can become mathematically impossible to trigger on that chart, no matter how good the process gets.
A p-chart is a fraction nonconforming chart, also called a proportion defective chart: it plots the share of defective units in each sample. When samples are very large, the Laney P-prime chart widens the limits to allow for real sample-to-sample variation that ordinary limits would flag as out of control.
Practitioner explanation
KernelStats computes p-bar = (total defectives)/(total items inspected) across all subgroups, and per-subgroup limits p-bar +/- 3*sqrt(p-bar*(1-p-bar)/n_i), so limits are WIDER for smaller subgroups and narrower for larger ones; LCL is floored at 0 and UCL capped at 1. Subgroups missing either the defective count or the sample size are dropped (not imputed), with the exact dropped rows reported and every plotted point labeled by its original table row.
As with the np-chart, the normal-approximation validity condition (n_i*p-bar >= 5 and n_i*(1-p-bar) >= 5 for each subgroup) is ACTUALLY COMPUTED, using the smallest n_i*p-bar across all subgroups, and the card reports the exact binomial false-alarm rate and softens its verdict when the condition fails rather than presenting the nominal 0.27% rate as reliable regardless of subgroup size.
KernelStats additionally computes a genuine EXTRA-BINOMIAL DISPERSION check (Laney's sigma-z statistic) not mentioned as a caveat but actually calculated from the standardized subgroup proportions: sigma_z near 1 means the binomial model's variance assumption holds; sigma_z meaningfully above 1 (overdispersion: subgroup-to-subgroup variation exceeds what pure binomial sampling predicts, often from an unmodeled process factor varying between subgroups) means the ordinary p-chart's limits are too tight, and the card directs the analyst to the Laney P-prime chart (the Laney p' chart), which rescales the limits by sigma_z, rather than silently trusting limits it has itself flagged as too narrow.
When to use it
Consider it when
You count defective (pass/fail) items per subgroup and subgroup sizes vary from period to period, and you want the proportion defective plotted with limits that correctly account for each subgroup's own sample size.
Use caution when
Every subgroup has the SAME constant size and you would rather plot a raw count (use an np-chart, simpler to communicate), you are counting DEFECTS rather than defective items (use a c- or u-chart), or subgroup-to-subgroup variation clearly exceeds what the binomial model predicts (a high Laney sigma-z); in that case the Laney P-prime chart's rescaled limits are more defensible than the ordinary p-chart's.
Formulas and symbols
Center line
Pooled defect rate across all subgroups, regardless of their individual sizes.
Per-subgroup control limits
n_i the size of subgroup i; limits are wider for smaller subgroups. LCL floored at 0, UCL capped at 1.
Laney sigma_z (extra-binomial dispersion)
MR-bar_z is the average absolute difference between consecutive z-scores (Laney's moving-range estimate, not the plain SD). sigma_z near 1 supports the binomial model; well above 1 signals overdispersion the ordinary p-chart limits do not account for. The card flags it outside 0.9-1.1.
Assumptions and checks
- When n_i*p-bar or n_i*(1-p-bar) falls below about 5 in the smallest subgroup, the normal-curve approximation the 3-sigma limits are built on breaks down, so the chart's true false-alarm rate can differ substantially from the nominal ~0.27%.
In KernelStats: Checked directly: the card computes the smallest n_i*p-bar and n_i*(1-p-bar) across all subgroups and reports the 'Normal approximation to the binomial' check as failed when either falls below 5.
- If subgroup-to-subgroup variation in the true defect rate is larger (overdispersion) or smaller (underdispersion, e.g. from stratified sampling) than a single binomial rate would produce, the classic p-chart's limits are respectively too tight (manufacturing false alarms) or too loose (missing real signals).
In KernelStats: Checked directly: the card computes Laney's Sigma_z (the average moving range of the subgroup z-scores) and flags it when outside roughly 0.9-1.1, recommending the Laney P-prime chart (the Laney p' chart) when overdispersion is detected.
Alternatives
- np-Chart (Number Nonconforming). Every subgroup has the same constant size and a raw count is preferred over a proportion.
- Laney P′ Chart (Overdispersion-Corrected). The Laney sigma_z dispersion check shows meaningful overdispersion, subgroup-to-subgroup variation beyond what pure binomial sampling predicts, which makes the ordinary p-chart's limits too tight.
- u-Chart (Defects per Unit). You are counting DEFECTS (an item can have several) per unit of varying inspection area, rather than classifying items as simply defective or not.
Worked example
Scenario
20 daily subgroups with subgroup sizes ranging from 80 to 150 parts, tracking the proportion of cosmetic defects.
Result
p-bar = 0.042, per-subgroup UCLs ranging from about 0.109 (n=80) down to about 0.091 (n=150); one small subgroup (n=80) breaches its (wider) UCL at 0.125 defective (10 of 80), and Laney sigma_z = 1.35, indicating meaningful overdispersion.
Interpretation
The single flagged subgroup is worth investigating on its own, but the elevated sigma_z is arguably the more important finding: subgroup-to-subgroup variation here exceeds what pure binomial sampling would predict, so the ordinary p-chart limits are somewhat too tight across the board, and a Laney P-prime chart would give a more defensible picture of which subgroups are truly unusual.
Common misconceptions
Misconception
A point below a p-chart's lower control limit always signals a genuine improvement that can be acted on.
Correction
When the average defect rate is low, the LCL formula frequently comes out negative and is floored at 0, which means no proportion can ever fall below it, so an 'improvement' signal becomes mathematically impossible to trigger on that chart, regardless of how good the process actually gets. Check whether the LCL is a real, positive threshold before treating the absence of a below-LCL signal as meaningful.
Misconception
If a p-chart's points bounce around more than the control limits seem to allow, the limits must be computed wrong.
Correction
Subgroup-to-subgroup variation can genuinely exceed what the binomial model predicts (overdispersion) when an unmodeled factor varies between subgroups: different inspectors, different shifts, different material lots. This is a real, checkable phenomenon (the Laney sigma-z statistic), and the fix is a chart designed for it (the Laney P-prime chart), not an error in the p-chart's arithmetic.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §6.3.3.1 Counts control charts, NIST/SEMATECH (2012), §6.3.3.1.
- Improved control charts for attributes, Laney, D. B. (2002), Quality Engineering, 14(4), 531-537.
