Xbar chart: control limits for subgroup means, with an example

Updated

An Xbar chart plots the mean of each subgroup of measurements over time, with a center line and control limits three standard errors away. It answers one question: has the process average moved? It is the top half of the Xbar-R and Xbar-S charts, shown on its own when you want to watch the center and handle the spread another way.

When to use it

  • You measure a continuous characteristic in rational subgroups (2 or more values taken close together) and your main concern is the process mean: tool wear, setting changes, material lots.
  • The within-subgroup spread has a long record of stability, or you already watch it on a separate R chart or S chart.
  • You want the most sensitive chart for sustained shifts of the mean with small subgroups.

If you have never checked the spread, start with an Xbar-R chart instead: the Xbar limits are only as good as the σ behind them. For one value at a time, use the individuals chart.

How it works

Collect m subgroups of n values. Compute each subgroup's mean x̄ᵢ and the grand mean x̄̄. The limits are

UCL = x̄̄ + 3σ̂/√n CL = x̄̄ LCL = x̄̄ − 3σ̂/√n

where σ̂ is the within-subgroup standard deviation. Three estimates are common: R̄/d₂, s̄/c₄, or the pooled standard deviation, which is the estimate used in this article. It combines the subgroup variances, weighted by their degrees of freedom:

sₚ = √( Σ (nᵢ − 1)sᵢ² / Σ (nᵢ − 1) ) σ̂ = sₚ / c₄(d + 1), d = Σ (nᵢ − 1)

The c₄ factor removes the small bias of sₚ; with 20 subgroups it changes σ̂ by less than 1%. The pooled standard deviation uses every value and handles unequal subgroup sizes naturally, which is why it is also the usual within-subgroup σ for capability analysis.

Because subgroup means are close to normally distributed, all eight tests for special causes apply. The zones are 1σ̂/√n wide.

Example

A press crimps terminals onto wire leads for an automotive harness. The target crimp height is 1.850 mm. Every hour, a technician measures 4 crimps. The first 20 hours form the baseline; the first two subgroups were 1.861, 1.858, 1.856, 1.850 and 1.864, 1.874, 1.850, 1.854 mm.

From the 20 baseline subgroups:

  • Grand mean x̄̄ = 1.8508 mm.
  • Pooled standard deviation sₚ = 0.01265 mm with d = 20 × 3 = 60 degrees of freedom; c₄(61) = 0.9958, so σ̂ = 0.01271 mm.
  • 3σ̂/√4 = 0.0191 mm, so UCL = 1.8699 mm and LCL = 1.8317 mm.

The limits stay fixed while production goes on. Subgroups 21 to 30 had these means (mm):

21222324252627282930
1.85751.85451.85581.86001.85651.85531.85901.85481.86101.8460
Xbar chart of crimp height1.831.841.851.861.87Mean crimp height (mm)CL=1.8508UCL=1.8699LCL=1.831714710131619222528Subgroup
Xbar chart of crimp height

No point leaves the limits, yet subgroups 21 to 29 are all above the center line. That is nine in a row on one side, so Test 2 signals at subgroup 29. The average of those nine subgroups is 1.8572 mm, about 0.006 mm above x̄̄. The material log shows that a new reel of terminals, from a different supplier lot, was loaded before subgroup 21. A crimp-height shift of that size changes the pull-out force, so the reel is set aside and the press is reset.

How to read the results

  • Points beyond the limits (Test 1) mean a large, sudden change in the mean.
  • Runs and trends (Tests 2, 3, 5 and 6) catch smaller, sustained shifts that single points miss, as in this example.
  • Hugging the center line (Test 7, 15 points within 1σ) usually means the subgroups mix two sources, so σ̂ is too large, or the limits are out of date after an improvement.
  • The limits describe subgroup means, not single crimps. Individual crimps vary √4 = 2 times more than the means.

Common mistakes

  • Ignoring the spread. If within-subgroup variation grows, the means can still look calm. Check the spread on an R or S chart at least from time to time.
  • Estimating σ from all the values pooled together. The overall standard deviation includes shifts between subgroups; it widens the limits and hides the very shifts the chart is for.
  • Recalculating limits with the new data. If subgroups 21 to 30 had been added to the baseline, the center line would have moved up and the run would have been harder to see.
  • Comparing means to the specification. Specs apply to single parts; a mean inside the spec can hide crimps outside it.

Frequently asked questions

Is an Xbar chart enough without an R or S chart?

Only if you have good reason to believe the spread is stable. Most of the time it is worth plotting the spread too, because a change in spread is often the first sign of trouble, and it also makes the Xbar limits wrong.

Which σ estimate should I use for the Xbar chart?

With equal subgroups of 2 to 9 values, R̄/d₂, s̄/c₄ and the pooled standard deviation give similar answers. The pooled standard deviation is the most efficient and handles unequal sizes; R̄/d₂ is the easiest to check by hand.

Why does the chart use 3 standard errors and not 3 standard deviations?

Because it plots means. The mean of n values varies σ/√n, so the limits sit 3σ/√n from the center. Using 3σ would make the limits far too wide.

What sample size should I use?

Four or five values per subgroup is common. Larger subgroups make the chart more sensitive to small shifts, but they cost more measurements; see how many samples you need.

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