When to use it
You count defective items per subgroup and every subgroup is the same size: plot the raw count instead of the fraction.
When not to: 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.
Step by step
Open it from the menu
Click Quality in the menu bar; under Attributes Charts choose np-Chart (Number Nonconforming).
Fill in the form
Choose the columns: Defective items per subgroup, Items inspected per subgroup (optional). The form lists only columns whose type fits each field.
Check the options
The options start at their defaults: Subgroup size (n). Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| Defective items per subgroup Defectives required | One numeric column. Count of nonconforming items in each subgroup |
|---|---|
| Items inspected per subgroup (optional) Sample Size | One numeric column. Optional: the column holding the number inspected per subgroup (it must be the same in every row) |
| Subgroup size (n) | Number of items inspected per subgroup. Leave 0 to take it from the sample-size column, or from a constant column such as lot_size Default: 0. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
A worked example
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.
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.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- With 100 parts inspected each hour, is the number of defectives per hour stable?
- Explain the np-Chart (number nonconforming) in plain words.
- What does binomial distribution mean?
Last reviewed November 16, 2026.
