TactivergeLite

Lite / Textbooks / Applied Engineering Mathematics / Chapter 8

8. Estimation and error budgets

Version 1 · Technically checked (automated checks only) · 4 source lessons · Full interactive version

Introduction

An estimator is a recipe for turning data into a number, and recipes can be compared: some are biased, some are noisy, and the best trade the two. This chapter treats estimation as engineering. Maximum likelihood chooses parameters that make the data most probable; propagation carries uncertainty through formulas; and an error budget shows which source dominates, so effort goes where it actually reduces the total.

Figure 8.1. Where the uncertainty comes from (described in words)

An error budget with independent terms of 3, 4 and 12 combined by root-sum-square to a total of 13. The terms carry 5.3 %, 9.5 % and 85.2 % of the variance, so halving the largest term would cut the total to about 7.81, while removing the smallest barely helps.

Explanation

Built from 4 School lessons. Each part is the lesson's own explanation.

8.1 Estimators: bias, variance and error

Two ways to locate a landmark: one is always 20 cm off but rock-steady, the other is right on average but scatters by a metre. Which is better?

The estimator is random

An estimator θ̂ = g(X₁, …, Xₙ) is a random variable, because the data are. Imagine repeating the whole experiment many times: each repeat gives a dart on the board. We judge the estimator by the cloud of darts, not by one throw.

Bias and variance

Bias = E[θ̂] − θ: how far the cloud's centre is from the truth. Variance = E[(θ̂ − E[θ̂])²]: how scattered the cloud is. The sample mean is unbiased with variance σ²/n. Using only the first reading is also unbiased, but its variance is σ²: n times worse.

Mean squared error

MSE = E[(θ̂ − θ)²] = bias² + variance. RMSE = √MSE is in the units of θ. A slightly biased estimator can have lower MSE than an unbiased one if it cuts variance enough. That is why filters sometimes deliberately smooth (accepting lag, a bias) to reduce noise.

Common mix-ups

Open the Lite lesson: Estimators: bias, variance and error

8.2 Maximum likelihood

A probe's detector counted 12 dust impacts in 4 hours. What impact rate makes that observation least surprising?

Likelihood

Given a model P(data | θ), the likelihood L(θ) is that same expression read as a function of θ, with the data fixed. It is not a probability distribution over θ (it need not integrate to 1). The MLE θ̂ maximises L, or equivalently the log-likelihood ℓ = ln L, which turns products into sums.

Two classic results

Binomial: ℓ(p) = k ln p + (n − k) ln(1 − p) + c; dℓ/dp = 0 gives p̂ = k/n. Poisson with rate λ over time T: ℓ(λ) = k ln(λT) − λT + c; dℓ/dλ = k/λ − T = 0 gives λ̂ = k/T. The MLE is usually the 'obvious' estimate, now with a justification.

Gaussian noise gives least squares

If yᵢ = f(xᵢ; θ) + εᵢ with εᵢ ~ N(0, σ²) independent, then ℓ(θ) = −Σ(yᵢ − f(xᵢ; θ))²/(2σ²) + c. Maximising ℓ is minimising the sum of squared residuals. Least squares is the MLE when the noise is Gaussian, and only then is it guaranteed optimal in this sense.

Derivation: The MLE of a Poisson rate
  1. k events in time T, rate λ: P(k | λ) = e^(−λT)(λT)ᵏ / k!.

  2. Log-likelihood: ℓ(λ) = −λT + k ln λ + k ln T − ln k!.

  3. Differentiate: dℓ/dλ = −T + k/λ.

  4. Set to zero: λ̂ = k/T. Second derivative −k/λ² < 0, so it is a maximum.

  5. Example: 12 impacts in 4 h gives λ̂ = 3 per hour.

Common mix-ups

Open the Lite lesson: Maximum likelihood

8.3 Propagating uncertainty: linearisation and Monte Carlo

You know the wheel's circumference to 1% and the turn count to 2%. How well do you know the distance? And what if the formula is not so simple?

First-order propagation

For y = f(x₁, …, xₙ) with independent inputs, σ_y² ≈ Σ (∂f/∂xᵢ)² σᵢ². This is a Taylor expansion to first order: it treats f as a plane near the measured point. It is exact for linear functions and good when σᵢ is small compared with the scale on which f bends.

Handy rules

Sums and differences: absolute uncertainties add in quadrature. Products and quotients: relative uncertainties add in quadrature. Powers: y = xⁿ gives σ_y/y = |n|·σ_x/x. Correlated inputs need the covariance term 2(∂f/∂x)(∂f/∂y)Cov(x, y).

Monte Carlo propagation

Draw many input samples from their distributions, push each through f, and look at the outputs. No derivatives needed, nonlinearity and correlation handled automatically, and you get the whole output distribution. The cost is computation and the need for honest input distributions.

Common mix-ups

Open the Lite lesson: Propagating uncertainty: linearisation and Monte Carlo

8.4 Error budgets: where does the uncertainty come from?

A landing has six independent sources of position error. Halving the smallest one saves almost nothing. Halving the biggest saves a lot. How do you know which is which?

Root-sum-square

If contributions eᵢ are independent with standard deviations σᵢ, the total σ = √(Σσᵢ²). Squares make the big terms dominate: a term half the size of the largest contributes only a quarter as much variance.

Sensitivity and payoff

∂σ/∂σᵢ = σᵢ/σ. Improving the largest term pays most. A good budget lists each term, its source, how it was estimated (test, analysis, data sheet) and its share of total variance σᵢ²/σ².

Allocation and margin

Work backwards from a requirement: if the landing must be within 10 km (3σ), the total 1σ must be ≤ 3.3 km. Allocate that among subsystems so the RSS fits, keeping margin for errors not yet understood. Correlated terms must be combined with their covariance, or added linearly as a conservative bound.

Common mix-ups

Open the Lite lesson: Error budgets: where does the uncertainty come from?

Worked examples

Estimators: bias, variance and error: example 1

An estimator has bias 0.3 m and standard deviation 0.4 m. What is its RMSE?

Solution

MSE = 0.3² + 0.4² = 0.25 m², RMSE = 0.5 m.

Estimators: bias, variance and error: example 2

Mean of 16 readings with σ = 2 m versus a single reading: compare RMSE (both unbiased).

Solution

Mean: 2/√16 = 0.5 m. Single: 2 m. The mean is four times better.

Maximum likelihood: example 1

12 micrometeoroid impacts are recorded in 4 hours. MLE of the rate and its approximate standard error?

Solution

λ̂ = 12/4 = 3 per hour. SE ≈ √(λ̂/T) = √(3/4) ≈ 0.87 per hour.

Propagating uncertainty: linearisation and Monte Carlo: example 1

Speed v = d/t with d = 100.0 ± 0.5 m and t = 20.0 ± 0.2 s (independent). Find v ± σ_v.

Solution

v = 5.00 m/s. Relative: √(0.5² + 1.0²)% = 1.12%. σ_v ≈ 0.056 m/s.

Error budgets: where does the uncertainty come from?: example 1

Contributions 2, 6, 5 and 1.5 km. Total, and the share of variance from the 6 km term?

Solution

Total = √67.25 ≈ 8.20 km. Share = 36/67.25 ≈ 54%.

Interactive figures, in words

Figure 8.2 from Estimators: bias, variance and error

With no systematic offset, compare 'average of all n', 'first reading only' and '0.7 × average' at n = 5. Record bias, spread and RMSE for each. Then add a 0.5 m sensor offset and see which numbers move.

Each dot on the dartboard is one repeated experiment's estimate; the cross marks their centre. The readout gives observed and theoretical bias, spread and RMSE, so the comparison can be made from the numbers alone.

Figure 8.3 from Maximum likelihood

Keep the flat prior. Add 7 successes and 3 failures. With a flat prior the posterior is just the normalised likelihood, so its peak is the MLE: check it sits at 0.7. Add more data in the same ratio and watch the peak stay put while it narrows.

With a flat prior, the grid's posterior bars are the normalised likelihood; the readout states the peak value and k/n, which match. All values appear in the text readout.

The interactive versions are in the full chapter.

Laboratory

These run in a browser on the full site (they need a faster connection). Simulations are simplified educational models.

Practice

Each question links to its Lite lesson, where your answer is checked on our server and a wrong answer gets a hint. Answers are never sent to your device.

  1. An estimator has bias 1.2 cm and standard deviation 0.5 cm. What is its RMSE, in cm?
    Answer it in “Estimators: bias, variance and error”
  2. Estimator A: bias 0, σ = 2. Estimator B: bias 0.5, σ = 1. Which has lower MSE?
    Answer it in “Estimators: bias, variance and error”
  3. A gripper succeeds 18 times in 24 attempts. What is the maximum-likelihood estimate of its success probability?
    Answer it in “Maximum likelihood”
  4. Least squares is the maximum-likelihood fit when the measurement noise is…
    Answer it in “Maximum likelihood”
  5. A position is the sum of two independent legs: 40.0 ± 0.3 m and 25.0 ± 0.4 m. What is the standard uncertainty of the total, in m?
    Answer it in “Propagating uncertainty: linearisation and Monte Carlo”
  6. Kinetic energy ½mv² with mass known exactly and v uncertain by 3%. What is the relative uncertainty of the energy, in %?
    Answer it in “Propagating uncertainty: linearisation and Monte Carlo”
  7. Terms of 3, 4 and 12 m (1σ). What percentage of total variance comes from the 12 m term?
    Answer it in “Error budgets: where does the uncertainty come from?”
  8. A budget has terms 1, 2 and 8 m. You can halve any one term. Which gives the biggest improvement?
    Answer it in “Error budgets: where does the uncertainty come from?”

Engineering applications

Navigation accuracy

A rover's position error combines wheel slip, heading drift and map error. A budget shows which term dominates over a given drive, and therefore which sensor upgrade is worth its mass.

Measurement systems

A force rig's uncertainty combines the load cell, the amplifier and the fixture alignment. Engineers buy a better load cell only when the budget says it is the largest term.

Watch (optional)

Streaming video uses a lot of data. Everything you need is in the text.

Summary

Glossary

Error propagation
Error propagation works out the uncertainty of a calculated result from the uncertainties of its inputs. For independent errors, sums add absolute uncertainties in quadrature and products add relative uncertainties in quadrature. Field Guide
Random and systematic error
Random errors scatter readings unpredictably above and below the true value; systematic errors shift every reading the same way. Field Guide
Absolute and relative uncertainty
Absolute uncertainty is the ± range in the same units as the measurement; relative uncertainty is that range divided by the measurement, often as a percentage. Field Guide
Accuracy, precision and resolution
Accuracy is how close a measurement is to the true value; precision is how close repeated measurements are to each other; resolution is the smallest change an instrument can show. Field Guide

Project: An error budget for a measurement

Choose a measurement you can model, such as a distance from a range sensor on a tilting mount. List every error source with a stated 1σ value and its basis, combine them, and recommend the single improvement that most reduces the total.

Deliverables

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

References

← 7. Statistics for engineering evidenceContents →