When to use it
You can form small rational subgroups (e.g. 5 parts per hour) and want to monitor the process mean and its short-term spread.
When not to: Subgroup size exceeds about 10 (the range becomes a less efficient estimator of spread than the standard deviation; use X-bar-S instead), subgroups cannot be made a constant size, or there is no natural way to group readings into rational subgroups at all (use an I-MR chart on individual readings).
Step by step
Open it from the menu
Click Quality in the menu bar; under Variables Charts choose X̄-R Chart (Means & Ranges).
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.
Check the options
The options start at their defaults: Subgroup size. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| What you measured (a number column) Measurement required | One numeric column. The continuous measurement |
|---|---|
| Subgroups (optional) Subgroup | One 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 size | Leave 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 range 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 (n = 2-3) of strongly skewed data can still distort the true false-alarm rate, and the companion R chart's own limits assume the underlying individual values are normal.
How to check: Not checked by KernelStats: no normality test is run on the subgroup means or the raw data.
A worked example
25 hourly subgroups of 5 shaft-diameter measurements each, one subgroup containing a known tooling malfunction.
Result: x-double-bar = 25.002mm, R-bar = 0.018mm, X-bar limits 25.002 +/- 0.577 x 0.018 = [24.992, 25.012], R-chart UCL = 0.038mm; the malfunction subgroup's mean falls just above the X-bar UCL while its range stays well within the R-chart limits.
The signal appears only on the X-bar panel, meaning the malfunction shifted where the process was centered without making it any more erratic within that hour, which is why a clean R chart cannot be read as a clean process: checking only the R chart would have missed this.
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:
- Are the hourly samples of shaft diameter staying on target and stable?
- Explain the X-bar-R chart (subgroup means and ranges) in plain words.
- What does control limits mean?
Last reviewed November 16, 2026.
