5.3 X-bar and R Charts
Key Takeaways
- The X-bar and R chart pair is the standard variables control chart for continuous data collected in rational subgroups of size n = 2 to n = 9 (typically n = 4 or n = 5).
- The R chart monitors process dispersion (spread) while the X-bar chart monitors process central tendency (location); the R chart must ALWAYS be evaluated and brought into statistical control first.
- Control limits are computed using standard Shewhart factors: UCL_xbar, LCL_xbar = X-double-bar ± A2 * R-bar; UCL_R = D4 * R-bar; and LCL_R = D3 * R-bar (where D3 = 0 for n ≤ 6).
- The true population standard deviation σ is estimated from the average range as sigma_hat = R-bar / d2, providing the foundation for subsequent process capability calculations.
- Establishing standard control limits requires collecting 20 to 25 baseline subgroups, evaluating the R chart, investigating points beyond limits for assignable causes, discarding subgroups with verified assignable causes, and recalculating revision limits.
5.3 X-bar and R Charts
When quality technicians monitor continuous variables data—such as machined shaft diameters, stamped bracket thicknesses, chemical bath temperatures, or electrical resistance—the $\bar{X}$ and $R$ control chart pair is the foundational statistical tool of industry. Developed by Dr. Walter Shewhart, this paired chart system monitors both the central tendency (location) and the dispersion (spread) of a manufacturing process over time.
To pass the ASQ CQT examination and successfully establish SPC on the shop floor, technicians must be able to calculate subgroup means and ranges, compute trial centerlines and control limits using standard factor tables, execute the mandatory sequence of evaluating process spread before process location, eliminate confirmed assignable causes, and estimate the process standard deviation ($\hat{\sigma}$).
1. Application Scope: Why Variables Data and Paired Charts?
Continuous Variables Data
Variables data consists of quantitative measurements along a continuous numerical scale (e.g., millimeters, inches, pounds, foot-pounds, degrees Celsius, ohms). Variables data contains substantially more statistical information than attribute data (pass/fail or go/no-go). While an attribute check sheet only tells you whether a part is acceptable, variables data reveals where the process is centered within the tolerance band and how tightly the measurements cluster.
Subgroup Size ($n$)
The $\bar{X}$ and $R$ chart is designed specifically for subgroup sizes from $n = 2$ to $n = 9$, with $n = 4$ or $n = 5$ representing the industry standard. Subgroup sizes larger than 9 cause the range to lose statistical efficiency, requiring the sample standard deviation ($s$) to replace the range ($R$).
The Necessity of Paired Charts
Any continuous probability distribution is fundamentally characterized by two independent parameters: its central tendency ($\mu$) and its dispersion ($\sigma$). Monitoring only one parameter leaves the technician blind to half of all potential manufacturing failures:
- Mean Shifts with Constant Dispersion: Tool wear, thermal drift, or incorrect machine offsets shift the average part diameter toward the Upper Specification Limit, while piece-to-piece repeatability remains unchanged. This is detected by the $\bar{X}$ chart.
- Dispersion Expands with Constant Mean: Bearing looseness, spindle runout, inconsistent raw material hardness, or operator clamping inconsistency widens the overall spread of parts, while the average remains centered on nominal. This is detected by the $R$ chart.
CASE 1: Mean Shifts, Spread Constant CASE 2: Spread Expands, Mean Constant
(Caught by X-bar) (Caught by R)
Shifted Mean Expanded Spread
| <----------->
. | . . | .
. | . . | .
. | . . | .
---------+--------- --------------+--------------
Target Target
2. Core Mathematical Formulas
For a baseline study consisting of $k$ rational subgroups, each containing $n$ measured observations:
Step 1: Subgroup Statistics
For each individual subgroup $i$ (where $i = 1, 2, \dots, k$):
- Subgroup Average ($\bar{X}_i$):
- Subgroup Range ($R_i$):
Step 2: Centerlines (Grand Mean and Average Range)
- Grand Mean ($\bar{\bar{X}}$) (Centerline for the $\bar{X}$ chart):
- Average Range ($\bar{R}$) (Centerline for the $R$ chart):
Step 3: Range ($R$) Chart Control Limits
Control limits for process dispersion are computed first:
[!IMPORTANT] Critical CQT Fact: $D_3 = 0$ for $n \le 6$ For subgroup sizes of $n = 2, 3, 4, 5,$ and $6$, the factor $D_3$ does not exist or is mathematically defined as 0. Therefore, for $n \le 6$, $LCL_R = 0$. There is no lower control limit for the range chart because obtaining a sample range of zero in small samples is within normal common cause variation.
Step 4: Average ($\bar{X}$) Chart Control Limits
Control limits for process location are computed using factor $A_2$:
Derivation of Factor $A_2$
Where does factor $A_2$ originate? Shewhart derived $A_2$ directly from statistical theory. The true $3\sigma$ control limits for subgroup averages are $\bar{\bar{X}} \pm 3\sigma_{\bar{X}} = \bar{\bar{X}} \pm 3(\sigma / \sqrt{n})$. Because the population standard deviation $\sigma$ is unknown, it is estimated from the average range as $\hat{\sigma} = \bar{R} / d_2$. Substituting $\hat{\sigma}$ into the control limit equation yields:
Step 5: Estimating Process Standard Deviation ($\hat{\sigma}$)
To calculate process capability ($C_p, C_{pk}$) from an $\bar{X}$ and $R$ chart, the within-subgroup population standard deviation $\hat{\sigma}$ is estimated using the standard factor $d_2$:
3. Standard Factor Table for $\bar{X}$ and $R$ Charts
The standard factors established by the American Society for Quality (ASQ) and ASTM are provided in the reference table below for subgroup sizes $n = 2$ through $n = 10$:
| Subgroup Size ($n$) | $d_2$ | $A_2$ | $D_3$ | $D_4$ |
|---|---|---|---|---|
| 2 | 1.128 | 1.880 | 0 | 3.267 |
| 3 | 1.693 | 1.023 | 0 | 2.574 |
| 4 | 2.059 | 0.729 | 0 | 2.282 |
| 5 | 2.326 | 0.577 | 0 | 2.114 |
| 6 | 2.534 | 0.483 | 0 | 2.004 |
| 7 | 2.704 | 0.419 | 0.076 | 1.924 |
| 8 | 2.847 | 0.373 | 0.136 | 1.864 |
| 9 | 2.970 | 0.337 | 0.184 | 1.816 |
| 10 | 3.078 | 0.308 | 0.223 | 1.777 |
Key Patterns to Memorize for the CQT Exam:
- As sample size $n$ increases, $A_2$ decreases because larger samples have a smaller standard error ($\sigma / \sqrt{n}$), pulling the control limits closer to the grand mean.
- As sample size $n$ increases, $D_4$ decreases because larger samples have a higher probability of capturing extreme values, stabilizing the expected sample range.
- $D_3$ is zero for $n \le 6$, and becomes a positive decimal starting at $n = 7$ ($D_3 = 0.076$).
4. Step-by-Step Construction and Limit Revision Workflow
Constructing an operational control chart requires an orderly engineering sequence:
[Phase 1: Setup] Select critical-to-quality (CTQ) characteristic;
Verify Gage R&R < 10% on measurement system.
|
v
[Phase 2: Baseline] Collect 20 to 25 rational subgroups (k = 20-25,
typically n = 4 or 5; 100+ total pieces).
|
v
[Phase 3: Compute] Calculate X-bar_i and R_i for each subgroup;
Calculate centerlines X-double-bar and R-bar;
Calculate trial control limits (A2, D3, D4).
|
v
[Phase 4: R Chart] CRITICAL: Evaluate the R Chart FIRST!
Are all range points in statistical control?
/ \
YES NO --> Investigate assignable cause.
| Found? Discard subgroup & recalculate.
| Not found? Retain point; resolve cause.
v
[Phase 5: X-bar Chart] Evaluate the X-bar Chart against stable R-bar.
Investigate out-of-control means for assignable causes.
|
v
[Phase 6: Release] Lock in final standard limits for live shop-floor monitoring.
Why Evaluate the $R$ Chart FIRST?
The most critical procedural rule in variables control charting is: Always evaluate the $R$ chart before interpreting the $\bar{X}$ chart.
The mathematical justification is absolute: The control limits for the $\bar{X}$ chart are calculated directly from $\bar{R}$ ($UCL, LCL = \bar{\bar{X}} \pm A_2 \bar{R}$). If the $R$ chart is out of control, process dispersion is unstable. An unstable dispersion means that $\bar{R}$ is a distorted, mathematically invalid estimate of process variability. If the estimate of variation is invalid, the control limits on the $ar{X}$ chart are completely fictitious! Evaluating $ar{X}$ limits when the $R$ chart is out of control is an exercise in futility.
Protocol for Handling Out-of-Control Trial Points
When a point on the initial trial $R$ or $\bar{X}$ chart falls outside control limits:
- Investigate for Assignable Causes: The technician must immediately examine machine logs, setup sheets, and maintenance records for that specific time window (e.g., tool chipped, broken coolant nozzle, wrong material heat loaded).
- If an Assignable Cause is Identified and Corrected: The out-of-control subgroup is discarded from the baseline dataset. The centerlines ($\bar{\bar{X}}$ and $\bar{R}$) and control limits are recalculated using the remaining $k - 1$ subgroups.
- If No Assignable Cause Can Be Found: The point cannot be discarded! Arbitrarily scrubbing out-of-control points without an engineering assignable cause is known as 'data scrubbing' or 'cherry-picking,' which artificially narrows limits and creates false confidence in an unstable system.
5. Fully Worked Shop-Floor Numerical Example: CNC Shaft Turning
Scenario
A precision machine shop is establishing an $\bar{X}$ and $R$ control chart for the outer diameter of a hydraulic actuator shaft turned on a CNC lathe. Engineering drawing callout is $35.000 \pm 0.050\text{ mm}$ ($LSL = 34.950\text{ mm}, USL = 35.050\text{ mm}$).
The quality technician collects $k = 20$ baseline rational subgroups of size $n = 5$ consecutive shafts across two production shifts (100 total shafts measured with an optical shaft gage).
Baseline Dataset Summary
Sum of all 20 subgroup means:
Sum of all 20 subgroup ranges:
Subgroup 8 recorded the following statistics: $\bar{X}_8 = 35.034\text{ mm}$, $R_8 = 0.065\text{ mm}$.
Step 1: Calculate Initial Trial Centerlines
Step 2: Retrieve Standard Factors for $n = 5$
From the factor table for $n = 5$:
Step 3: Compute Initial Trial Limits for the $R$ Chart
Step 4: Evaluate the $R$ Chart
The technician examines all 20 subgroup ranges against $UCL_R = 0.0592\text{ mm}$:
- Subgroup 8 recorded a range of $R_8 = 0.0650\text{ mm}$.
- Since $0.0650 > 0.0592$, Subgroup 8 is out of control on the $R$ chart!
Step 5: Assignable Cause Investigation
The technician reviews the CNC maintenance log for Subgroup 8 (produced at 10:15 AM). The log reveals that the lathe's secondary coolant nozzle became clogged with aluminum swarf, causing thermal shocking and severe chipping on the carbide insert. The operator noticed the smoke, cleared the swarf, and indexed to a fresh carbide insert.
- Conclusion: A verified, documented assignable cause exists and has been physically eliminated.
- Action: Discard Subgroup 8 from the baseline study and recalculate revised limits with $k = 19$ subgroups.
Step 6: Recalculate Revised Centerlines ($k = 19$)
Subtract Subgroup 8 values from the original sums:
Step 7: Recalculate Revised $R$ Chart Limits
Checking the remaining 19 subgroup ranges against the revised $UCL_{R,\text{rev}} = 0.0551\text{ mm}$: the highest remaining range is $R_3 = 0.048\text{ mm}$, which is well below $UCL_R$. The $R$ chart is now in statistical control!
Step 8: Compute Final Control Limits for the $\bar{X}$ Chart
Now that dispersion is stable, compute limits for process location:
Checking all 19 subgroup averages against these limits confirms that all points fall safely between $35.0043\text{ mm}$ and $35.0343\text{ mm}$. The process is in a verified state of statistical control.
Step 9: Estimate Population Standard Deviation ($\hat{\sigma}$)
This estimated $\hat{\sigma} = 0.01120\text{ mm}$ will now serve as the official denominator for calculating process capability ($C_p, C_{pk}$).
6. Common Technician Exam Pitfalls
Be prepared for these classic traps on the ASQ CQT exam:
- Exam Trap: Calculating $\bar{X}$ Limits Before Checking $R$: Questions often present a dataset with an out-of-control range point and ask for the $\bar{X}$ limits. If an assignable cause is present, you must discard the subgroup and recalculate $\bar{R}$ before computing $\bar{X}$ limits.
- Exam Trap: Confusing $d_2$ with $\sqrt{n}$: When estimating process standard deviation, remember: $\hat{\sigma} = \bar{R} / d_2$. Never divide by $\sqrt{n}$! Dividing by $\sqrt{n}$ gives the standard error of the mean, not the standard deviation of individual pieces.
- Exam Trap: Forgetting $D_3 = 0$: Exam questions love to test whether candidates remember that $LCL_R$ is 0 for $n = 2, 3, 4, 5, 6$. If a calculation gives a negative number, $LCL_R$ is automatically set to zero.
- Exam Trap: Confusing $A_2$ with $A_3$: Factor $A_2$ is used exclusively with the Average Range ($\bar{R}$). Factor $A_3$ is used exclusively with the Average Sample Standard Deviation ($\bar{s}$).
A quality technician is establishing an X-bar and R control chart for the thickness of rolled brass strip. A baseline study of 25 rational subgroups of size n = 4 yields a grand mean of X-double-bar = 1.2500 inches and an average range of R-bar = 0.0080 inches. Using the standard factor A2 = 0.729, what are the Upper and Lower Control Limits for the X-bar chart?
When constructing and interpreting a trial Shewhart X-bar and R control chart from initial baseline data, why is the quality technician strictly required to evaluate and bring the R chart into statistical control BEFORE evaluating the X-bar chart?
An initial baseline capability study of an automated plastic injection molding operation collects 20 subgroups of size n = 5, yielding an average range of R-bar = 0.02326 mm. Assuming the range chart demonstrates statistical control, what is the estimated population standard deviation (sigma_hat) of the process using factor d2 = 2.326?