Attribute gage study: bias and repeatability of a pass/fail gauge

Updated

An attribute gage study measures the bias and repeatability of a gauge that only says pass or fail, such as a go/no-go plug, a snap gauge, a leak tester with a fixed threshold or a vision check. Such a gauge does not switch sharply at the specification limit. Near the limit it accepts the same part sometimes and rejects it other times. The study maps that gray zone: where the gauge's 50% switch point sits relative to the limit (bias), and how wide the zone of uncertain verdicts is (repeatability). The method described here is the analytic method of the automotive MSA reference manual.

When to use it

  • A pass/fail gauge decides on parts near a specification limit, and you need to know how often it accepts bad parts or rejects good ones.
  • You can measure reference values for a set of parts with a variable gauge that is much more precise than the attribute gauge.
  • You can repeat the pass/fail check many times on each part without changing it.
  • For judgments made by people, such as visual inspection, an attribute agreement analysis is the usual study instead.

How it works

  1. Select reference parts near one limit. Measure each part's reference value with a variable gauge. Parts should span the region where the gauge's verdict changes.
  2. Check each part m = 20 times and count the acceptances a. The manual asks for at least eight parts, where the smallest part is accepted 0 times, the largest 20 times, and at least six parts fall in between (1 to 19 acceptances). Add parts until that holds.
  3. Adjust the acceptance proportion. Raw proportions of 0 or 1 cannot be placed on a normal scale, and proportions near the ends are biased, so each is moved half a count toward 0.5:
Pa′ = (a + 0.5) / m if a/m < 0.5 Pa′ = (a − 0.5) / m if a/m > 0.5 Pa′ = 0.5 if a/m = 0.5
  1. Fit the gauge performance curve. For the parts with 1 to 19 acceptances, convert Pa′ to a normal score z = Φ⁻¹(Pa′) and fit a straight line of z against the reference value by least squares. If the gauge's verdict follows a normal curve, z = (x − μ)/σ, so the line gives the switch point μ and the spread σ.
  2. Read bias and repeatability from the curve.
bias = μ − limit width = x at Pa = 0.995 − x at Pa = 0.005 = 5.15 σ

The manual divides this width by an adjustment factor that depends on the number of trials to get its repeatability, and tests the bias with a t statistic built from the bias and that repeatability; see the manual for its constants. A maximum likelihood (probit) fit of the same curve, as in binary logistic regression with a normal link, is a common alternative to the least-squares line.

Example

A shaft of 10.000 ± 0.020 mm is checked for its minimum diameter (LSL = 9.980 mm) with a pass/fail snap gauge. Eight shafts were measured on a precision bench gauge, and each was then checked 20 times with the snap gauge, in random order:

ShaftReference (mm)Accepted (of 20)a/mPa′z
19.973500.000.000
29.975010.050.075−1.440
39.976530.150.175−0.935
49.978070.350.375−0.319
59.979590.450.475−0.063
69.9810170.850.8250.935
79.9825190.950.9251.440
89.9840201.001.000
Normal score of the adjusted acceptance proportion against reference value-101z = Φ⁻¹(Pa′)9.9769.9789.9809.982Reference diameter (mm)
Normal score of the adjusted acceptance proportion against reference value

The least-squares line is z = −3850.68 + 385.88 × x (R² = 98.2%), so:

  • Switch point μ = 3850.68/385.88 = 9.97891 mm; σ = 1/385.88 = 0.00259 mm.
  • Bias = 9.97891 − 9.980 = −0.00109 mm, about −1.1 µm.
  • The 0.5% and 99.5% points are 9.97224 and 9.98559 mm, a width of 0.01335 mm, 33% of the 0.040 mm tolerance.
Gauge performance curve: observed and fitted acceptance proportion0.000.250.500.751.00Probability of acceptanceObserved a/mFitted curve9.97359.97509.97659.97809.97959.98109.98259.9840Reference diameter (mm)
Gauge performance curve: observed and fitted acceptance proportion

How to read the results

  • The gauge accepts slightly undersize shafts. Its 50% point is 1.1 µm below the limit. A shaft exactly at the LSL is accepted with probability Φ(0.42) = 0.66, not the 0.5 a centered gauge would give.
  • The bias looks real. A parametric bootstrap of this fit (5,000 simulated studies) gives a 95% interval for the bias of −0.0018 to −0.0004 mm, which excludes zero. A maximum likelihood probit fit gives a similar picture: μ = 9.9790 mm, σ = 0.0022 mm.
  • The gray zone is wide. About a third of the tolerance lies in the zone where the verdict is uncertain. A shaft 0.005 mm below the limit is still accepted 6.5% of the time.
  • What to do. If accepting undersize shafts matters, reset the gauge so its switch point sits above the limit (a guard band), or check parts near the limit with a variable gauge.

Common mistakes

  • Choosing reference parts that are too far apart. If every part is accepted 0 or 20 times, there is nothing to fit. Add parts in the transition region.
  • Using reference values from a gauge no better than the attribute gauge. The reference must be far more precise than the width you are trying to measure.
  • Studying only one limit when both matter. A two-sided gauge needs a study at each limit; the curves can differ.
  • Reading a small number of trials as a precise curve. With 20 trials per part, each proportion has a standard error of up to 0.11.

Frequently asked questions

Why 20 trials per part?

It balances effort and precision. The manual's adjustment factor and t-test constants are tied to 20 trials, so changing m changes them too.

Why move the proportions half a count toward 0.5?

A raw proportion of 0 or 1 has an infinite normal score, and small counts are biased toward the ends. The half-count correction keeps every point finite and reduces that bias.

How is this different from attribute agreement analysis?

This study uses a variable reference and a mechanical gauge, and reports bias and repeatability in measurement units. Attribute agreement analysis compares people's judgments with each other and with a standard, and reports agreement rates and kappa.

Can I use more than eight parts?

Yes. More parts in the transition region make the fitted line more stable. The requirement is at least six with between 1 and 19 acceptances.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab