Sub topic 14
Destructive Testing and Nested Gage R&R
This chapter assumes you can already run a crossed gage R&R study and read the ANOVA table, with variance components, %contribution and %study variation. Here you will see why the crossed design breaks down when a measurement destroys the part. You will then learn the nested design that replaces it, and what that design cannot tell you.
Why the crossed design fails
A crossed study depends on one assumption: every operator can measure every part, several times. That assumption gives the design its two key properties.
- Replicates of the same part by the same operator isolate repeatability.
- Every operator sees the same parts, so operator differences are not confused with part differences.
Destructive testing breaks both properties. Tensile pull tests, burst-pressure tests, peel strength, cure-time tests and chemical assays that consume the sample are typical examples. After the test, the part is gone or changed, so the second measurement is not a measurement of the same thing.
The same problem appears without destruction. Parts that drift over time, such as a sample that absorbs moisture, behave the same way. So do parts that cannot leave a site, and operators who work on separate shifts or lines and cannot share parts.
Two ways to handle the problem
There are two practical routes, and the choice depends on what you can assume about the material.
- Make the parts effectively identical. Use a batch, a coil section, a single mixed lot or adjacent units cut from one billet. Treat every unit in the batch as the same "part". You then measure different units and assume they have the same true value.
- Accept different parts and model it. Give each operator their own parts and use a nested design, where parts are nested within operators.
Both routes use the nested ANOVA below. The first route adds a warning about repeatability, covered later.
The nested design
In a nested design, each part appears under exactly one operator. A typical layout has 3 operators, 5 parts per operator and 2 replicates, which gives 30 measurements.
The model for measurement k of part j under operator i is:
y(ijk) = μ + O(i) + P(j within i) + ε(ijk)
- O(i) is the operator effect, with variance σ²(oper).
- P(j within i) is the part effect, with variance σ²(part). It has no crossing term with the operator, because no part is seen by two operators.
- ε(ijk) is the replicate error, with variance σ²(rep).
Because there is no operator-by-part interaction term, the ANOVA table is smaller than the crossed one.
| Source | Degrees of freedom | Sum of squares |
|---|---|---|
| Operator | o − 1 | p·r·Σ(operator mean − grand mean)² |
| Part within operator | o·(p − 1) | r·Σ(cell mean − operator mean)² |
| Repeatability | o·p·(r − 1) | Σ(observation − cell mean)² |
Here o, p and r are the numbers of operators, parts per operator and replicates. A cell is one part measured under one operator.
The expected mean squares give the variance components:
- σ²(rep) = MS(rep)
- σ²(part) = (MS(part within oper) − MS(rep)) / r
- σ²(oper) = (MS(oper) − MS(part within oper)) / (p·r)
Notice that the operator mean square is compared with the part-within-operator mean square, not with repeatability. Operators differ partly because the parts they received differ, so the part mean square is the correct noise level for that comparison. Negative estimates are truncated at zero, as in the crossed case.
The measurement system variance is then σ²(GRR) = σ²(rep) + σ²(oper), and total variance adds σ²(part). From here, %contribution, %study variation and ndc follow the same formulas as in the crossed study.
Computing it in Python
The function below mirrors the crossed ANOVA function from the earlier chapter. Its input has shape (operators, parts per operator, replicates).
import numpy as np
def nested_gage_rr(x, tolerance=None):
"""Nested gage R&R by the ANOVA method.
x has shape (operators, parts_per_operator, replicates).
Parts are nested within operators."""
o, p, r = x.shape
grand = x.mean()
oper = x.mean(axis=(1, 2)) # one mean per operator
cell = x.mean(axis=2) # one mean per part within operator
ss_oper = p * r * np.sum((oper - grand) ** 2)
ss_part = r * np.sum((cell - oper[:, None]) ** 2)
ss_rep = np.sum((x - cell[:, :, None]) ** 2)
ms_oper = ss_oper / (o - 1)
ms_part = ss_part / (o * (p - 1))
ms_rep = ss_rep / (o * p * (r - 1))
var_rep = ms_rep
var_part = max(0.0, (ms_part - ms_rep) / r)
var_oper = max(0.0, (ms_oper - ms_part) / (p * r))
var_grr = var_rep + var_oper
var_total = var_grr + var_part
sd_grr = np.sqrt(var_grr)
sd_part = np.sqrt(var_part)
out = {
"pct_contribution_grr": 100 * var_grr / var_total,
"pct_study_var_grr": 100 * np.sqrt(var_grr / var_total),
"ndc": int(np.floor(1.41 * sd_part / sd_grr)),
}
if tolerance is not None:
out["pct_tolerance_grr"] = 100 * 6 * sd_grr / tolerance
return out
rng = np.random.default_rng(7)
o, p, r = 3, 5, 2
operator_bias = np.array([0.0, 0.1, -0.1])
true_parts = rng.normal(50.0, 2.0, size=(o, p)) # different parts per operator
data = (true_parts[:, :, None]
+ operator_bias[:, None, None]
+ rng.normal(0, 0.3, size=(o, p, r)))
print(nested_gage_rr(data, tolerance=20.0))The simulation draws a different set of true part values for each operator. That is the defining feature of the design. If the same five values were reused for every operator, you could and should run a crossed study instead.
What the nested design cannot tell you
No interaction term
A crossed study can detect an operator-by-part interaction, for example one operator who measures large parts differently from small ones. In a nested design, that effect cannot be separated from the part-to-part variation. If you suspect interaction, a nested design will hide it.
Weak reproducibility estimate
The operator component has only o − 1 degrees of freedom, and it is judged against part-to-part noise. With 3 operators, that is 2 degrees of freedom. The estimate of σ²(oper) is therefore unstable and is often truncated to zero by chance. A reported reproducibility of zero in a small nested study does not show that operators agree. It shows that the study could not detect a difference. Increase the number of operators, or the number of parts per operator, before you rely on a low reproducibility figure.
Repeatability is inflated by batch heterogeneity
When parts are batches of "identical" units, the replicate-to-replicate scatter contains two things:
- true measurement repeatability
- real unit-to-unit differences inside the batch
The method cannot separate them. The estimated σ²(rep) is an upper bound on the true repeatability, so the resulting %GRR is conservative. A failing result might come from the batch rather than the gage. Before concluding that the gage is bad, check how homogeneous the batches are, for example with a non-destructive measure of the same units.
Planning the study
- State what makes the parts "the same", and document why you believe it, such as one production lot, one mixing cycle or adjacent positions on a sheet.
- Choose at least 3 operators, and more if the process uses many. The operator term is the weakest part of the design.
- Use 5 to 10 parts (or batches) per operator, and 2 or 3 replicates per part.
- Count the samples. A design of 3 operators, 5 parts and 3 replicates consumes 45 units, so check that the material is available before you start.
- Randomize the run order across operators and parts, so that drift in the test equipment or environment is not confused with operator effects.
- Draw all batches from the same population for every operator. If one operator receives the first batches and another the last, the operator effect is confounded with time.
Reading the result
The same acceptance guidelines apply: under about 10% study variation is good, 10% to 30% is marginal and depends on the application, and over 30% is generally unacceptable. ndc should be at least 5. Add two cautions specific to nested studies:
- Report that the design was nested and say why. A reader who sees a bare %GRR will assume a crossed study.
- When %GRR is marginal, the improvement actions differ. If repeatability dominates, check batch homogeneity first. If reproducibility dominates, standardize the test procedure, fixtures and operator training, and repeat the study with more operators.
Summary table
| Aspect | Crossed | Nested |
|---|---|---|
| Part measured by all operators | Yes | No |
| Replicates of the same item | Same part, re-measured | Same part, or different units of one batch |
| Interaction term | Estimated | Not available |
| Operator comparison against | Interaction mean square | Part-within-operator mean square |
| Reproducibility df | o − 1, tested against interaction | o − 1, tested against part noise |
| Repeatability meaning | Pure | Possibly inflated by batch spread |
Exercise
A nested study has 4 operators, 6 parts per operator and 2 replicates. The mean squares are MS(oper) = 5.2, MS(part within oper) = 4.0 and MS(rep) = 0.4. Compute σ²(rep), σ²(part) and σ²(oper), then the percent contribution of gage R&R.
Show answer
σ²(rep) = 0.4. σ²(part) = (4.0 − 0.4) / 2 = 1.8. σ²(oper) = (5.2 − 4.0) / (6 × 2) = 0.1. σ²(GRR) = 0.4 + 0.1 = 0.5. Total variance = 0.5 + 1.8 = 2.3. %contribution of GRR = 100 × 0.5 / 2.3 ≈ 21.7%. The operator term is small and rests on only 3 degrees of freedom, so treat the reproducibility figure with caution.
Exercise
A team runs a nested study on a pull test using 5 units cut from one coil per "part". Repeatability comes out at 35% of study variation, which would fail the 30% guideline. Why might the gage not be to blame, and what would you check first?
Show answer
The replicates are different units, so unit-to-unit variation inside the coil is included in the repeatability estimate. The result is an upper bound on true repeatability. Check how homogeneous the coil sections are, for example by measuring a non-destructive property on the same units, or by testing adjacent units. If the material is more uniform than the first result suggests, the gage may be adequate.