TactivergeLite

Lite / Engineering Complex Systems / Week 29

Propagating uncertainty through a calculation

Voltage ± 2%, current ± 3%. Is the power ± 5%, ± 1%, or something else?

About 45 min · 3 goals · Checked by automated tests · Full interactive version

Why should I care?

Engineers rarely measure the quantity they care about directly. Power comes from V and I; efficiency from two powers; speed-up from two times. Propagation tells you how the uncertainty of each input flows into the answer, and which input to improve first.

Predict

P = V·I with V uncertain by 2% and I by 3% (independent). What is the uncertainty in P?

  1. 5%
  2. About 3.6%
  3. 3%
  4. 1%
Guess first, then reveal

Relative uncertainties of a product add in quadrature: √(2² + 3²) ≈ 3.6%. Simply adding (5%) assumes both errors always push the same way at full size, which is a worst case, not a typical one.

Discover

Start with A × B. Compare the formula's uncertainty with the Monte Carlo spread. Then switch to A ÷ B, set B = 2 and push δB up past 0.3: when does the formula stop agreeing with the simulation, and which way is the histogram skewed?

What the interactive shows (text version)

The calculator takes A ± δA and B ± δB and an operation. It shows the formula result, the propagated uncertainty, and a histogram of 4,000 simulated results with dashed lines at ±1 formula uncertainty. For A × B with small uncertainties the histogram's spread matches the formula. For A ÷ B with B = 2 ± 0.4, the histogram becomes skewed to the right and its spread exceeds the formula by more than 10%, showing where the linear approximation fails.

You can also open the interactive on the full site when you have a faster connection.

Understand

Sums and differences: absolute, in quadrature

For q = a ± b with independent uncertainties: δq = √(δa² + δb²). The bigger uncertainty dominates: √(5² + 1²) = 5.1, so shrinking the small one achieves almost nothing. Subtracting two nearly equal measurements is dangerous: the result is small but its absolute uncertainty is not, so its relative uncertainty explodes.

Products and quotients: relative, in quadrature

For q = a·b or a/b: δq/q = √((δa/a)² + (δb/b)²). Work in percentages, combine, then convert back. Energy E = V·I·t with V ± 2%, I ± 3% and t exact: δE/E = √(4 + 9)% ≈ 3.6%. A squared quantity doubles its relative uncertainty: kinetic energy ½mv² with v ± 1% is uncertain by at least 2%.

Independence is an assumption

Quadrature assumes the errors are independent. If V and I are read through the same miscalibrated ADC reference, their errors are correlated and partly add linearly. Systematic errors from one shared source should be propagated together, not as separate independent terms.

The error budget

List each input's contribution to the final variance: for a product, (δa/a)², (δb/b)², ... Rank them. Improve the largest first. Engineers call this an uncertainty budget, and it is the same idea as a power or mass budget: account for everything, then spend effort where it buys the most.

Explain it another way

Intuitive

Two dice: each can be off by a bit. Their errors sometimes cancel and sometimes add, so on average the total is off by more than either but less than both together. Quadrature is the averaging rule for that.

Technical

General law (GUM, first order, uncorrelated inputs): u_c²(q) = Σ (∂f/∂xᵢ)²·u²(xᵢ). Correlated inputs add 2·(∂f/∂xᵢ)(∂f/∂xⱼ)·u(xᵢ, xⱼ) terms.

Mathematical

For q = x/y: ∂q/∂x = 1/y, ∂q/∂y = −x/y². σ_q² = σ_x²/y² + x²σ_y²/y⁴. Dividing by q² = x²/y² gives (σ_q/q)² = (σ_x/x)² + (σ_y/y)².

Applied

Calibration laboratories publish an uncertainty budget for every certificate: each source (reference standard, temperature, resolution, repeatability) with its contribution, combined in quadrature, then expanded by a coverage factor of about 2.

Derivation: First-order propagation from the tangent line
  1. Let q = f(x, y) with small independent errors δx, δy around the measured values.

  2. Linearise with partial derivatives (the tangent plane): Δq ≈ (∂f/∂x)·Δx + (∂f/∂y)·Δy.

  3. For independent errors the variances add: σ_q² ≈ (∂f/∂x)²·σ_x² + (∂f/∂y)²·σ_y². Cross terms vanish because E[ΔxΔy] = 0.

  4. Sum q = x + y: both partials are 1, so σ_q = √(σ_x² + σ_y²). The same for x − y: (−1)² = 1, so uncertainties never cancel.

  5. Product q = x·y: ∂q/∂x = y and ∂q/∂y = x. Divide σ_q² = y²σ_x² + x²σ_y² by q² = x²y²: (σ_q/q)² = (σ_x/x)² + (σ_y/y)².

  6. Quotient q = x/y gives the same relative rule. Power q = xⁿ gives σ_q/q = |n|·σ_x/x.

  7. The rule is first order: it fails when the function curves noticeably across ±σ (for example dividing by a quantity uncertain by more than about 10%). Then use Monte Carlo.

Worked example 1

Efficiency η = P_out/P_in with P_out = 42.0 ± 0.6 W and P_in = 50.0 ± 0.5 W. Find η and its uncertainty.

η = 0.840. Relative: √((0.6/42)² + (0.5/50)²) = √(0.000204 + 0.000100) = 1.74%. δη = 0.840 × 0.0174 = 0.015. η = 0.840 ± 0.015.

Worked example 2

A mass difference: 152.3 ± 0.4 g − 151.8 ± 0.4 g. What is the result and its relative uncertainty?

0.5 ± √(0.16 + 0.16) = 0.5 ± 0.57 g. The relative uncertainty is over 100%: the difference is not even distinguishable from zero. Measure the difference directly instead.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

g

J

Practice 3. A power estimate P = V·I has V ± 0.5% and I ± 4%. To halve the uncertainty in P, what should you improve?

%

Practice 5. Why is subtracting two nearly equal measured values risky?

Apply it

Pick a formula from an earlier term (Ohm's law power, a gear ratio speed, a heat-balance estimate). Assign realistic uncertainties to each input, build the uncertainty budget table, and say which measurement you would improve first.

Reflect

When would you trust the quadrature formula, and when would you reach for Monte Carlo instead?

Write your answer on paper or in your own notes. Lite never stores what you write.

← What a 95% confidence interval really promisesMonte Carlo: propagate by simulation →