Sub topic 7
The Average and Range Method
This chapter assumes you know how a crossed gage R&R study is laid out (parts, operators, replicates) and that repeatability and reproducibility are the two parts of measurement variation. It also assumes you are comfortable with standard deviation and with the range of a small sample.
What the method does
The average and range method estimates gage R&R from two kinds of summary: ranges and averages. It needs no analysis of variance table, so you can do it with a calculator and a table of constants. It was the standard hand method for decades and still appears in the AIAG Measurement Systems Analysis manual.
It rests on one fact: for a small sample from a normal distribution, the expected range is a known multiple of the standard deviation. If you divide an average range by the right constant, you get an estimate of sigma. The constants come from tables of d2 (and d2*, a small-sample correction).
The method produces four estimates:
| Quantity | Symbol | Meaning | Source of the estimate |
|---|---|---|---|
| Equipment variation | EV | Repeatability | Average range of repeated measurements |
| Appraiser variation | AV | Reproducibility | Spread of the operator averages |
| Gage R&R | GRR | Total measurement variation | Combination of EV and AV |
| Part variation | PV | Real part-to-part variation | Range of the part averages |
Data layout and summary statistics
Take a crossed study with p parts, o operators and r trials. Every operator measures every part r times, in randomized order and blind to the part identity.
From the raw data, compute four things:
- For each part-operator cell, the range of its r measurements.
- For each operator, the average of those cell ranges. Call it R̄ for that operator. The mean of the operator values is R̿ (R double bar), the grand average range.
- For each operator, the average of all that operator's measurements. X̄DIFF is the largest operator average minus the smallest.
- For each part, the average over all operators and trials. Rp is the largest part average minus the smallest.
The formulas
Write each constant as the reciprocal of a d2 value. That gives a standard deviation (1 sigma) rather than a 5.15-sigma or 6-sigma spread. Multiply by your chosen spread multiplier at the end.
Repeatability (EV). Divide the grand average range by d2 for r trials:
EV = R̿ / d2(r)
For 2 trials d2 is 1.128 (K1 = 0.886). For 3 trials d2 is 1.693 (K1 = 0.591).
Reproducibility (AV). The operator averages differ because of true operator differences and also because each average still contains repeatability noise. So you subtract that noise:
AV = sqrt( (X̄DIFF / d2*(o))² − EV² / (p × r) )
Here d2* for one range of o values is 1.414 for 2 operators and 1.912 for 3 operators. The term EV²/(p r) is the variance of one operator's average due to repeatability alone, because each operator average is built from p × r readings. If the expression under the square root is negative, set AV to 0. This is the same truncation that the ANOVA method uses for negative variance components.
Gage R&R.
GRR = sqrt( EV² + AV² )
Part variation. Use the range of the part averages and d2* for p parts:
PV = Rp / d2*(p)
The d2* values for a single range are 2.239 (4 parts), 2.481 (5), 2.673 (6), 2.830 (7), 2.963 (8), 3.078 (9) and 3.179 (10). For 10 parts, K3 = 1/3.179 = 0.315.
Total variation.
TV = sqrt( GRR² + PV² )
Then %GRR = 100 × GRR / TV. For %tolerance use 100 × 6 × GRR / (USL − LSL). The number of distinct categories is ndc = floor(1.41 × PV / GRR).
Worked example
A study uses 10 parts, 3 operators and 2 trials, so each operator average rests on 20 readings. The summary statistics are:
| Statistic | Value |
|---|---|
| Average range, operator A | 0.15 |
| Average range, operator B | 0.19 |
| Average range, operator C | 0.17 |
| Operator averages | 10.02, 9.98, 10.05 |
| Range of the part averages (Rp) | 3.10 |
| Tolerance (USL − LSL) | 6.0 |
The calculation runs as follows:
- R̿ = (0.15 + 0.19 + 0.17) / 3 = 0.17. So EV = 0.17 / 1.128 = 0.151.
- X̄DIFF = 10.05 − 9.98 = 0.07. Then (0.07 / 1.912)² = 0.001340, and EV² / 20 = 0.022680 / 20 = 0.001134. The difference is 0.000206, so AV = 0.014.
- GRR = sqrt(0.022680 + 0.000206) = 0.151.
- PV = 3.10 / 3.179 = 0.975.
- TV = sqrt(0.022886 + 0.95122) = 0.987.
The results are:
| Metric | Value |
|---|---|
| %Contribution of GRR | 100 × 0.022886 / 0.97411 = 2.3% |
| %Study variation (%GRR) | 100 × 0.151 / 0.987 = 15.3% |
| %Tolerance | 100 × 6 × 0.151 / 6.0 = 15.1% |
| ndc | floor(1.41 × 0.975 / 0.151) = 9 |
Nearly all of the measurement variation is repeatability (EV is 15.3% of TV, AV is 1.5%). That points to the gage or the measurement procedure, not to operator technique. Chapter 10 covers how to judge these numbers against acceptance guidelines.
The same calculation in code
The function below follows the formulas above. It takes data shaped (parts, operators, trials) and supports 2 to 5 trials, 2 to 10 operators and 2 to 10 parts, which are the ranges covered by the constants.
import numpy as np
D2 = {2: 1.128, 3: 1.693, 4: 2.059, 5: 2.326}
D2_STAR_ONE_RANGE = {2: 1.414, 3: 1.912, 4: 2.239, 5: 2.481, 6: 2.673,
7: 2.830, 8: 2.963, 9: 3.078, 10: 3.179}
def gage_rr_range(x, tolerance=None):
"""Crossed gage R&R by the average and range method.
x has shape (parts, operators, trials)."""
p, o, r = x.shape
cell_range = x.max(axis=2) - x.min(axis=2)
r_double_bar = cell_range.mean(axis=0).mean()
oper_mean = x.mean(axis=(0, 2))
x_diff = oper_mean.max() - oper_mean.min()
part_mean = x.mean(axis=(1, 2))
r_p = part_mean.max() - part_mean.min()
ev = r_double_bar / D2[r]
av_sq = (x_diff / D2_STAR_ONE_RANGE[o]) ** 2 - ev ** 2 / (p * r)
av = np.sqrt(max(av_sq, 0.0))
grr = np.hypot(ev, av)
pv = r_p / D2_STAR_ONE_RANGE[p]
tv = np.hypot(grr, pv)
out = {
"EV": ev,
"AV": av,
"GRR": grr,
"PV": pv,
"pct_contribution_grr": 100 * grr ** 2 / tv ** 2,
"pct_study_var_grr": 100 * grr / tv,
"ndc": int(np.floor(1.41 * pv / grr)),
}
if tolerance is not None:
out["pct_tolerance_grr"] = 100 * 6 * grr / tolerance
return out
rng = np.random.default_rng(1)
true_parts = rng.normal(10.0, 1.0, size=10)
bias_by_operator = np.array([0.0, 0.05, -0.05])
data = (true_parts[:, None, None]
+ bias_by_operator[None, :, None]
+ rng.normal(0, 0.1, size=(10, 3, 2)))
for name, value in gage_rr_range(data, tolerance=6.0).items():
print(name, round(float(value), 3))Run it on the same simulated data you used with the ANOVA function and compare the two sets of results. They should agree closely when the study is balanced and the operator-by-part interaction is small.
Where the method breaks down
The average and range method has real limits, and they explain why ANOVA is now preferred.
- No interaction term. The method cannot separate an operator-by-part interaction. Suppose one operator measures a particular part differently from the others. That effect is absorbed into EV or AV and cannot be seen separately. ANOVA tests the interaction and reports it as its own component.
- Information is thrown away. Ranges use only the largest and smallest values in each cell. With 2 or 3 trials this loses little, but the estimates are noisier than ANOVA estimates, especially with few parts.
- Part variation depends on the sample. PV is estimated from one range of 10 averages, so it is highly sensitive to which parts you picked. If they were not chosen across the true process spread, PV is too small and %GRR looks worse than it is.
- Balanced data only. Every operator must measure every part the same number of times. Missing readings force you to discard data or switch to ANOVA.
- Constants must match the convention. Older documents multiply by 5.15 for a 99% spread, newer ones by 6. Mixing a K constant built for 5.15 with a 6-sigma tolerance formula, or comparing percentages across the two conventions, gives wrong results. Percentages of total variation are unaffected, because the multiplier cancels. %Tolerance is the only one affected.
- The small-sample correction matters. For fewer than about 15 ranges, d2 differs noticeably from d2. The code above uses plain d2 for EV, which is a good approximation when you have p × o ranges (usually 20 or more). It uses the single-range d2 for AV and PV, where only one range is available.
Common errors
- Using the wrong number of trials. K1 depends on r. Using the 3-trial constant on a 2-trial study understates EV by about a third.
- Forgetting the EV correction in AV. Skipping the subtraction of EV²/(p r) overstates reproducibility, especially when EV is large and the study is small.
- Taking Rp from the raw readings. Rp is the range of the part averages. The range of all individual readings is much larger and will overstate PV.
- Reading %GRR from the wrong denominator. %Study variation divides by TV, not by PV and not by the tolerance.
Exercise
A study with 5 parts, 2 operators and 3 trials gives R̿ = 0.12, X̄DIFF = 0.05 and Rp = 2.40. Compute EV, AV, GRR, PV and %GRR. Use d2(3) = 1.693, d2(2) = 1.414 and d2(5) = 2.481.
Show answer
EV = 0.12 / 1.693 = 0.0709. AV: (0.05 / 1.414)² = 0.001250. EV² / (5 × 3) = 0.005024 / 15 = 0.000335. The difference is 0.000915, so AV = 0.0303. GRR = sqrt(0.005024 + 0.000915) = 0.0771. PV = 2.40 / 2.481 = 0.9674. TV = sqrt(0.005939 + 0.93586) = 0.9706. %GRR = 100 × 0.0771 / 0.9706 = 7.9%.
Exercise
Name two reasons the ANOVA method is preferred to the average and range method when software is available.
Show answer
ANOVA separates the operator-by-part interaction as its own variance component, which the range method cannot do. It also uses all the data instead of only the largest and smallest value in each cell. It handles unbalanced data, and it gives tests of significance for parts, operators and the interaction.