Quality · Variables Charts

X̄-S Chart (Means & Std Devs)

X̄ and S control charts for rational subgroups; the sample standard deviation estimates within-subgroup variation.

In the menus Quality › Variables Charts › X̄-S Chart (Means & Std Devs)

Also searched as xbar s x bar s standard deviation chart s chart

When to use it

You can form rational subgroups and want the most efficient estimate of within-subgroup variation, especially for larger subgroups.

When not to: 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).

Step by step

  1. Open it from the menu

    Click Quality in the menu bar; under Variables Charts choose X̄-S Chart (Means & Std Devs).

  2. Fill in the form

    Choose the columns: What you measured (a number column), Subgroups (optional). The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: Subgroup size. Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the X̄-S Chart (Means & Std Devs) form
What you measured (a number column) Measurement requiredOne numeric column. The continuous measurement
Subgroups (optional) SubgroupOne categorical or ordered categorical or numeric column. Column naming the sample each reading came from (text or numeric: batch, hour, shift, machine). Leave Subgroup size blank when you pick one.
Subgroup sizeLeave blank to use the Subgroup column; enter a whole number of 2 or more to cut consecutive rows into subgroups of that size instead. One of the two is required.

How to read the card

The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.

What it assumes

Independence of observations

If it does not hold: 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.

How to check: 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)

If it does not hold: 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).

How to check: Not checked by KernelStats: no normality test is run on the subgroup standard deviations or the raw data.

A worked example

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.

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.

From the Statistics Library.

The code tabs

Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • With 15 measurements per batch, is the process mean and spread stable?
  • Explain the X-bar-S chart (subgroup means and standard deviations) in plain words.
  • What does control limits mean?

Last reviewed November 16, 2026.

Report an unclear step