Attribute Control Charts (p, np, c, u)

Counting instead of measuring? Enter your inspection results and see whether the defect rate is stable, what it is, and where it went out of control.

Measuring a value instead of counting? Use a variable control chart. Open I-MR Chart

What are you counting?
Pick the chart that matches your data. Not sure? Defectives are whole units that fail; defects are flaws counted on a unit, and one unit can have several.
Defective units (pass / fail)
Defects (flaws per unit)
Data · 0 subgroups
#Units inspected (n)Defectives
Paste two columns from Excel (units inspected, then the count) with Ctrl+V anywhere on the page, or upload a file. A header row is skipped.
Choose a chart, add your subgroups or press Try an example, then Analyze.

Control limits and the tests for special causes follow the AIAG SPC manual and Montgomery, and are compared with specialised statistical software. Results are a guide for your engineering judgement.

About the attribute charts

How it is calculated · worked example · references

When to use them

Attribute charts are for results you count rather than measure: parts that pass or fail a check, or flaws found on a unit. They show whether the defect rate is stable over time and flag the subgroups where something changed.

  • p chart: the proportion of defective units, when the sample size can change from one subgroup to the next.
  • np chart: the number of defective units, when every sample has the same size.
  • c chart: the number of defects, when the same amount is inspected each time (one unit, one roll, one batch).
  • u chart: defects per unit, when the amount inspected changes.

Enter the subgroups in production order. Twenty to 25 subgroups are a sensible minimum, and each sample should be large enough to find a few defectives or defects on average.

Method

Centre lines, control limits and the tests for special causes follow the AIAG SPC manual and Montgomery. When sample sizes differ, each subgroup gets its own limits, as specialised statistical software does. The results are tested against reference data sets for all four charts.

Worked example

The p chart data behind “Try an example”: 25 subgroups of 200 units, 213 defectives in total.

ResultValue
p chartp̄ 0.0426 · UCL 0.0854 · LCL 0
Test 1 (beyond the limits)Subgroup 18
Test 2 (9 in a row on one side)Subgroups 5–13 below the centre line, 14–22 above it
% defective · PPM4.26% · 42,600

The rate shifted up around subgroup 14 and subgroup 18 is above the upper limit, so the process is not stable and 4.26% describes the past period only. Find what changed at subgroup 14 and what happened in subgroup 18 before using the rate as a baseline.

References

  • AIAG, Statistical Process Control (SPC) Reference Manual, 2nd edition.
  • Montgomery, D. C., Introduction to Statistical Quality Control.
  • Nelson, L. S. (1984), “The Shewhart Control Chart: Tests for Special Causes”, Journal of Quality Technology.