Measurement systems

Measurement System Analysis (MSA): Bias, Linearity, Stability, Gage R&R and Attribute Agreement

Kitstead Labs · Engineering reference · Synthetic worked example

A map of the five studies for engineers who own a gauge, with one fictional copper-pillar height gauge taken through all of them.

Quick answer

A measurement system analysis asks one question in five ways: how much of what the gauge reports is the part, and how much is the gauge? Each study isolates one way the gauge can be wrong.

  1. Bias — does the gauge read high or low against a reference? One reference, repeated readings, compare the mean with the reference value.
  2. Linearity — does the bias change across the measuring range? Several references spread over the range, bias regressed on reference value.
  3. Stability — does the bias drift over time? One reference measured on a schedule, plotted on an individuals and moving range chart.
  4. Gage R&R — how much variation does the gauge add on real parts, and does it depend on who measures? Several parts, several operators, repeated trials; the Gage R&R after calibration guide works this one through.
  5. Attribute agreement — for a pass/fail judgment, do inspectors agree with each other, with themselves and with the truth? Known parts judged twice by each inspector, summarised as agreement percentages and kappa.

The first three are about location: they compare the gauge with a known value. The fourth is about spread. The fifth is the location-and-spread question for a gauge that only says pass or fail. Calibration corrects a bias once; it does not prove linearity, stability or repeatability, which is why the studies exist.

About the example. All numbers in this article are fictional. The gauge measures copper-pillar height in µm against a requirement of 48–52 µm, the same fictional requirement used in the PFMEA and Gage R&R guides, so the tolerance width is 4 µm. The reference standards are certified pillars of 40.00, 50.00 and 60.00 µm. Study sizes are minimal teaching layouts; follow your own procedure or your customer's requirement for a real qualification. All arithmetic is carried at full precision and rounded at the end, so recomputing a step from the rounded numbers printed here can differ in the last digit.

Which study, and when

How much of the reading is the gauge? Location against a known value Bias one reference, one point Linearity references across the range Stability one reference, over time Spread on real parts Gage R&R repeatability + reproducibility Pass / fail known parts, judged twice Attribute agreement % agreement, kappa same part, six readings P P P P F F F P P P ref B a fail called pass Calibrate first. Then bias and linearity, then Gage R&R; keep the stability chart running.
Bias, linearity and stability compare the gauge with a known value, at one point, across the range and over time. Gage R&R measures the spread the gauge adds on real parts. Attribute agreement is the pass/fail version of both.
The five measurement system studies at a glance
StudyQuestionRun it whenMinimum layout in this guide
BiasIs the mean reading equal to the reference?After calibration, after a repair, at buy-off1 reference, 15 readings
LinearityIs the bias the same at 40 µm as at 60 µm?At buy-off, or when parts span a wide range3 references, 10 readings each
StabilityDoes the bias move between calibrations?Continuously, on a schedule1 reference, 1 reading per day, 20 days
Gage R&RHow much spread does measuring add, and is it operator-driven?At buy-off and before a capability study10 parts × 3 operators × 3 trials (other guide)
Attribute agreementDo inspectors agree, repeat and match the truth?At buy-off of a visual or go/no-go inspection, and when inspectors change30 parts × 2 inspectors × 2 trials

The order matters. Calibrate first, so that the bias study measures the residual rather than the adjustment that calibration is about to remove. Run bias and linearity before Gage R&R, because a gauge that reads 0.1 µm high at 60 µm will pass a Gage R&R study, which only looks at spread, and still misjudge every tall pillar. Keep a stability chart running after buy-off; it is the only study that catches a drift before the next calibration does.

Bias: one reference, fifteen readings

After calibration the 50.00 µm reference pillar is measured fifteen times under the same conditions.

Bias study readings on the 50.00 µm reference
Readingµm
1–550.07, 50.11, 49.98, 50.05, 50.12
6–1050.02, 50.09, 49.96, 50.08, 50.04
11–1550.10, 50.01, 50.06, 50.13, 50.03

The mean is 50.057 µm and the sample standard deviation is 0.051 µm. Bias is the mean minus the reference:

bias = 50.057 − 50.00 = 0.057 µm

That is 1.4 % of the 4 µm tolerance. Whether a bias this small is real or just the scatter of fifteen readings is a t question: t = bias / (s/√n) = 0.057 / (0.051/√15) = 4.34, against a two-sided critical value of 2.145 at 95 % confidence with 14 degrees of freedom from the t table. The bias is real. Whether it matters is a separate decision: 0.057 µm against a 4 µm tolerance is small, but the gauge has just been calibrated, and a bias that survives calibration points at the calibration procedure, the reference, or the fixture rather than at the gauge electronics.

The repeatability in this study, 0.051 µm, is a first estimate of the gauge's own scatter. It is the yardstick for the next two studies.

Linearity: three references across the range

Ten readings on each of the 40.00, 50.00 and 60.00 µm references.

Linearity study readings and mean bias at each reference
Reference (µm)Readings (µm)Mean bias (µm)s (µm)
40.0040.02, 40.05, 39.99, 40.04, 40.01, 40.06, 40.00, 40.03, 39.98, 40.020.0200.026
50.0050.07, 50.04, 50.10, 50.06, 50.03, 50.09, 50.05, 50.08, 50.02, 50.060.0600.026
60.0060.12, 60.08, 60.15, 60.10, 60.07, 60.13, 60.09, 60.11, 60.06, 60.140.1050.030

Linearity is the bias regressed on the reference value, least squares through all thirty points:

bias = −0.151 + 0.00425 × reference

The slope says the bias grows by 0.00425 µm for every µm of height, so across the 40–60 µm range it changes by 0.085 µm: fitted bias 0.019 µm at 40 µm and 0.104 µm at 60 µm. The change over the range is larger than the gauge's repeatability (about 0.03 µm here, 0.05 µm in the bias study), so it is a feature of the gauge, not scatter. A single-point calibration at 50 µm cannot remove it; it would leave tall pillars reading about 0.05 µm high and short ones about 0.04 µm low. The usual causes are a scale factor error, a reference set that is not what its certificate says, or a probe that loads tall and short features differently. Whether 0.1 µm of bias at 60 µm matters depends on where the parts live: for a 48–52 µm product it is a note in the file; for a 58–62 µm product it is 2.5 % of the tolerance pointing one way.

Stability: one reference, one reading a day

The 50.00 µm reference is measured once each morning for twenty working days.

Stability study readings, one per day on the 50.00 µm reference
Day1–56–1011–1516–20
Reading (µm)50.04, 50.09, 50.02, 50.07, 50.1150.05, 50.00, 50.08, 50.06, 50.0350.10, 50.05, 50.07, 50.01, 50.0950.04, 50.06, 50.12, 50.03, 50.08

The readings go on an individuals and moving range chart, the chart for one reading per period described in the I-MR chart guide. Mean 50.06 µm; average moving range 0.053 µm; limits for individuals 50.06 ± 2.66 × 0.053, that is 49.92 to 50.20 µm; upper limit for the moving range 3.267 × 0.053 = 0.172 µm. The constants 2.66 (3/d₂ with d₂ = 1.128) and 3.267 (D₄) are tabulated in the control chart constants guide. No reading and no moving range is outside its limit, and the twenty points show no run on one side of the mean, so the gauge is stable over these twenty days. The centre line sits 0.06 µm above the reference, which is the bias from the first study seen again; a stability chart holds the bias steady, it does not remove it.

A stability chart earns its keep later. A point outside 50.20 µm, or eight in a row above the centre line, says the gauge has moved before anyone has measured a bad part with it. The estimate of the gauge's day-to-day scatter, σ̂ = 0.053 / 1.128 = 0.047 µm, is close to the 0.051 µm repeatability of the bias study, so these twenty days show no sign of an extra day-to-day component, though a sample this small cannot rule one out; when the stability σ̂ is clearly larger than the within-day repeatability, something between days (warm-up, temperature, a different operator) is adding variation.

Gage R&R: spread on real parts

Bias, linearity and stability all use reference standards. Gage R&R uses real parts, several operators and repeated trials, and splits the observed variation into part-to-part, repeatability and reproducibility. The Gage R&R after calibration guide works through the 10 sites × 3 operators × 3 trials study on this gauge, and the Gauge R&R (ANOVA) calculator computes %GRR, %Tolerance and ndc from a pasted table. In that study the gauge's total measurement standard deviation comes out at about 0.13 µm, with repeatability and reproducibility contributing about equally, and %Tolerance of about 19 %.

Read the four location-and-spread results together. The repeatability seen in the R&R study, about 0.09 µm, is larger than the 0.03–0.05 µm seen on reference pillars, which is normal: real pillars have sidewall slope, surface texture and placement variation that a polished reference does not. The reproducibility term, about 0.09 µm, comes from one operator's session reading higher than the others and is the largest single thing to fix. The residual bias of 0.057 µm and the 0.085 µm change in bias across the range are each smaller than either spread term, so for this gauge the priority is the operator shift, then the linearity, and the residual bias last.

Attribute agreement: pass/fail inspection and kappa

A visual inspection of pillar shape has no µm to measure. The study for a pass/fail gauge, including a human one, gives each inspector the same parts twice without telling them which is which, and compares every judgment with every other and with a reference judgment made in advance by a senior engineer with better equipment. Here 30 pillars, 8 of which the reference calls fail, are judged twice by inspectors A and B.

Attribute agreement judgments by part (P pass, F fail)
PartRefA1A2B1B2
1–10P P F P P P F P P FP P F P P P F P P FP P F P P P F P P FP P F P P P F P P PP P F P P P F P P F
11–20P P P F P P F P P PP P P F P P F P P PP P P F P P F P P PP P P F P P F P P PP P P F P P P P P P
21–30P F P P F P P P F PP F P P F P P P F PP F P P P P P P F PP F P P F P P P F PP F P P F P P P P P

Bold marks a judgment that differs from the reference. Four summaries are read from this table.

Agreement summaries for inspectors A and B
MeasureInspector AInspector B
Agrees with own earlier judgment (within-inspector), parts29 of 30 = 96.7 %27 of 30 = 90.0 %
Both judgments match the reference, parts29 of 30 = 96.7 %27 of 30 = 90.0 %
All four judgments agree (between inspectors), parts26 of 30 = 86.7 %
All four agree and match the reference, parts26 of 30 = 86.7 %

Percent agreement flatters a lopsided inspection: with 22 of 30 parts passing, an inspector who passed everything would match the reference 73 % of the time and be useless. Cohen's kappa corrects for the agreement expected by chance. For two sets of judgments with observed agreement pₒ and chance agreement pₑ (the sum over categories of the product of each side's category proportions),

κ = (pₒ − pₑ) / (1 − pₑ)

Over the 60 paired judgments (both trials) A and B agree on 56, pₒ = 0.933; A calls 25.0 % of its judgments fail and B 21.7 %, so pₑ = 0.750 × 0.783 + 0.250 × 0.217 = 0.642, and κ = (0.933 − 0.642)/(1 − 0.642) = 0.81. Against the reference, κ = 0.96 for A and 0.86 for B. A kappa of 1 is perfect agreement; 0 is what chance alone gives. The guidance most engineers quote treats kappa above 0.75 as good agreement and below 0.40 as poor, with an effectiveness (judgments matching the reference) of 90 % or more expected of an acceptable inspector; treat these as guidance, not limits.

The numbers say this inspection is acceptable but the direction of the misses matters more than the percentages. All four disagreements with the reference, one by A and three by B, are fail pillars called pass. An inspector who occasionally fails a good pillar costs a rework; one who passes bad pillars ships them. B's three misses are three different pillars, so this is not one hard case; it is B's threshold, and the fix is a boundary sample of the shape that B is passing, not a lecture about attention.

Common mistakes

  1. Treating calibration as the whole MSA. Calibration adjusts bias at the calibration points on the calibration day. Linearity, stability and repeatability are untouched by it, and the bias study after calibration measures what the procedure left behind.
  2. Running Gage R&R first and alone. A gauge with 0.1 µm of linearity passes a Gage R&R study, which only sees spread. Bias and linearity come first; they are cheaper and they are the ones that calibration can fix.
  3. Reading a stability chart with specification limits. The limits are computed from the gauge's own moving ranges, not from the product tolerance. A gauge can drift well within the product tolerance and still have moved.
  4. Reporting percent agreement without kappa. When most parts pass, high agreement is the default. Kappa, or the rate at which fails are caught, is what separates a good inspector from one who passes everything. Attribute agreement study design shows how the mix of parts and the study size move kappa.
  5. Using one reference for linearity. One point gives bias, not linearity. Three references spanning the range of the parts is the minimum, and the references need their own certificates; a linearity "problem" is sometimes a reference problem.
  6. Mixing studies in one data set. Operators, days and references each belong to one study. A bias study run by three operators over three days has a mean that answers no clean question.

Using the tools and guides

The Gauge R&R (ANOVA) calculator computes the Gage R&R study and the Attribute Agreement Analysis (Kappa) tool computes the agreement percentages and kappas of the attribute study; the bias, linearity and stability arithmetic above needs only a mean, a standard deviation, a least-squares line and the I-MR constants, and the Process Capability Calculator turns the σ of production readings into capability indices; the Gage R&R after calibration guide shows how the measurement variance is removed from the observed variance first, σ²process = σ²observed − σ²GRR. The Gage R&R after calibration guide carries the full R&R study on this gauge; the I-MR chart guide and the control chart constants guide cover the stability chart; the t table supplies the critical value in the bias test.

Sources and further reading