SigmaResolve
SPC Quality Control Charts

Choosing the Right Control Chart: X-bar R vs I-MR vs Attribute Charts

Step-by-step decision guide for selecting the correct SPC control chart based on your data type, subgroup structure, and monitoring goal.

The Decision Starts With Your Data Type

Before selecting a chart, answer one question: is your data variable (measured on a continuous scale) or attribute (counted or classified)?

**Variable data** comes from measuring instruments — calipers, CMMs, micrometers, load cells, scales. You get a number: 25.003 mm, 14.7 psi, 2.334 grams. Variable data gives you more statistical power because each measurement carries precise information about where the process is running.

**Attribute data** comes from inspection decisions — pass/fail, go/no-go, visual inspection accept/reject, defect counts. You get a count: 3 defective out of 100 inspected, 7 solder defects on a PCB. Attribute data is less statistically powerful (you need larger samples) but is often easier and cheaper to collect.

If you have variable data, you'll use X-bar R, X-bar S, or I-MR charts. If you have attribute data, you'll use p, np, c, or u charts.

Variable Charts: X-bar R, X-bar S, and I-MR

**I-MR (Individuals and Moving Range)** — Use when you take one measurement per time period. Common scenarios: batch processes (one viscosity reading per batch), destructive testing (can only test one part), expensive measurements (CMM setups that take 30 minutes), or continuous processes sampled hourly. The I chart plots individual values; the MR chart plots the moving range between consecutive points.

**X-bar R (Subgroup Means and Ranges)** — Use when you measure multiple parts from the same production run (subgroup size 2-8). This is the most common chart in manufacturing. Example: you pull 5 parts every hour, measure each one, plot the subgroup mean on the X-bar chart and the subgroup range on the R chart. The X-bar chart is more sensitive to mean shifts than the I chart because averaging reduces noise.

**X-bar S (Subgroup Means and Standard Deviations)** — Use when subgroup size is 9 or larger. The range (R) becomes less efficient at estimating variation for large subgroups, so the standard deviation (S) is used instead. Common in high-volume inspection where you might measure 20-25 parts per subgroup.

The key principle: **larger subgroups give you more sensitivity to process shifts, but cost more to collect.** A subgroup size of 5 is the classic manufacturing compromise between statistical power and inspection cost.

Attribute Charts: p, np, c, and u

**p-chart (proportion defective)** — Use when you're counting defective items in lots of varying size. Example: Monday you inspect 150 units and find 6 defective (p = 0.04). Tuesday you inspect 200 units and find 9 defective (p = 0.045). The p-chart handles varying lot sizes by calculating control limits that vary with each sample size — creating the characteristic 'staircase' pattern in the limits.

**np-chart (number defective)** — Use when lot sizes are constant. Simpler than the p-chart because control limits are fixed. If you always inspect exactly 100 units per shift, the np-chart plots the raw count of defectives.

**c-chart (defects per unit)** — Use when counting defects (not defectives) on a fixed inspection area. A defective item fails; a defect is any individual nonconformity. One PCB might have 3 solder defects but still pass overall if they're reworkable. The c-chart assumes a fixed 'area of opportunity' — same board size, same inspection scope.

**u-chart (defects per unit, variable area)** — Use when counting defects but the inspection area varies. Example: you're counting paint defects on car panels of different sizes. The u-chart normalizes by dividing defects by the inspection unit size.

Quick selection: Are you counting defective items or individual defects? Defective items → p or np. Defects → c or u. Is your sample size constant? Yes → np or c. No → p or u.

Common Selection Mistakes and How to Avoid Them

**Mistake 1: Using I-MR when you have subgroup data.** If you collect 5 parts per hour, don't plot all 5 individually on an I-MR chart. This masks between-subgroup variation and inflates within-subgroup noise. Use X-bar R instead — it's designed to separate these two sources of variation.

**Mistake 2: Using X-bar R with subgroups that aren't rational.** A 'rational subgroup' is a group of units produced under essentially the same conditions — same machine, same operator, same material lot, same short time window. If your 'subgroup of 5' includes parts from different machines or shifts, the chart will underestimate true process variation. Each subgroup should represent a single snapshot of the process.

**Mistake 3: Using attribute charts when variable data is available.** Converting a 25.003 mm measurement to 'pass' throws away information. Variable charts are more sensitive to process changes because they use the actual measurement values. Only use attribute charts when variable measurement isn't practical — visual inspection, go/no-go gaging, or when the characteristic is inherently binary.

**Mistake 4: Choosing charts based on software availability, not data structure.** 'We use I-MR because our software makes it easy' is not a valid statistical reason. The chart must match your data collection structure, not your software's default.

**Mistake 5: Ignoring the assumption of independence.** All standard control charts assume consecutive measurements are independent. If your process exhibits autocorrelation (consecutive measurements are related — common in chemical processes, temperature monitoring), standard charts will produce false alarms. Consider EWMA charts or increase the sampling interval.

Try SPC Quality Control Charts

Free during beta. Join the waitlist for early access.