Sub topic 9
Computing %contribution, %study variation, %tolerance and ndc
This chapter assumes you can compute a variance and a standard deviation. It also assumes you know that independent variances add and that standard deviations do not. You should have the variance components from the ANOVA chapter: repeatability, operator, operator-by-part interaction, and part-to-part. Here you turn those components into the four numbers that decide whether a measurement system is usable.
From variance components to four metrics
A gage R&R study ends with a table of variance components. Each metric compares the measurement system's spread (the gage R&R, or GRR) to a different yardstick.
First combine the components:
- Repeatability variance:
var_rep - Reproducibility variance:
var_repro = var_oper + var_int - Gage R&R variance:
var_grr = var_rep + var_repro - Total variance:
var_total = var_grr + var_part
Variances add because the sources are assumed independent. Standard deviations are the square roots of these values and must not be added directly.
The four metrics
| Metric | Formula | Compared against | Question it answers |
|---|---|---|---|
| %contribution | 100 × var_grr / var_total | Total variance | What share of the observed variance is measurement error? |
| %study variation (%SV) | 100 × sd_grr / sd_total | Total standard deviation | How large is measurement spread relative to observed spread? |
| %tolerance | 100 × k × sd_grr / (USL − LSL) | Specification width | How much of the spec window does measurement error use up? |
| ndc | floor(1.41 × sd_part / sd_grr) | Part spread | How many groups of parts can the system tell apart? |
%contribution
%Contribution works on the variance scale, so the components add up. Gage R&R and part-to-part percentages sum to 100%. You can also split GRR into repeatability and reproducibility and see how much of the total each one takes.
The numbers look small because squaring shrinks ratios below 1. A system with 5% contribution may still feel noisy.
%study variation
%SV works on the standard deviation scale. It is the square root of the ratio used for %contribution:
%SV = 100 × √(%contribution / 100)
A 5% contribution therefore becomes about 22% study variation. The components' %SV values do not add up to 100%, because square roots of fractions do not add. Only the variance-based percentages sum.
The study variation uses a multiplier k, so the "study variation" of a component is k × its standard deviation. The multiplier cancels in the %SV ratio. Common choices are k = 6 (about 99.73% of a normal distribution) and k = 5.15 (99%). Check which one your software uses before comparing numbers across tools.
%tolerance
%Tolerance asks whether the gage is precise enough for the job it does, which is sorting good parts from bad ones. The denominator is the specification width, USL − LSL, not any variation seen in the study. This makes %tolerance independent of which parts you picked. Here k matters directly: with k = 5.15 the result is about 14% smaller than with k = 6.
Use %tolerance when the measurement is used to accept or reject parts. If the specification is one-sided there is no width, so this metric is undefined. Use a process-based denominator instead, such as the historical process standard deviation.
Number of distinct categories (ndc)
ndc estimates how many non-overlapping groups the system can distinguish within the part range in the study. The factor 1.41 is √2. It comes from the idea that two groups are distinguishable when their centers differ by about 1.41 times the measurement standard deviation. The result is truncated to a whole number, so 6.9 becomes 6, not 7.
Because ndc depends only on the ratio sdpart / sdgrr, it is the same information as %contribution. For example, 5% GRR contribution means a part-to-GRR variance ratio of 95/5 = 19. So sdpart / sdgrr = √19 ≈ 4.36, and ndc = floor(1.41 × 4.36) = 6.
Worked example
Suppose the ANOVA step gave these variance components, in squared measurement units:
| Component | Variance |
|---|---|
| Repeatability | 0.0100 |
| Operator | 0.0010 |
| Operator × part | 0.0015 |
| Part-to-part | 0.2375 |
The specification width is 3.0 units.
- Reproducibility = 0.0010 + 0.0015 = 0.0025.
- GRR variance = 0.0100 + 0.0025 = 0.0125.
- Total variance = 0.0125 + 0.2375 = 0.2500, so sd_total = 0.5.
- %contribution = 100 × 0.0125 / 0.25 = 5.0%.
- sd_grr = √0.0125 ≈ 0.1118, so %SV = 100 × 0.1118 / 0.5 ≈ 22.4%.
- %tolerance (k = 6) = 100 × 6 × 0.1118 / 3.0 ≈ 22.4%. With k = 5.15 it is about 19.2%.
- sd_part = √0.2375 ≈ 0.4873, so ndc = floor(1.41 × 0.4873 / 0.1118) = floor(6.15) = 6.
The code below performs the same calculation.
import math
def grr_metrics(var_rep, var_oper, var_int, var_part, tolerance=None, k=6.0):
"""Gage R&R metrics from variance components."""
var_repro = var_oper + var_int
var_grr = var_rep + var_repro
var_total = var_grr + var_part
sd_grr = math.sqrt(var_grr)
sd_part = math.sqrt(var_part)
result = {
"pct_contribution_grr": 100 * var_grr / var_total,
"pct_study_var_grr": 100 * sd_grr / math.sqrt(var_total),
"ndc": math.floor(1.41 * sd_part / sd_grr),
}
if tolerance is not None:
result["pct_tolerance_grr"] = 100 * k * sd_grr / tolerance
return result
metrics = grr_metrics(0.0100, 0.0010, 0.0015, 0.2375, tolerance=3.0)
for name, value in metrics.items():
print(name, round(value, 2))The printed values should match the hand calculation above. To go from raw data to these metrics in one step, use the gage_rr_anova function from the ANOVA chapter. It returns the same three variance-based values, plus %tolerance when you pass a tolerance.
Edge cases that change the numbers
Negative variance components
ANOVA estimates are differences of mean squares, such as (ms_oper - ms_int) / (p * r). They can come out negative when the true component is near zero. The usual convention is to set a negative estimate to zero before computing the metrics. The gage_rr_anova function does this with max(0.0, ...). Many zeros in a study suggest too few parts or operators. They can also mean the component really is negligible.
Interaction pooling
If the operator-by-part interaction is not statistically significant, some software removes it and pools its sum of squares into repeatability. Minitab's default threshold is α = 0.05 for keeping the interaction. This changes the repeatability estimate slightly. The gage_rr_anova function always keeps the interaction term. If your numbers differ from a software report, check this setting first.
Part selection controls %SV and ndc
Both %SV and ndc depend on the part-to-part variance observed in the study. If you choose parts that all look alike, var_part shrinks and a good gage looks poor. If you choose extreme parts, var_part grows and a poor gage looks good. Parts should span the range the process normally produces. %tolerance does not have this weakness, since its denominator is the specification width. This is why you report %tolerance and %SV side by side.
Total variation is not process variation
The "total" in %SV is the total of this study, not the long-run process. When the study's parts do not represent the process, replace sd_total with a historical process standard deviation. Compute the part component as sqrt(sd_process**2 - var_grr).
Common mistakes
- Reading %contribution against the %SV thresholds, or the reverse. They are on different scales.
- Mixing k = 6 and k = 5.15 when comparing studies.
- Reporting ndc as a rounded value instead of truncating.
- Computing %tolerance from a one-sided specification.
- Judging a gage from %SV alone when the study parts did not cover the process range.
Exercise
A study gives varrep = 0.04, varrepro = 0.01 and var_part = 0.45, with a tolerance of 4.0 and k = 6. Compute %contribution, %SV, %tolerance and ndc. Is ndc acceptable if the guideline is at least 5?
Show answer
vargrr = 0.05 and vartotal = 0.50. %contribution = 100 × 0.05 / 0.50 = 10%. %SV = 100 × √0.10 ≈ 31.6%. sdgrr = √0.05 ≈ 0.2236, so %tolerance = 100 × 6 × 0.2236 / 4.0 ≈ 33.5%. sdpart = √0.45 ≈ 0.6708, so sdpart / sdgrr = 3.0 and ndc = floor(1.41 × 3.0) = floor(4.23) = 4. An ndc of 4 is below 5, so it is not acceptable. The %SV and %tolerance values are also just above 30%.
Exercise
A gage has 4% GRR contribution. Without computing standard deviations, what are its approximate %SV and ndc?
Show answer
%SV = 100 × √0.04 = 20%. The variance ratio of part to GRR is 96/4 = 24, so sdpart / sdgrr = √24 ≈ 4.90 and ndc = floor(1.41 × 4.90) = floor(6.91) = 6. Note that ndc truncates, so 6.91 becomes 6.