Data and statistics · cheat sheet

Xbar-R chart

A pair of control charts for measured data collected in small subgroups (usually 2 to 9): one for the subgroup averages, one for their ranges.

Common practice
6 steps
Used by Process Improvement Specialist

What it is

An Xbar-R chart tracks a process with small subgroups: the averages show where the process is centred, the ranges how much it varies within each subgroup.

When to use it

When you can take several measurements under the same conditions at regular intervals, such as 5 items an hour.

Why it works

It separates normal variation from real changes, so people react only when something has really changed.

Do

  • Constants for n = 2 to 9: A2 1.880, 1.023, 0.729, 0.577, 0.483, 0.419, 0.373, 0.337; D4 3.267, 2.574, 2.282, 2.114, 2.004, 1.924, 1.864, 1.816.

Don't

  • Subgroups that mix different conditions, which inflates the range and hides signals.
  • Recalculating limits after every point.

Step by step

  1. 20+ subgroups
  2. Averages and ranges
  3. Centre lines
  4. Range limits D3, D4 × R̄.
  5. Average limits X̿ ± A2 × R̄.
  6. Read ranges first
Also called: Average and range chartPrint the blank template ↗

Worked example

The situation. A bottling line takes 5 bottles an hour.

  1. X̿ = 50.1 ml, R̄ = 0.8 ml, subgroups of 5.

The result. An average above 50.56 ml triggers a check of the filler.

Xbar-R data sheet Print blank
LineCal­culationValue
Average chart upper limit50.1 + 0.577 × 0.850.56
Average chart lower limit50.1 − 0.577 × 0.849.64
Range chart upper limit2.114 × 0.81.69

Filled in for: A bottling line takes 5 bottles an hour.

Subgroup12345AverageRange

Copy this structure, or print the blank version and fill it in by hand. X̿ ______ R̄ ______ limits: X̿ ± A2 × R̄ · R chart: D3 × R̄ to D4 × R̄ (n = 5: A2 0.577, D3 0, D4 2.114)

Before you use it: check these

CheckIf it fails
Subgroups of 2 to 9, the same sizeUse Xbar-S for 10 or more, or varying sizes
Read the R chart firstIf ranges are out of control, the Xbar limits are wrong

How to do it with real data

The full calculation, as it happens in the story: the data, every step, how to read the result, and the spreadsheet functions to do it yourself.

Worked example with real data

Xbar-R chart of waiting times

From Day 47: Choosing the right chart of the Process Improvement Specialist story

Every day after roll-out, Astrid (Data Analyst) picks 5 new routine requests at random and records each wait. Each day is one subgroup.

Xbar chart: daily average of 5 waits02468CLUCLLCLDay 1: 4.4Day 2: 3.4Day 3: 4.8Day 4: 4.8Day 5: 4.4Day 6: 3.4Day 7: 3.8Day 8: 4.4Day 9: 4Day 10: 4.6Day 11: 3.8Day 12: 4.4Day 13: 5Day 14: 7.2 (outside the limits)Day 15: 5.4Day 16: 3.4Day 17: 5.4Day 18: 3.4Day 19: 3.8Day 20: 4.6Day 1Day 4Day 7Day 10Day 13Day 16Day 19Average wait (days)R chart: daily range of 5 waits02.557.51012.5CLUCLDay 1: 6Day 2: 2Day 3: 6Day 4: 8Day 5: 4Day 6: 4Day 7: 4Day 8: 3Day 9: 3Day 10: 6Day 11: 2Day 12: 5Day 13: 2Day 14: 4Day 15: 7Day 16: 4Day 17: 8Day 18: 4Day 19: 5Day 20: 2Day 1Day 4Day 7Day 10Day 13Day 16Day 19Range (days)

Step by step

  1. Subgroup averages and rangesfor each day: average of the 5 waits, and largest − smallest
  2. Centre linesaverage of the 20 averages; average of the 20 ranges= 4.42 days; 4.45 days
  3. Xbar limits4.42 ± A2 × R̄ = 4.42 ± 0.577 × 4.45 (A2 for subgroups of 5)= 1.85 to 6.99
  4. R limitsD3 × R̄ to D4 × R̄ = 0 to 2.114 × 4.45= 0 to 9.41
  5. Read the R chart firstall ranges inside: the spread within days is stable
  6. Read the Xbar chartday 14 (7.2) is above the upper limit= a signal
  7. After investigatingday 14: a doctor off sick, no cover; remove it and recalculate= centre 4.27, upper limit 6.86
DayWait 1Wait 2Wait 3Wait 4Wait 5AverageRange
Day 1348524.46
Day 2434243.42
Day 3485524.86
Day 41026334.88
Day 5335474.44
Day 6243623.44
Day 7342643.84
Day 8663344.43
Day 95633343
Day 10344934.66
Day 11453343.82
Day 12627344.45
Day 136564452
Day 14879757.24
Day 15942935.47
Day 16634223.44
Day 173461135.48
Day 18634223.44
Day 19324373.85
Day 20446544.62

How to read the result

The new process is stable: apart from day 14, every day's average and range sits inside the limits. 91% of the 100 waits are 7 days or less: the 90% goal is met.

What it led to

Day 14 has a known special cause. The response plan adds: when a doctor is off at short notice, use the cover list the same day. The chart continues with the recalculated limits.

Do it in a spreadsheet

Average and range=AVERAGE(B2:F2) and =MAX(B2:F2)-MIN(B2:F2)
Limits=AVERAGE(G2:G21)+0.577*AVERAGE(H2:H21), and minus for the lower
Chartline chart of the averages, with three extra series for the centre line and limits
Try it yourself: Why read the R chart before the Xbar chart?

The Xbar limits are calculated from the average range. If the ranges aren't stable, the Xbar limits are wrong.

In the roles

How a Process Improvement Specialist uses it

5 waits a day for 20 days: centre 4.42, limits 1.85 to 6.99; day 14 (a doctor off sick) above the limit.

Questions people ask

Control limits or specification limits?

Different things. Control limits come from the process; specification limits from the customer. Never draw specification limits on an Xbar chart.

Related techniques

← All techniques and tools