Which control chart should I use? A decision guide

Updated

The right control chart depends on three things: whether you measure or count, how many values you collect at a time, and, for counts, whether you count defective units or individual defects. For measurements, use an I-MR chart for one value at a time, an Xbar-R chart for subgroups of about 2 to 9, and an Xbar-S chart for 10 or more. For counts of defective units, use a P chart (or an NP chart if every subgroup is the same size). For counts of defects, use a U chart (or a C chart if the amount inspected is always the same). A few special situations, covered below, call for other charts.

Question 1: are you measuring or counting?

Measurement data (also called variables or continuous data) come from a gage, a scale or a sensor: a diameter in millimeters, a weight in grams, a torque in newton-meters, a time in seconds. Each value can fall anywhere on a scale.

Count data (attribute data) come from judging units or counting events: pass or fail, number of scratches on a panel, number of late deliveries. The values are whole numbers or proportions.

If you have a choice, measure. A measurement holds much more information than a pass/fail result, so a chart of measurements detects changes with far fewer parts and before any part actually fails. An attribute chart can only react once defects already exist.

Question 2 for measurements: how many values per subgroup?

A subgroup is a small set of units made under nearly the same conditions, such as 5 consecutive parts every hour. The variation inside the subgroup estimates the short-term, common-cause variation, and the chart compares subgroups with each other over time.

  • One value at a time (subgroup size 1): use an I-MR chart, which pairs an individuals chart with a moving range chart. This fits slow processes, batch results, destructive tests, and any case where consecutive units are practically identical (a chemical concentration, a daily average).
  • Subgroups of about 2 to 9: use an Xbar-R chart. Ranges are simple and work well for small subgroups.
  • Subgroups of 10 or more, or sizes that vary: use an Xbar-S chart. With larger subgroups the standard deviation uses the data more efficiently than the range.

The most common size in practice is 4 or 5, which balances sensitivity against measuring effort.

Question 3 for counts: defectives or defects?

A defective is a unit that fails as a whole: a bottle that leaks, a board that fails the functional test. Each unit is either good or bad, so the data follow the binomial distribution.

A defect is a single flaw, and one unit can have several: three scratches on one panel, two voids in one weld. You count flaws, which follow the Poisson distribution.

  • Defectives, subgroup size varies: P chart, which plots the proportion defective.
  • Defectives, subgroup size constant: NP chart, which plots the number defective (a P chart also works).
  • Defects, amount inspected varies (different areas, lengths or quantities): U chart, which plots defects per unit.
  • Defects, amount inspected constant: C chart, which plots the count (a U chart also works).

The decision table

Your dataSubgroup or sampleChart
MeasurementsOne value at a timeI-MR
MeasurementsSubgroups of 2 to 9Xbar-R
MeasurementsSubgroups of 10 or more, or varying sizesXbar-S
Measurements, batch process with real batch-to-batch variationSubgroupsI-MR-R/S
Measurements, several part numbers with different targetsOne value at a timeZ-MR
Measurements, small sustained shifts matterAnyEWMA or CUSUM
Several correlated measurements togetherAnyT², MEWMA, generalized variance
Defective unitsVarying sample sizeP
Defective unitsConstant sample sizeNP
Defective units, very large samples (thousands)VaryingLaney P′
DefectsVarying amount inspectedU
DefectsConstant amount inspectedC
Defects, very large samplesVaryingLaney U′
Rare events (days or units between them)One event at a timeG or T

Special situations

  • Small shifts matter. A Shewhart chart catches large shifts quickly but takes a while to notice a shift of half a standard deviation. An EWMA chart, a CUSUM chart or a moving average chart accumulates evidence over several points and reacts sooner to small, sustained changes. Adding the run tests to a Shewhart chart is the simpler alternative.
  • Several characteristics that move together. Two dimensions machined in the same setup, or temperature and pressure in a reactor, are correlated. Separate charts ignore that relationship; a T² chart watches them together.
  • Very large subgroups. With thousands of units per day, P and U chart limits become so tight that almost every point is out, because real day-to-day variation exceeds the binomial or Poisson model. The Laney P′ and Laney U′ charts widen the limits to account for it.
  • Rare events. When defects or incidents happen a few times a month, most subgroups have zero and a C chart says little. A G chart plots the number of units or days between events instead.
  • Short runs. When a machine makes many part numbers in small lots, no single part number gets 20 subgroups. A Z-MR chart standardizes each value against its own part number so they can share one chart.
  • Batch processes. When each batch naturally differs a little and the within-batch spread is small, Xbar chart limits based on within-batch variation are too tight. The I-MR-R/S chart charts the batch averages as individuals and the within-batch spread separately.
  • Very capable processes. When the spread uses a small part of the tolerance and some drift is harmless, an acceptance control chart sets limits from the specification instead of reacting to every statistically real shift.
  • Autocorrelated data. When each value depends strongly on the previous one, as in continuous chemical processes sampled every minute, standard limits give many false alarms. Sample less often, or model the dependence first (see autocorrelation).

Worked example: a P chart with varying sample sizes

A packaging line inspects every carton of a daily production order for crushed corners. Order sizes differ from day to day, so the number inspected varies. The data count defective cartons (a carton is either crushed or not), so the right chart is a P chart.

Day123456789101112
Inspected480520455610500390545470600510430565
Crushed131711191410311216151314

The center line is the total proportion defective: p̄ = 185 / 6,075 = 0.03045 (3.05%). Each day gets its own limits, because the standard error depends on its sample size:

UCLᵢ = p̄ + 3 √( p̄ (1 − p̄) / nᵢ ) LCLᵢ = p̄ − 3 √( p̄ (1 − p̄) / nᵢ )

For day 7, with 545 cartons, 3 √(0.03045 × 0.96955 / 545) = 0.0221, so the limits are 0.0084 and 0.0525. The day's proportion is 31 / 545 = 0.0569, above the upper limit.

P chart of crushed cartons0.020.040.06Proportion crushedCL=0.03045UCL=0.0521LCL=0.00881357911Day
P chart of crushed cartons

Notice that the limits are wider on small days (day 6, 390 cartons) and narrower on large ones (day 4, 610 cartons). A spreadsheet that plotted the counts instead of proportions, with one fixed limit, would have made large days look worse simply because more cartons were checked. Day 7 is the only signal; the team found that a new pallet pattern had been tried that day, with cartons stacked one layer higher.

Two other quick choices, for practice:

  • A lab measures the viscosity of one sample per batch of paint. One value per batch: I-MR chart.
  • An inspector counts paint runs on every car body. One body is one unit, the area is the same each time, and a body can have several runs: C chart (or a U chart if bodies of different sizes are mixed).

Common mistakes

  • Using an attribute chart when a measurement is available. Recording "pass/fail" from a gage that gives a number throws away most of the information.
  • Confusing defects with defectives. Counting scratches and plotting them on a P chart, or counting bad units on a C chart, uses the wrong model and the wrong limits.
  • Ignoring varying sample sizes. A C or NP chart assumes the same amount is inspected each time. When it varies, use a U or P chart.
  • Forming subgroups across streams. One part from each of four cavities in a subgroup mixes cavity differences into the range, which widens the Xbar limits so much that nothing ever signals.
  • Choosing a chart for its name. The best chart is the one whose assumptions match how the data were collected. When in doubt, start with an I-MR chart of the data in time order; it rarely misleads badly.

Frequently asked questions

When should I use an Xbar-R chart instead of an I-MR chart?

When you can measure several units made under nearly the same conditions at each sampling time. Subgroups make the Xbar chart more sensitive to shifts in the mean, because averages vary less than single values. If consecutive units are practically identical, or only one value per period exists, use I-MR.

Is there a strict cut-off between Xbar-R and Xbar-S?

No. Both are valid for any subgroup size. The range loses efficiency as subgroups grow, so Xbar-S is preferred from about 10 units per subgroup and whenever subgroup sizes differ.

Can I use an I-MR chart for proportions or counts?

Often, yes, especially when the counts are large and the binomial or Poisson assumptions do not hold. The I-MR chart computes its limits from the data's own variation. It is a practical fallback when a P or U chart shows nearly every point out of control.

What if my data are not normal?

Xbar charts are fairly robust because averages tend toward normality. Individuals charts are more sensitive to skewness; for strongly skewed data consider a transformation or a chart built for that distribution, such as a G chart for times between rare events.

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