Xbar-R chart: how to make and read one
An Xbar-R chart is a pair of control charts for measurements taken in small subgroups, such as 5 parts in a row every hour. The top chart plots each subgroup's mean (x̄) to watch where the process is centered; the bottom chart plots each subgroup's range (R) to watch how much it varies in the short term. Points outside the control limits, or unusual patterns, signal a special cause worth investigating.
When to use it
- You measure a continuous characteristic (a diameter, a weight, a torque) and can collect it in rational subgroups: a few parts made close together, under the same conditions.
- The subgroup size is small and constant, typically 2 to 9. Five is the most common choice.
- You want to know whether the process is stable before you judge its capability, or you want to keep it stable during production.
For subgroups of 10 or more, the range wastes information; use the Xbar-S chart. If you get only one value at a time (one batch, one test per day), use the I-MR chart. If you are not sure, see which control chart to use.
How it works
Collect m subgroups of n values each (at least 20 to 25 subgroups for the first limits). For each subgroup, compute its mean x̄ᵢ and its range Rᵢ (largest minus smallest). Then average them: x̄̄ is the grand mean and R̄ the average range.
The R chart comes first, because the x̄ limits depend on R̄:
UCL_R = D₄R̄ CL_R = R̄ LCL_R = D₃R̄The Xbar chart:
UCL = x̄̄ + A₂R̄ CL = x̄̄ LCL = x̄̄ − A₂R̄A₂, D₃ and D₄ are constants that depend only on the subgroup size. They come from d₂, the expected range of n values from a normal distribution with σ = 1, so that R̄/d₂ estimates the within-subgroup standard deviation σ and A₂ = 3/(d₂√n).
| n | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
|---|---|---|---|---|---|---|---|---|---|
| A₂ | 1.880 | 1.023 | 0.729 | 0.577 | 0.483 | 0.419 | 0.373 | 0.337 | 0.308 |
| D₃ | 0 | 0 | 0 | 0 | 0 | 0.076 | 0.136 | 0.184 | 0.223 |
| D₄ | 3.267 | 2.574 | 2.282 | 2.114 | 2.004 | 1.924 | 1.864 | 1.816 | 1.777 |
| d₂ | 1.128 | 1.693 | 2.059 | 2.326 | 2.534 | 2.704 | 2.847 | 2.970 | 3.078 |
On the Xbar chart you can apply all eight tests for special causes. On the R chart, apply only Tests 1 to 4: ranges have a skewed distribution, so the 1σ and 2σ zones do not carry the same probabilities they do for means.
Try it: change the subgroup size and see how much sooner the chart catches the same 1σ shift.
- A₂
- 1.880
- d₂
- 1.128
- R̄
- 0.01003 mm
- σ estimate (R̄/d₂)
- 0.00889 mm
- Chance per subgroup
- 6%
With subgroups of n = 2, the limits sit A₂R̄ = 1.880 × 0.01003 = 0.0189 mm from the center line. The mean shifts by +1.0σ after subgroup 20, and 0 of the 10 subgroups after the shift fall beyond a limit. Each subgroup after the shift has a 6% chance of doing so, so on average the chart needs 17.7 subgroups to catch this shift.
Example
A CNC lathe turns steel pins with a nominal diameter of 8.000 mm. Every hour the operator measures 5 consecutive pins. After 20 hours there are 100 diameters in 20 subgroups. The first few:
| Subgroup | Diameters (mm) | x̄ | R |
|---|---|---|---|
| 1 | 7.996, 7.999, 8.010, 8.004, 7.990 | 7.9998 | 0.020 |
| 2 | 8.000, 7.996, 8.001, 7.990, 8.001 | 7.9976 | 0.011 |
| 3 | 8.001, 8.009, 8.002, 8.003, 7.991 | 8.0012 | 0.018 |
| … | … | … | … |
| 14 | 8.014, 8.006, 8.019, 8.007, 8.004 | 8.0100 | 0.015 |
Across all 20 subgroups, x̄̄ = 8.0002 mm and R̄ = 0.0149 mm. With n = 5, A₂ = 0.577, D₃ = 0 and D₄ = 2.114:
- R chart: UCL = 2.114 × 0.0149 = 0.0315 mm, LCL = 0.
- Xbar chart: UCL = 8.0002 + 0.577 × 0.0149 = 8.0088 mm; LCL = 8.0002 − 0.0086 = 7.9916 mm.
- Within-subgroup σ̂ = 0.0149 / 2.326 = 0.0064 mm.
The R chart is in control: the short-term spread is steady. On the Xbar chart, subgroup 14 (8.0100 mm) is above the upper limit. The operator's log shows that the tool offset was changed by hand just before that hour. With the cause known and corrected, you drop subgroup 14 and recompute: x̄̄ = 7.9997 mm, R̄ = 0.01489 mm, and the Xbar limits become 7.9911 to 8.0083 mm. Those are the limits to use for future production.
How to read the results
- Read the R chart first. If the ranges are out of control, the Xbar limits are not trustworthy, because they are built from R̄.
- A point outside the Xbar limits means the process mean moved for that subgroup. Look for what changed at that time: a tool, a setting, a material lot, an operator.
- Patterns count too. Nine means in a row on one side of the center line (Test 2) point to a sustained shift even if no point leaves the limits.
- Control limits are not specification limits. They describe what the process does, not what the customer needs. A stable process can still make parts out of spec; that is a question for a capability analysis.
- The limits on the Xbar chart are for means. Individual parts spread about √5 ≈ 2.2 times wider than the subgroup means.
Common mistakes
- Subgroups that mix sources. Taking one part from each of five spindles puts the spindle-to-spindle differences inside R̄. The limits get too wide and the chart misses real shifts.
- Recomputing limits after every point. Fix the limits from a stable baseline period and use them going forward; recompute only after a deliberate process change.
- Removing out-of-control subgroups without a cause. Drop a point only when you found and fixed its special cause; otherwise, keep it and keep looking.
- Drawing spec limits on the Xbar chart. Specs apply to individual parts, not to means, so comparing them to x̄ hides parts that are out of spec.
- Using the range for large subgroups. Above about 9 values per subgroup, the S chart estimates spread more efficiently.
Frequently asked questions
How many subgroups do I need to set control limits?
At least 20 to 25 subgroups. With fewer, the estimates of x̄̄ and R̄ are rough, and the limits can move noticeably once more data arrive. You can start with preliminary limits from fewer subgroups and revise them later.
Why is the lower limit of the R chart zero?
For subgroups of 6 or fewer, the formula R̄ − 3σ_R gives a negative number, and a range cannot be negative, so D₃ is set to 0. For those sizes, the R chart cannot signal a drop in spread through a point below the limit; a long run below the center line can.
What is the difference between an Xbar-R and an Xbar-S chart?
Both watch the subgroup means. The Xbar-R chart measures spread with the range, which is easy to compute by hand and works well for small subgroups. The Xbar-S chart uses the standard deviation, which uses every value and is better for subgroups of 10 or more.
Can I use an Xbar-R chart if my data are not normal?
Usually yes. Subgroup means are close to normal even when individual values are somewhat skewed, so the Xbar chart is robust. The R chart is more sensitive to strong skewness; if your data are very skewed, check them with a normality test and consider a transformation.