How are the limits computed?
Average the subgroup means to get X-double-bar and the ranges to get R-bar. X-bar limits are X-double-bar ± A2 × R-bar. R limits are D3 × R-bar and D4 × R-bar. Within-subgroup sigma is often estimated as R-bar/d2, and then used for Cpk.
| Statistic | Formula used here | Demo value |
|---|---|---|
| X-double-bar | Mean of subgroup means | 20.010 mm |
| R-bar | Mean of subgroup ranges | 0.036 mm |
| X-bar UCL / LCL | X-double-bar ± A2 × R-bar (n=5, A2=0.577) | 20.031 / 19.989 mm |
| R UCL / LCL | D4 × R-bar / D3 × R-bar (D4=2.114, D3=0) | 0.076 / 0.000 mm |
| Within σ estimate | R-bar / d2 (d2=2.326 for n=5) | 0.0155 mm |
| Cp | (USL − LSL) / (6σ) | 3.230 |
| Cpk | min( (USL − X-bar)/(3σ), (X-bar − LSL)/(3σ) ) | 3.019 |
| Ppk | Same form with overall sample standard deviation | 1.793 |
The NIST/SEMATECH e-Handbook: Shewhart Control Charts discusses Shewhart charts in public, citable language.
What is the demo actually showing?
Ten subgroups of five. Subgroup 6’s mean is 20.070 mm, above the X-bar UCL of 20.031 mm. The ranges are not the story; the location shift is. Cpk remains 3.019 because the within-subgroup estimate is still small.
| Subgroup | X-bar | Range | Alert |
|---|---|---|---|
| 1 | 20.002 | 0.050 | — |
| 2 | 20.020 | 0.040 | — |
| 3 | 19.990 | 0.040 | — |
| 4 | 20.014 | 0.030 | — |
| 5 | 19.996 | 0.030 | — |
| 6 | 20.070 | 0.040 | Outside X-bar limits |
| 7 | 20.004 | 0.030 | — |
| 8 | 19.990 | 0.040 | — |
| 9 | 20.016 | 0.030 | — |
| 10 | 19.996 | 0.030 | — |
| Average | 20.010 | 0.036 |
When is X-bar and R the wrong chart?
- When the data are individuals and you invented subgroups after the fact.
- When n is larger than 5 and you need constants this preview does not include — use a method you can cite, not a silent extrapolation in our form.
- When the subgroup is not a logically alike set (mixed cavities, mixed lots).
How can you rebuild the example?
Download the sample CSV
Open it in Excel or Google Sheets.
Set n = 5 in the preview
Leave the demo specs if you want the same indices.
Confirm subgroup 6 is flagged
And that Cpk and Ppk both appear.
Then replace the values with yours
Never show the demo as a customer study.
SPC Charts is a calculation and charting tool, not a substitute for a quality system, a process-validation study, or professional statistical advice. It is not affiliated with NIST, ISO, AIAG or any standards body.
Frequently asked questions
Why not always use individuals?
If you truly have rational subgroups, X-bar and R uses that structure. If you do not, I-MR is the more honest chart.
Which constants do you use for n = 5?
A2 = 0.577, d2 = 2.326, D4 = 2.114, D3 = 0.
Can I try this free?
Yes. The in-browser preview is free.
How much does the software cost?
$29 per run, $22 a month or $209 a year.
Official source. Chart and capability methods on this page follow NIST/SEMATECH e-Handbook: Shewhart Control Charts. Always confirm current rules and rates with your base jurisdiction before filing.