GUM Uncertainty Budgets: Type A, Type B, Combined and Expanded
A current is measured as the voltage across a calibrated shunt. The DMM's readings scatter in the fifth digit, the shunt's certificate quotes its value with an uncertainty, the shunt is warmer than when it was calibrated, and its temperature coefficient is known only to a limit. Which of these matters? An uncertainty budget answers that question in a table: every input, its standard uncertainty, how strongly the result depends on it, and its share of the total. This lesson builds a complete budget by the Guide to the Expression of Uncertainty in Measurement (GUM, JCGM 100:2008), including the parts EE Foundations left out: distributions other than rectangular, certificates, sensitivity coefficients for a non-trivial model, degrees of freedom and the coverage factor.
The procedure
- Model. Write the measurand as a function of all inputs, , including corrections whose best estimate is zero (an offset you did not measure is still an input, with value 0 and an uncertainty).
- Estimates and standard uncertainties. For each input, an estimate and a standard uncertainty , either Type A (statistics of repeated observations, previous lesson) or Type B (everything else).
- Sensitivity coefficients at the estimates.
- Combined standard uncertainty for uncorrelated inputs:
- Effective degrees of freedom (Welch–Satterthwaite) and the coverage factor :
- Report with and the coverage probability, and keep the budget table.
Type B: choosing a distribution
A Type B evaluation turns information about a limit into a standard deviation. The shape you assume sets the divisor:
| Information you have | Distribution | |
|---|---|---|
| a certificate: ", " | normal | |
| a spec or tolerance , no other knowledge | rectangular | |
| a display resolution | rectangular, | |
| values near the centre more likely (e.g. difference of two rectangular quantities) | triangular | |
| a sinusoidally varying quantity sampled at random (temperature cycling, mismatch phase) | U-shaped (arcsine) |
The rectangular assumption is the cautious default: for a given half-width it gives a larger than triangular or normal-in-. Type B uncertainties are usually given infinite degrees of freedom; the GUM allows a finite when you doubt the limit itself.
Sensitivity coefficients
For simple products and quotients, relative uncertainties combine directly (exponents as weights). For anything else, differentiate. In the shunt model
the partial derivatives are
with . Each has units (A/V, A/ohm, A K, A/K), so every product is in amperes and can be added.
Worked example: current through a calibrated shunt
Given: ten DMM readings of the shunt voltage (in the program below) with mean on the range, spec , resolution ; shunt certificate , () at ; temperature coefficient (datasheet limit); shunt temperature (thermometer limit).
Find: , its budget and the expanded uncertainty at about .
Solve: . The program builds the table:
import numpy as np
from scipy import stats
# Model: I = V / (R * (1 + alpha * (T - T0)))
V_read = np.array([0.15241, 0.15232, 0.15236, 0.15240, 0.15235,
0.15239, 0.15233, 0.15238, 0.15236, 0.15240]) # volts, 10 readings
V = float(V_read.mean())
R, alpha, T, T0 = 0.10003, 20e-6, 35.0, 23.0
dT = T - T0
I = V / (R * (1 + alpha * dT))
# (name, value, standard uncertainty, sensitivity coefficient, degrees of freedom, how obtained)
u_A = float(V_read.std(ddof=1) / np.sqrt(len(V_read)))
a_spec = 40e-6 * V + 7e-6 * 1.0 # DMM 1 V range: 0.0040 % of reading + 0.0007 % of range
budget = [
("V repeatability", u_A, 1 / (R * (1 + alpha * dT)), len(V_read) - 1, "Type A, s/sqrt(n)"),
("V meter spec", a_spec / np.sqrt(3), 1 / (R * (1 + alpha * dT)), np.inf, "Type B, rectangular"),
("V resolution", 0.5e-6 / np.sqrt(3), 1 / (R * (1 + alpha * dT)), np.inf, "Type B, rectangular"),
("R certificate", 0.00002 / 2, -I / R, np.inf, "Type B, normal, U/k with k = 2"),
("alpha datasheet", 10e-6 / np.sqrt(3), -I * dT / (1 + alpha * dT), np.inf, "Type B, rectangular"),
("T thermometer", 1.0 / np.sqrt(3), -I * alpha / (1 + alpha * dT), np.inf, "Type B, rectangular"),
]
print(f"V = {V:.6f} V, I = {I:.6f} A")
print(f"{'input':16s} {'u(x_i)':>10s} {'c_i':>10s} {'|c_i u_i| (A)':>13s} {'nu':>4s} share")
contrib = np.array([abs(c * u) for _, u, c, _, _ in budget])
uc = float(np.sqrt(np.sum(contrib**2)))
for (name, u, c, nu, how), ci_ui in zip(budget, contrib):
nus = "inf" if np.isinf(nu) else f"{nu:d}"
print(f"{name:16s} {u:10.3e} {c:10.3e} {ci_ui:13.3e} {nus:>4s} {100 * ci_ui**2 / uc**2:5.1f} %")
nu_eff = uc**4 / sum(ci_ui**4 / nu for (_, _, _, nu, _), ci_ui in zip(budget, contrib) if not np.isinf(nu))
k = float(stats.t.ppf(0.975, nu_eff)) if nu_eff < 1e6 else 1.96
print(f"u_c(I) = {uc:.3e} A ({1e6 * uc / I:.0f} ppm), nu_eff = {nu_eff:.0f}, k(95 %) = {k:.2f}")
print(f"I = {I:.5f} A +/- {k * uc:.5f} A (k = {k:.2f}, about 95 %)")V = 0.152370 V, I = 1.522878 A
input u(x_i) c_i |c_i u_i| (A) nu share
V repeatability 9.775e-06 9.995e+00 9.770e-05 9 19.1 %
V meter spec 7.560e-06 9.995e+00 7.556e-05 inf 11.4 %
V resolution 2.887e-07 9.995e+00 2.885e-06 inf 0.0 %
R certificate 1.000e-05 -1.522e+01 1.522e-04 inf 46.5 %
alpha datasheet 5.774e-06 -1.827e+01 1.055e-04 inf 22.3 %
T thermometer 5.774e-01 -3.045e-05 1.758e-05 inf 0.6 %
u_c(I) = 2.233e-04 A (147 ppm), nu_eff = 246, k(95 %) = 1.97
I = 1.52288 A +/- 0.00044 A (k = 1.97, about 95 %)
Check: the result is (), a relative expanded uncertainty of . The table shows what to improve: the shunt certificate ( of the variance) and the poorly known temperature coefficient () together dominate; the DMM's resolution and the thermometer are irrelevant. A better DMM would buy little. Calibrating the shunt at its working temperature would remove the term. The units of every are amperes, as required.
Guided lab: build a budget for your own measurement
Hand calculation. Pick a current-sense resistor (, ) carrying about from a current-limited bench supply. Its tolerance alone contributes , which will dominate everything else unless you measure the resistor first (four-wire, next section).
Simulation. Edit the program: replace the certificate line by the tolerance (0.001 / np.sqrt(3)), set alpha = 75e-6 with a limit of 75e-6, and rerun. Watch the share column: the budget collapses onto one line.
What you would measure. Ten readings across the resistor at (set on the supply in CC mode), with a 5½-digit DMM on the or range: about with a scatter of a few microvolts, and a current known to about () with the tolerance, or to a few hundred ppm after a four-wire measurement of the resistor.
Hazards and safe setup. in dissipates ; use a resistor rated at least , heavy enough wires, a current limit of and a supply voltage of a few volts. Let the resistor reach a steady temperature before reading.
Pitfalls
- Leaving out an input because its estimate is zero (an uncorrected offset or thermal EMF).
- Dividing a certificate's by : it is already a normal-distribution expanded uncertainty; divide by its .
- Mixing units in the table: every must be in the unit of the result.
- Always using when a Type A term with few readings dominates: compute .
- Building a budget without a share column: the point of the table is to show what dominates.
Practice
- A certificate gives with (). What standard uncertainty do you use?
- A budget has two terms: with (Type A, five readings) and (Type B, ). Find , and .
Answer
- .
- ; ; .
Test yourself
A tolerance of with no other information gives a standard uncertainty of
What is the sensitivity coefficient of with respect to ?
When should the coverage factor be larger than 2 for about 95 %?
- never
- when the effective degrees of freedom are small, e.g. a dominant Type A term from few readings
- when a Type B term dominates
- when the result is negative
In the shunt budget above, which change would reduce the uncertainty most?
- a DMM with more digits
- a better thermometer
- a better-calibrated shunt or a shunt calibrated at its working temperature
- more voltage readings