Process
Subgroup Control Chart Calculator (X̄-R and X̄-s)
Paste subgrouped measurements in collection order and get the X̄ chart and the range or standard deviation chart, with centre lines, control limits from the control chart constants and every subgroup that falls outside them. Every value is entered by you; the tool adds no data of its own.
01Inputs
02Result
Chart details
03Method
Use this tool when measurements come in rational subgroups, a few readings taken close together under the same conditions, and you want to know whether the process mean and its within-subgroup spread are stable before you trust the mean or compute capability. It computes the X̄ chart together with the R chart or the s chart from the subgroups themselves, never from the specification, using the constants of the control chart constants guide, and lists the subgroups outside the limits. It assumes the subgroups are in time order, that every subgroup has the same size, and that the readings inside a subgroup differ only by common-cause variation. For single readings taken one at a time use the I-MR Control Chart Calculator; for counts of defectives or defects use the Attribute Control Chart Calculator.
AHow it is calculated
The tool works on m subgroups of n readings each, in the order given, and on a baseline of the first k subgroups (all m when no baseline is entered):
- Each subgroup gives its mean, its range and its standard deviation, the last with n − 1 in the denominator.
- The centre lines are the means of those statistics over the baseline subgroups.
- The X̄-R chart estimates σ from the average range and sets the X̄ limits with A₂ and the range limits with D₃ and D₄.
- The X̄-s chart estimates σ from the average standard deviation and sets the X̄ limits with A₃ and the s limits with B₃ and B₄.
- d₂, d₃ and c₄ for n = 2 to 25 are the unrounded values of the site's control chart constants validation set, behind the control chart constants guide; the six chart factors are derived from them by the guide's formulas, and D₃ and B₃ are 0 when the formula comes out negative.
- Every subgroup mean above the X̄ UCL or below its LCL is listed, and every range or standard deviation above its UCL, or below its LCL when that LCL is above 0 (from n = 7 for D₃ and n = 6 for B₃). Only these single-point tests are applied, with no run rules.
Worked example: 15 panels measured at four sites each, in µm, from the control chart constants guide. The subgroup means run from 24.1000 to 25.7000 and the ranges from 0.2000 to 1.7000; X̿ = 24.9133, R̄ = 1.2733 and, with n = 4, σ̂ = R̄/d₂ = 0.6185. The X̄ limits are 24.9133 ± 0.7286 × 1.2733, that is 23.9856 to 25.8411 from the unrounded values, and the R chart UCL is 2.2821 × 1.2733 = 2.9058 with LCL 0; no subgroup falls outside. Switching to the s chart gives s̄ = 0.5722, σ̂ = s̄/c₄ = 0.6211, X̄ limits 23.9817 to 25.8450 and s chart UCL 1.2967, the same picture by the other route.
BScope and limitations
- Single-point tests only. A subgroup mean outside the X̄ limits or a range (or s) outside its limits is flagged; run rules are not applied. The Glossary entry Run rules says what they are, and Control chart run rules compares the common rule sets and their false-alarm rates; apply only a rule set you have chosen and validated.
- Read the R or s chart first. The X̄ limits are built from R̄ or s̄; if the within-subgroup spread is not stable, the X̄ limits are built on sand. A range above its UCL is a change in spread, not in level.
- The limits are only as good as the baseline. With all subgroups used, a level shift inflates nothing in R̄ but moves X̿ toward the shifted side and hides part of the shift; with a baseline of stable subgroups the limits are fixed and later shifts stand out. Decide the baseline before looking at the chart.
- Rational subgroups. The constants assume the readings inside a subgroup are independent draws from the same distribution at that moment. Four sites on one panel measured within minutes qualify; four consecutive lots pooled into one "subgroup" do not, and the chart then confuses between-lot drift with within-subgroup spread. The Glossary entry Rational subgroup says more, and Rational subgrouping works an example in which one reading from each of four heads widens the limits about twofold.
- Equal subgroup sizes. The constants depend on n, and the tool requires every subgroup to have the same size. Unequal sizes need per-subgroup constants and are not supported here.
- Range or standard deviation. For n up to about 10 the range uses nearly all the information in the subgroup; above that the s chart is the better estimator, which is why the constants guide prints both routes. The two routes give slightly different X̄ limits from the same data; neither is wrong.
- The constants are carried unrounded (d₂, d₃ and c₄ from the site's validation set, the chart factors derived from them), so the results match the constants guide's worked example; a hand calculation with the printed three-decimal factors differs in the third decimal of a limit.
- Control limits are not specification limits, and a chart with no point outside shows only that there is no single-point signal; it says nothing about capability. The Process Capability Calculator answers that from the same readings, and the Which control chart for which data guide says when a subgroup chart is the right chart at all.
CCommon mistakes
- Choosing the constants by the number of subgroups. The row is the number of readings inside one subgroup (n = 4 in the example), not the number of subgroups (15). The wrong row gives limits that are wrong by a factor, not by a rounding.
- Pairing R-chart factors with s̄, or s-chart factors with R̄. A₂, D₃ and D₄ multiply R̄; A₃, B₃ and B₄ multiply s̄. Crossed over, the X̄ limits in the example would be 0.42 µm wide on each side instead of 0.93.
- Setting the limits from the specification. Control limits come from the subgroups' own spread; specification limits say what the customer needs. Putting the latter on a chart invites reacting to noise or missing a shift.
- Recomputing the limits every time a subgroup is added. Limits from a baseline are meant to be held; refreshing them with every subgroup lets a slow drift hide inside them.
- Reading the X̄ chart before the R chart. If a range is out of control, the X̄ limits computed from R̄ are not valid yet; fix the spread signal first.
- Treating σ̂ = R̄/d₂ as the overall standard deviation. It estimates the within-subgroup spread; the standard deviation of all readings pooled includes any drift between subgroups, and the two need not agree in either direction. The Cpk vs Ppk guide is built on that difference.
Related tools
- Loading…
Further reading
- NIST/SEMATECH e-Handbook of Statistical Methods, Section 6.3.2.1, Shewhart X̄ and R and S Control Charts.
- Montgomery, D. C., Introduction to Statistical Quality Control, 7th ed., Wiley, 2013, Chapter 6 (control charts for variables) and Appendix VI (factors for constructing variables control charts).
- Kitstead Labs guides: Control chart constants, Which control chart for which data, I-MR control charts, Control chart run rules, Rational subgrouping.