Understand the idea
This is the X-bar-R chart's more efficient cousin. Both track subgroup means over time to catch drift in where the process is centered, and both pair that with a second chart tracking how spread out each subgroup is. The difference is HOW spread is measured: X-bar-R uses the range (just the biggest minus the smallest value in each subgroup), while X-bar-S uses the standard deviation, which takes every single reading in the subgroup into account rather than only the two extremes.
Using every reading matters more as subgroups get bigger. With only 4-5 readings, the range and the standard deviation give you nearly the same information. But with 15 or 20 readings per subgroup, the range is throwing away most of the data (it only looks at the extremes), while the standard deviation is squeezing information out of every point, which is why the standard convention switches to X-bar-S once subgroups get larger than about 10.
As with its X-bar-R sibling, check the S chart (the spread chart) before trusting the X-bar chart (the mean chart), because the mean chart's limits are built directly from the average spread: if the spread itself is unstable, the mean limits built on top of it are not trustworthy either.
An X-bar S chart is a means and standard deviations chart: the S part plots each subgroup's standard deviation, which works better than the range for subgroups larger than about 10.
Practitioner explanation
KernelStats computes s-bar (mean of subgroup standard deviations, each with ddof=1) and the grand mean x-double-bar, with X-bar limits x-double-bar +/- A3*s-bar and S-chart limits CL=s-bar, UCL=B4*s-bar, LCL=B3*s-bar, using the tabulated SPC constants A3/B3/B4/c4. Subgroups come from a Subgroup column (text or numeric) or, with that column left blank, from a 'Subgroup size' of 2 or more that cuts consecutive rows into fixed-size subgroups; the size field is blank by default, one of the two is required, and when both are given the column wins and the card says the size was ignored, the same rule on every Quality form. As on X-bar-R, every dropped blank or non-numeric row, every subgroup left with fewer than two usable readings and any trailing partial chunk is listed on the card, while subgroups of unequal size are refused with a message naming them. Unlike the X-bar-R chart, this function does NOT enforce a hard ceiling on subgroup size: for a subgroup size n beyond the tabulated table, c4(n) = sqrt(2/(n-1)) * Gamma(n/2)/Gamma((n-1)/2) is computed analytically and A3/B3/B4 derived from it, so the chart remains well-defined for large or unusual subgroup sizes rather than refusing outright.
As with X-bar-R, only Rule 1 (beyond 3-sigma) and Rule 2 (a run of 8 on one side) are applied, and Rule 2 is applied only to the X-bar (means) panel; the S panel uses Rule 1 alone, for the same reason as every other paired variables chart in KernelStats: consecutive subgroup statistics on the spread panel do not carry the same kind of process-drift signal a run rule is designed to catch on a means panel.
When the X-bar panel signals but the S panel is clean, KernelStats's own warning text explicitly states that 'check the S chart first' does NOT clear the X-bar limits in that case: the process spread is stable, so the signal is genuinely about where the process is CENTERED, not an artifact of an unstable spread estimate contaminating the mean limits. This distinction is surfaced directly in the card's interpretation rather than left for the analyst to work out.
When to use it
Consider it when
Rational subgroups can be formed and the subgroup size is larger than about 10, where the standard deviation makes more efficient use of every observation than the range would.
Use caution when
Subgroups are small (n <= 10, where the simpler range-based X-bar-R chart is the traditional choice and performs nearly as well), or there is no natural way to group readings into rational subgroups at all (use an I-MR chart on individual readings instead).
Formulas and symbols
X-bar chart limits
x-double-bar the grand mean; s-bar the mean of subgroup standard deviations; A3 the tabulated SPC constant for subgroup size n.
S chart limits
B3, B4 the tabulated (or analytically derived, for large n) SPC constants for subgroup size n.
Estimated process sigma
c4 unbiases the sample standard deviation; computed analytically for subgroup sizes beyond the tabulated constant table.
Assumptions and checks
- Independence of observations. Autocorrelated subgroup means make the X-bar chart's limits wrong: with positive autocorrelation the means wander more from subgroup to subgroup than the within-subgroup standard deviation predicts, so the limits are too tight and false alarms multiply, while negative autocorrelation can mask a real shift or alternating pattern.
In KernelStats: Ljung-Box lag-1 test on the subgroup means, reported directly on the card as an 'Independence & rational ordering' check; not testable on fewer than 8 subgroups or a zero-variance series, which the card states honestly rather than fabricating a verdict.
- Normality (of residuals, not of the raw data). X-bar chart limits assume the subgroup means are normal; with reasonably sized subgroups the Central Limit Theorem makes this fairly robust even when individual values are non-normal, but small subgroups of strongly skewed data can still distort the true false-alarm rate, and the companion S chart's own limits assume the underlying individual values are normal (via the c4 constant used to estimate sigma).
In KernelStats: Not checked by KernelStats: no normality test is run on the subgroup standard deviations or the raw data.
Alternatives
- X̄-R Chart (Means & Ranges). Subgroup size is small (n <= 10), where the range-based chart is the traditional, simpler choice and loses little efficiency relative to the standard deviation.
- I-MR Chart (Individuals & Moving Range). There is no natural way to form rational subgroups: readings arrive one at a time.
Worked example
Scenario
20 batches of 15 measurements each from a chemical process, monitoring both mean concentration and its within-batch variability.
Result
x-double-bar = 8.502%, s-bar = 0.041%, X-bar limits 8.502 +/- 0.789 x 0.041 = [8.470, 8.534], S-chart UCL = B4 x s-bar = 1.572 x 0.041 = 0.064%; all subgroups fall within limits on both panels.
Interpretation
With 15 readings per batch, using the standard deviation rather than the range makes fuller use of every measurement, and the process shows no signal on either the centering or the spread panel, consistent with a process in statistical control at this subgroup size.
Common misconceptions
Misconception
If the X-bar panel signals but the S panel is clean, the standard SPC advice to 'check the spread chart first' means the mean-chart signal should be discounted.
Correction
A clean S chart confirms the within-subgroup SPREAD is stable, so the width of the X-bar limits (built from s-bar) is not being distorted by erratic spread; it does not discount a genuine X-bar signal. (In Phase I a shifted subgroup still pulls the grand mean, so the limits remain provisional until assignable causes are removed.) When the S chart is clean and the X-bar chart signals, the process's spread is fine and the issue is specifically that the process has shifted CENTER; that signal should be investigated on its own terms, not waved away because 'the spread chart looked okay'.
Misconception
The range and the standard deviation give essentially the same information about within-subgroup spread at any subgroup size, so X-bar-R and X-bar-S are interchangeable.
Correction
The range only uses the two extreme values in each subgroup, discarding everything in between; the standard deviation uses every observation. At small subgroup sizes (roughly n <= 10) the difference in efficiency is minor, but as subgroups grow larger the range wastes a growing share of the available information, which is exactly why the standard convention switches to the standard-deviation-based chart above that size.
References
- NIST/SEMATECH e-Handbook of Statistical Methods, §6.3.2 Shewhart control charts, NIST/SEMATECH (2012), §6.3.2.
- Introduction to Statistical Quality Control, Montgomery, D. C. (2019), §6.4.
