p and c Charts for Defects
When quality is pass or fail, or a count of flaws, you chart counts instead of measurements. The limits are still the center line plus or minus three standard deviations; the standard deviation just comes from the binomial () or from the Poisson ().
What the symbols mean
- Average fraction defective
All defective units found divided by all units inspected.
- Sample size
Units inspected in each sample.
What the symbols mean
- Average count
Total defects counted divided by the number of units: the mean, and the variance, of a Poisson count.
What the symbols mean
- Average defects per unit
Total defects over the total amount inspected (meters, boards, square meters).
- Amount in sample i
How much was inspected this time; the limits tighten as it grows.
Explanation
An attribute chart is simply a control chart for counts, like the fraction of boards that fail inspection each day or the number of flaws per roll of film. The limits follow the same "center 3 standard deviations" rule as the last lesson; only the standard deviation changes. For a fraction defective, it's , the binomial standard error you already know. For a count of flaws, it's , because a Poisson count's variance equals its mean. Same idea, two familiar formulas.
Counting instead of measuring. Some quality checks give no number on a gauge. A circuit board passes automated optical inspection or it doesn't; a painted door has 0, 1, 2 or more blemishes. These attribute data are cheap to collect, and they get their own charts.
Defectives versus defects. A defective (nonconforming) unit fails the spec; a defect is a single flaw, and one unit can carry several. Count defectives in samples of units and the count is binomial, so the fraction defective goes on a p chart. Count defects per unit (per door, per roll, per square meter) and there are many opportunities, each one rare, so the count is Poisson and goes on a c chart. It's the same split as in Counting Defects.
Why these limits. The recipe never changes: center line ± 3 standard deviations of whatever is plotted.
- p chart. The number of defectives in a sample is binomial with , so has : the same standard error as a confidence interval for a proportion. Estimate by , total defectives over total inspected.
- np chart. Plot the count itself, with limits . Handy when never changes.
- c chart. A Poisson count's variance equals its mean, so and the limits are .
- u chart. When the amount inspected varies (rolls of different lengths, batches of different sizes), plot defects per unit . A Poisson count with mean , divided by , has variance , so the limits are and tighten for bigger samples.
A negative lower limit is set to 0. When sample sizes vary, a p chart's limits change from sample to sample as well.
A point below the LCL is news. Either the process got better (find out why, and keep it) or the inspection got worse (a lamp burned out, a new inspector). Investigate either way. But a chart can only show an improvement if its LCL is above 0:
At that means more than 441 units per sample. That's the price of attribute data: a pass-or-fail result carries far less information than a measurement, so attribute charts need big samples, and they react only once parts are already bad, while an X̄ chart can see a drift before parts leave the spec.
The limits are approximate. The ±3σ recipe borrows the normal curve. When or is small, binomial and Poisson distributions lean right, so more than the normal curve's 0.135% of in-control points land above the UCL, and the LCL vanishes. The second picture shows this for the c chart. Run rules still help, read with the same caution.
See it
Worked examples
An assembly line runs automated optical inspection on circuit boards. Over 20 days, samples of 400 boards held 320 defective boards in total. Set up a p chart. Today's sample has 31 defective boards: signal or not?
- 1
.
A paint shop counts blemishes on car doors. Twenty-five doors had 125 blemishes in all. Find the c chart's limits. Does a door with 12 blemishes signal?
- 1
blemishes per door.
Practice
Type your answer and check it. Solve them all to complete the lesson.
Twenty-five samples of 150 circuit boards held 270 defective boards in total. Find the LCL and UCL of the p chart, in that order, to 4 decimal places.
Inspectors count bubbles in 10 m² sheets of window film: 30 sheets had 186 bubbles in all. Find the UCL of the c chart.
A textile mill counts weaving flaws on rolls of cloth whose lengths vary from 40 m to 60 m. Which chart fits?
A p chart with has a lower control limit of 0 unless its samples are big enough. What's the smallest sample size that gives a positive LCL?
An injection-molding cell inspects 500 bottle caps per shift, and the long-run fraction defective is 3%. On an np chart (the number of defective caps), find the LCL as a count. Last night's shift found only 3 defective caps: what does that mean?
A weekly p chart for electric motors has , but the number tested varies. Week 12: 25 defective out of 300. Week 13: 18 defective out of 150. Find the UCL for week 13 to 4 decimal places, then decide which week, if either, signals.
A c chart has , so UCL and LCL . If the process is stable and counts are Poisson with mean 4, how many false alarms above the UCL should you expect per 1,000 units? Give 3 significant figures.
The hardest one here. Get it, and you've got this lesson.
A p chart runs at . Engineers want at least a 50% chance of catching a jump to on the first sample after it happens (use the normal approximation). (a) Find the smallest sample size . (b) With that , find the average run length if the fraction defective jumps to 0.06 instead, to 3 significant figures. Enter , then the ARL.
Where it's used
Electronics assembly lines put the fraction of boards failing automated optical inspection on p charts, and paint shops and textile mills chart blemishes per unit on c and u charts. Hospitals use p charts for infection and readmission rates, call centers for the fraction of abandoned calls, and software teams track defects per thousand lines of code on u charts.