Sub topic 11
Reading the gage R&R graphs
This chapter assumes you can compute a crossed gage R&R study with the ANOVA method and know the terms repeatability, reproducibility, %study variation and ndc. It also assumes you can read an X-bar and R control chart. The numbers tell you how large the measurement error is. The graphs tell you where it comes from.
Why look at graphs at all
Two studies can give the same %study variation for very different reasons. In one, a single operator is careless. In another, one gage drifts with part size. In a third, two operators use different techniques on a few parts. The summary table cannot separate these cases, but the graphs can. Each graph answers one question about the data.
| Graph | Question it answers |
|---|---|
| Components of variation | Which source dominates: repeatability, reproducibility or part-to-part? |
| R chart by operator | Is each operator's repeatability consistent across parts and across operators? |
| X-bar chart by operator | Can the gage tell the parts apart? |
| Measurements by part | Do the parts cover the process range, and are some parts hard to measure? |
| Measurements by operator | Do the operators differ in average or spread? |
| Operator-by-part interaction | Do operators disagree in a way that depends on the part? |
Components of variation
This is a bar chart. For each source (total gage R&R, repeatability, reproducibility, part-to-part) it usually shows two bars: %contribution and %study variation. Read it in this order:
- Compare the part-to-part bar with the total gage R&R bar. Part-to-part should be much taller.
- If gage R&R is large, compare the repeatability bar with the reproducibility bar. The taller one tells you where to start.
- If reproducibility is large, check whether it comes from the operator term or the operator-by-part interaction term (the ANOVA table shows both).
The %contribution bars are on a variance scale and the %study variation bars are on a standard deviation scale. For the same data, the %study variation bars are therefore taller. Do not mix them when you apply an acceptance guideline.
R chart by operator
Each point is the range of the replicate measurements one operator made on one part. The center line is the average range, and the upper limit is D4 times that average. The lower limit is zero for subgroups of size 6 or less.
The R chart is a check on repeatability, so you want it in control.
- Points inside the limits mean each operator measures each part with about the same short-term noise. The range is a fair stand-in for repeatability.
- A point above the upper limit means one operator was inconsistent on one part. Investigate that measurement before you trust the study. It could be a recording error, a part that is hard to fixture, or a damaged feature.
- One operator's points sitting higher than the others means that operator has worse repeatability. Look at that operator's technique, training or fixturing.
- Many ranges of exactly zero point to a gage with too little resolution. The limits then collapse and the chart is misleading. Fix the resolution first.
X-bar chart by operator
Each point is the average of one operator's replicates on one part. The center line is the grand average. The limits are the grand average plus or minus A2 times the average range. These limits describe measurement noise only, not part variation.
Here you want the opposite of a normal control chart. The chart is a signal-to-noise check: the parts differ, and the limits show how much noise the gage adds. If the gage is adequate, most points fall outside the limits, because the parts really are different from each other. A common rule of thumb is that at least half of the points should be outside. If most points sit inside the limits, the part differences are no bigger than the noise. The gage cannot distinguish parts, and the ndc is usually low.
Also compare the operators' patterns. If the three plots follow the same up-and-down shape across parts, the operators agree on which parts are large and small. If one operator's pattern is shifted up or down, that is an operator bias.
Measurements by part
This plot shows every individual reading, grouped by part, usually with a line through the part means. Look at three things:
- Spread within a part. The vertical scatter of the dots for one part is mostly repeatability. If one part has much more scatter than the rest, it is hard to measure. Look for a feature, surface finish or edge that causes this.
- Spread between parts. The part means should cover the range of the process, ideally the tolerance range as well. If you picked parts that are all nearly identical, part-to-part variation is understated and gage R&R looks worse than it is.
- Outliers. One isolated dot far from its part's cluster usually means a transcription mistake or a mishandled part.
Measurements by operator
This plot shows the readings grouped by operator, as a box plot or as points joined by a line through each operator's mean.
- Different means point to a reproducibility problem caused by operator bias. This could be a different gage reading technique, a different zero, or a different clamping force.
- Different box heights point to unequal repeatability. This agrees with what you saw in the R chart.
- If the means are equal but the study still shows a large reproducibility term, the problem is in the interaction, which is the next graph.
Because each operator measured every part, differences between operator means are not caused by operators getting different parts. That is the benefit of the crossed design.
Operator-by-part interaction
This is a line plot. The x-axis is the part (sort the parts by their average so the lines are easier to read). Each operator has a line connecting the operator's mean for each part.
- Parallel lines that sit close together: no interaction, no operator bias. Reproducibility is small.
- Parallel lines that are separated: a consistent operator bias. Every part is read higher by one operator than another.
- Lines that cross or fan out: an interaction. Operators disagree by an amount that depends on the part. Typical causes are different methods for large and small parts, a fixture that works for some shapes only, and unclear instructions about where to measure.
The ANOVA table gives the matching test. A small p-value for the operator-by-part term (many software packages use 0.25 as the threshold for keeping it in the model) confirms what the plot suggests. The interaction variance is also added to reproducibility in the calculation, so a crossing pattern directly raises %study variation.
Producing the graphs yourself
The script below simulates a study of 10 parts, 3 operators and 2 replicates, then draws five of the six plots. It builds the R chart and X-bar chart limits from constants for subgroup size 2 to 4. Install numpy and matplotlib to run it.
import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
D4 = {2: 3.267, 3: 2.574, 4: 2.282}
A2 = {2: 1.880, 3: 1.023, 4: 0.729}
rng = np.random.default_rng(1)
true_parts = rng.normal(10.0, 1.0, size=10)
bias = np.array([0.0, 0.05, -0.05])
x = (true_parts[:, None, None] + bias[None, :, None]
+ rng.normal(0, 0.1, size=(10, 3, 2)))
p, o, r = x.shape
order = np.argsort(x.mean(axis=(1, 2)))
x = x[order] # sort parts by average
cells = x.mean(axis=2) # (parts, operators)
ranges = x.max(axis=2) - x.min(axis=2)
rbar = ranges.mean()
grand = x.mean()
r_ucl = D4[r] * rbar
xb_lo, xb_hi = grand - A2[r] * rbar, grand + A2[r] * rbar
fig, ax = plt.subplots(2, 3, figsize=(14, 8))
parts = np.arange(1, p + 1)
for j in range(o):
ax[0, 0].plot(parts, ranges[:, j], marker="o", label=f"Op {j+1}")
ax[0, 1].plot(parts, cells[:, j], marker="o", label=f"Op {j+1}")
ax[1, 1].plot(parts, cells[:, j], marker="o", label=f"Op {j+1}")
ax[0, 0].axhline(rbar, color="k")
ax[0, 0].axhline(r_ucl, color="r", linestyle="--")
ax[0, 0].set_title("R chart by operator")
ax[0, 1].axhline(grand, color="k")
ax[0, 1].axhline(xb_lo, color="r", linestyle="--")
ax[0, 1].axhline(xb_hi, color="r", linestyle="--")
ax[0, 1].set_title("X-bar chart by operator")
ax[1, 1].set_title("Operator-by-part interaction")
for i in range(p):
ax[0, 2].scatter(np.full(o * r, i + 1), x[i].ravel(), s=12, color="C0")
ax[0, 2].plot(parts, x.mean(axis=(1, 2)), color="k")
ax[0, 2].set_title("Measurements by part")
ax[1, 0].boxplot([x[:, j, :].ravel() for j in range(o)],
tick_labels=[f"Op {j+1}" for j in range(o)])
ax[1, 0].set_title("Measurements by operator")
ax[1, 2].axis("off")
ax[0, 1].legend()
fig.tight_layout()
fig.savefig("grr_graphs.png", dpi=120)
outside = np.mean((cells < xb_lo) | (cells > xb_hi))
print(f"R points above UCL: {int((ranges > r_ucl).sum())}")
print(f"X-bar points outside limits: {100 * outside:.0f}%")With this simulated study the part spread (standard deviation 1.0) is ten times the noise (0.1). Expect almost all X-bar points to lie outside the limits and the interaction lines to run nearly parallel. Change the noise to 0.5 and rerun to see the X-bar points move inside the limits.
From pattern to action
The flowchart shows how a graph pattern points to a cause. Use it after you have checked that the data are free of recording errors.
Common reading errors
- Treating the X-bar chart as a stability chart. Its limits come from repeatability, so points outside them are good news here.
- Ignoring an out-of-control R chart point. A single unusual range can inflate the repeatability estimate. Find out why before you decide the gage is poor.
- Reading small differences between operator means as real. Compare the differences with the within-operator scatter. With 10 parts and 2 replicates, small gaps can be noise.
- Judging parts that are too similar. A narrow part range makes every graph look bad. Check the by-part plot before you blame the gage.
- Reading the graphs without the table. The graphs show the pattern, and the ANOVA table and the metrics give the size and the evidence. Use both.
Exercise
In a gage R&R study, the R chart by operator is in control, but operator 2's line on the interaction plot lies above the other two lines by a roughly constant amount across all parts. What does this show, and which component of variation will it increase?
Show answer
Operator 2 has a consistent bias relative to the others, so the operator term grows. This increases reproducibility, not repeatability. The in-control R chart shows that every operator's short-term noise is similar. The remedy is to standardize technique and zeroing, not to replace the gage.
Exercise
The X-bar chart by operator shows 24 of 30 points inside the limits. The by-part plot shows all ten parts averaging between 9.95 and 10.05. What is the most likely explanation, and what should you do before you condemn the gage?
Show answer
The parts selected do not cover the process range, so part-to-part variation is tiny compared with the noise that sets the limits. The gage looks unable to separate parts because the parts are almost identical. Repeat the study with parts that span the process spread, ideally including some near the specification limits, and then judge the gage.