NP chart: control chart for number of defectives

Updated

An NP chart plots the number of defective items found in each sample, when every sample has the same size. Each item is judged good or bad, and the chart shows whether the count of bad items stays within the range that chance alone would produce. It is the P chart in counts instead of proportions, which is often easier for people on the floor: "26 bad caps" means more to them than "0.052".

When to use it

  • Items are classified as defective or not (pass/fail, go/no-go).
  • Every sample has the same size: 500 caps per shift, 50 boards per lot, 100 forms per audit.
  • You want a chart that operators can update by hand with a simple count.

If sample sizes vary by more than about 25%, use the P chart. If you count defects, and one item can have several, use the C chart or the U chart.

How it works

With m samples of n items each, and xᵢ defectives in sample i:

p̄ = Σxᵢ / (m · n) CL = n·p̄ UCL = n·p̄ + 3√( n·p̄(1 − p̄) ) LCL = max(0, n·p̄ − 3√( n·p̄(1 − p̄) ))

The limits come from the binomial distribution: a count of defectives out of n has mean np and standard deviation √(np(1 − p)). The ±3σ limits use the normal approximation, which is adequate when np̄ is at least about 5.

Because counts are whole numbers, a point is beyond a limit only if it is strictly above the UCL or strictly below the LCL. Use Tests 1 to 4 of the tests for special causes; the binomial distribution is skewed and discrete, so the zone tests do not keep their usual false-alarm rates.

Example

A molding plant makes polypropylene closures for water bottles. Each shift, an inspector pulls 500 caps from the conveyor and counts those with any defect: short shots, flash, or a deformed thread. A cap with two defects still counts once. The counts for 25 shifts:

Shifts 1–56–1011–1516–2021–25
8, 14, 8, 7, 137, 8, 7, 10, 1510, 8, 15, 9, 826, 15, 14, 9, 710, 3, 11, 6, 7

The total is 255 defectives in 25 × 500 = 12,500 caps, so p̄ = 0.0204.

  • CL = 500 × 0.0204 = 10.2 caps.
  • σ = √(10.2 × 0.9796) = 3.161 caps.
  • UCL = 10.2 + 3 × 3.161 = 19.68; LCL = 10.2 − 9.48 = 0.72.
NP chart of defective caps01020Defective caps per 500CL=10.2UCL=19.68LCL=0.72147101316192225Shift
NP chart of defective caps

Shift 16, with 26 defective caps, is above the upper limit; every other shift is within the limits. Shift 16 was the first after a weekend shutdown, and the mold had been started before it reached its working temperature, which caused short shots. The startup instruction now requires a mold temperature check. Without shift 16, p̄ = 229/12,000 = 0.0191, the center line is 9.54, and the limits become 0.36 to 18.72.

Note the lower limit. Since it is above zero, a shift with no defective caps at all would fall below it. That would deserve a look: a real improvement, or a lapse in inspection.

How to read the results

  • A count above the UCL is more defectives than the process normally produces. Find what was different in that sample's period.
  • A count below the LCL is unusually good. Confirm that the inspection was done the usual way before celebrating.
  • Points scattered within the limits mean the defective rate is stable. About 2% of caps are defective because of how the process is designed and run, and only a change to the process will lower that rate. A Pareto chart of defect types is a good next step.
  • A run of 9 on one side means the rate itself has shifted, even if no point leaves the limits.

Common mistakes

  • Using the NP chart with varying sample sizes. The center line and limits assume a constant n. Use the P chart instead.
  • Counting defects instead of defective items. If a cap with two defects is counted twice, the data are defects, which follow a different distribution.
  • Samples too small to see anything. With n·p̄ below about 1, most samples show zero defectives and the chart can hardly signal. Increase n, or chart the time or count between defectives with a G chart.
  • Reacting to every high point within the limits. Chasing common-cause variation makes a process worse, not better.

Frequently asked questions

When should I use an NP chart instead of a P chart?

Use the NP chart when the sample size is constant and you want people to read counts directly. Use the P chart when sample sizes vary. With a constant sample size, both charts show exactly the same pattern.

What is a defective, as opposed to a defect?

A defective is an item that fails, whatever the number of problems it has. A defect is a single problem, so one item can have several defects. NP and P charts count defectives; C and U charts count defects.

Why do my limits have decimals when counts are whole numbers?

The limits are computed values, not counts. A count is out of control only if it is strictly beyond the limit, so with UCL = 19.68, a count of 20 or more signals.

How many samples do I need to set the limits?

Twenty to twenty-five samples is the usual starting point. The more defectives they contain in total, the more stable the estimate of p̄ and the limits.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab