Understand the idea
Suppose you inspect exactly 100 parts every hour and count how many fail. An np-chart plots that raw count directly ('7 defective this hour') rather than converting it to a fraction ('0.07 defective this hour'): many operators find a plain count easier to read on the shop floor. It only works this simply because the inspection size stays the SAME every time; if that changed hour to hour, you would need a p-chart instead, which handles varying sample sizes.
The control limits come from the binomial distribution (the same math behind coin flips, applied to 'pass or fail' inspection results), and they are FLAT lines because the subgroup size never changes. A count above the upper limit signals an unusually bad subgroup; a count below the lower limit (which is often pinned at zero) signals an unusually good one, both worth investigating for what changed.
There is a subtlety worth knowing: the whole '3 standard deviations = about a 0.27% false-alarm rate' story is actually an APPROXIMATION that only holds up well when the expected number of defectives (and non-defectives) per subgroup is reasonably large, roughly 5 or more each. When the defect rate is very low, that approximation quietly breaks down and the chart can false-alarm far more often than the nice round 0.27% figure suggests.
An np-chart is a number nonconforming chart, also called a defective count chart or a count control chart: it plots how many units in each fixed-size sample were defective.
Practitioner explanation
KernelStats computes p-bar = (total defectives)/(n*k) across k subgroups of constant size n, center line np-bar = n*p-bar, and limits np-bar +/- 3*sqrt(np-bar*(1-p-bar)), with LCL floored at 0 and UCL capped at n (a subgroup cannot have more defectives than items inspected). A subgroup with a blank or non-numeric count is dropped from the calculation (not treated as zero), and the card reports exactly how many rows were dropped and which, labeling every plotted point by its ORIGINAL table row.
The normal-approximation-to-binomial condition (n*p-bar >= 5 AND n*(1-p-bar) >= 5, the standard rule of thumb) is ACTUALLY COMPUTED and reported on the card, not merely mentioned as a caveat: KernelStats publishes np-bar, n*(1-p-bar), and the EXACT binomial false-alarm rate implied by the current limits, and softens the verdict when the approximation condition fails. This matters concretely: at n=50 and p-bar=0.009 (np-bar=0.45), the chart's nominal 3-sigma limits carry an exact false-alarm probability of about 1.04% per point, nearly four times the nominal 0.27%, and the card states this rather than presenting a false sense of precision.
When the binomial approximation check fails, the Learn More content directs the analyst to chart cases between events (the g-chart) or time between events (the t-chart) instead, or to pool subgroups (a larger constant n raises np-bar directly); KernelStats does not automatically switch charts or pool data for you; the check flags the problem and names the alternatives, but the analyst decides.
When to use it
Consider it when
Every subgroup has the same, constant inspection size, defective items are recorded as a simple pass/fail count, and a raw count (rather than a proportion) is the more natural quantity to plot and communicate.
Use caution when
Subgroup sizes vary from period to period (use a p-chart, which normalizes by each subgroup's own size), the count is of DEFECTS rather than DEFECTIVE ITEMS (an item can have multiple defects; use a c- or u-chart), or the expected defective count per subgroup is very low (np-bar well under 5), where the normal approximation the limits rely on becomes unreliable and a g-chart or t-chart for rare events is more appropriate.
Formulas and symbols
Center line
n the constant subgroup size, k the number of subgroups.
Control limits
LCL floored at 0, UCL capped at n. A normal approximation to the binomial distribution's spread.
Normal-approximation validity condition
When this fails, the plotted +/-3 SD limits are still computed the same way, but the probability attached to them (a ~0.27% false-alarm rate) is no longer accurate; KernelStats computes and reports the true exact false-alarm rate in that case.
Assumptions and checks
- When n times p-bar or n times (1 - p-bar) falls below about 5, the normal-curve approximation behind the 3-sigma limits 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 n times p-bar and reports the 'Normal approximation to the binomial' check as failed when it (or its complement) falls below 5.
Alternatives
- p-Chart (Fraction Nonconforming). Subgroup sizes vary from period to period rather than staying constant.
- g-Chart (Rare Events: Cases Between). The binomial approximation check fails because defects are too rare (np-bar well under 5): chart the number of cases between events instead.
- c-Chart (Defect Count). You are counting DEFECTS (an item can have several) rather than classifying each item as simply defective or not.
Worked example
Scenario
24 hourly shifts inspecting 200 parts each, with a genuine spike of 25 defectives in one shift.
Result
np-bar = 5.33, UCL = 12.16, LCL = 0 (floored), and the spiked shift (25 defectives) breaches the UCL; the binomial approximation check passes, if narrowly (np-bar = 5.33 just clears 5; n(1-p-bar) = 194.7), and the exact binomial false-alarm rate of these limits is about 0.30% per point.
Interpretation
The spike is a clear special-cause signal worth investigating, and because the exact false-alarm rate (about 0.30%) is close to the nominal 0.27%, the upper limit can be read at face value. With the LCL pinned at 0, though, this chart cannot signal an improvement.
Common misconceptions
Misconception
Every np-chart's 3-sigma limits carry the same, reliable 0.27% false-alarm rate regardless of how rare the defects are.
Correction
The 0.27% figure comes from a NORMAL APPROXIMATION to the true binomial distribution, and that approximation only holds well when np-bar and n(1-p-bar) are both at least about 5. With a low defect rate, the approximation breaks down and the exact false-alarm rate can be several times higher than 0.27%; KernelStats computes and reports the true rate rather than assuming the textbook figure always applies.
Misconception
A point inside an np-chart's control limits means those items meet a customer's quality requirement.
Correction
The limits are built from the process's own historical binomial variation around its own average defective count: they describe what the process typically does, not a specification. A stable process can still be producing more defectives than a customer will accept.
Read more: Misconception: control limits and specification limits are the same thing
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §6.3.3.1 Counts control charts, NIST/SEMATECH (2012), §6.3.3.1.
- Introduction to Statistical Quality Control, Montgomery, D. C. (2019), §7.2.1.
