Skip to content
Tactiverge

Textbooks/Applied Engineering Mathematics/Chapter 8Lite (plain text) version

8Estimation and error budgets

Version 1 · Technically checked (automated checks only) · 4 source lessons · 8 practice items

Text
All chapters and search
  1. 1. Linear systems in practice
  2. 2. Least squares and model fitting
  3. 3. Linearisation, Jacobians and Newton's method
  4. 4. Differential equations and stability
  5. 5. Fourier and transform thinking
  6. 6. Numerical methods and their errors
  7. 7. Statistics for engineering evidence
  8. 8. Estimation and error budgets

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.

total = √(3² + 4² + 12²) = 13term 13 (5.3 %)term 24 (9.5 %)term 312 (85.2 %)total13Shares are of the variance (squares), so thelargest term dominates: halve it first.Halving 12 → 6 gives total 7.81.
Figure 8.1. Where the uncertainty comes from. 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

This chapter is built from 4 School lessons. Each part below is the lesson's own explanation; open the lesson for its predict-and-discover activities.

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

  • Unbiased means accurate.
    ✓ Unbiased means right on average. A single unbiased estimate can still be far off if its variance is large.
  • Bias and variance are the same thing measured differently.
    ✓ They are separate: averaging reduces variance; only calibration or a better model reduces bias.

Open the full 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

  • The MLE is the most probable value of θ.
    ✓ It makes the data most probable. Saying which θ is most probable needs a prior (Bayes).
  • Least squares is always the best fit.
    ✓ It is the MLE for independent Gaussian noise. With outliers or counts, other criteria do better.

Open the full 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

  • Uncertainties always add.
    ✓ Independent uncertainties add in quadrature. Straight addition is a worst case for fully correlated errors.
  • The output mean is always f(mean of inputs).
    ✓ Only to first order. Curved functions shift the mean, which Monte Carlo shows directly.

Open the full 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

  • Every error source deserves equal attention.
    ✓ In an RSS budget the largest term dominates; effort should follow variance share.
  • RSS is always safe.
    ✓ It assumes independence. Correlated terms can add linearly, so a budget must say which terms are independent.

Open the full 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

Figure 8.2 from Estimators: bias, variance and errorWith 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.
Can't use the interactive? Read a description instead

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.

Interactive figure (online). Description: 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 likelihoodKeep 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.
Can't use the interactive? Read a description instead

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.

Interactive figure (online). Description: 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.

Laboratory

Everything runs in your browser. No kit, nothing mains-powered. Simulations are simplified educational models.

Guided practice

Answers are checked on the server; wrong answers get a hint and another try. Signed in, solved items also count towards the source lesson.

Practice 1

An estimator has bias 1.2 cm and standard deviation 0.5 cm. What is its RMSE, in cm?

cm

Practice 2

Estimator A: bias 0, σ = 2. Estimator B: bias 0.5, σ = 1. Which has lower MSE?

Practice 3

A gripper succeeds 18 times in 24 attempts. What is the maximum-likelihood estimate of its success probability?

Practice 4

Least squares is the maximum-likelihood fit when the measurement noise is…

Practice 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?

m

Practice 6

Kinetic energy ½mv² with mass known exactly and v uncertain by 3%. What is the relative uncertainty of the energy, in %?

%

Practice 7

Terms of 3, 4 and 12 m (1σ). What percentage of total variance comes from the 12 m term?

%

Practice 8

A budget has terms 1, 2 and 8 m. You can halve any one term. Which gives the biggest improvement?

  1. An estimator has bias 1.2 cm and standard deviation 0.5 cm. What is its RMSE, in cm? (cm)
  2. Estimator A: bias 0, σ = 2. Estimator B: bias 0.5, σ = 1. Which has lower MSE?
    • A
    • B
    • They are equal
    • Cannot tell without more data
  3. A gripper succeeds 18 times in 24 attempts. What is the maximum-likelihood estimate of its success probability?
  4. Least squares is the maximum-likelihood fit when the measurement noise is…
    • Independent Gaussian with equal variance
    • Uniform
    • Poisson
    • Any distribution with mean zero
  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? (m)
  6. Kinetic energy ½mv² with mass known exactly and v uncertain by 3%. What is the relative uncertainty of the energy, in %? (%)
  7. Terms of 3, 4 and 12 m (1σ). What percentage of total variance comes from the 12 m term? (%)
  8. A budget has terms 1, 2 and 8 m. You can halve any one term. Which gives the biggest improvement?
    • Halve the 8 m term
    • Halve the 1 m term
    • Halve the 2 m term
    • All give the same improvement

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 verified videos. Nothing loads from YouTube until you press play.

Explains maximum likelihood by sliding a distribution along the data until the observations look most probable.

Length: see YouTube · captions on YouTube · source

Nothing loads from YouTube until you press play.

Bias and variance, and why a model that fits the training data perfectly can fail.

6 min 36 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

Five minutes clearing up probability versus likelihood, which trips up almost everyone.

5 min 1 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

  • Maximum Likelihood, clearly explained!!! (StatQuest with Josh Starmer)
  • Machine Learning Fundamentals: Bias and Variance (StatQuest with Josh Starmer)
  • In Statistics, Probability is not Likelihood. (StatQuest with Josh Starmer)

Chapter summary

  • Mean squared error = bias² + variance; a little bias can be worth a lot less variance.
  • Maximum likelihood picks the parameters that make the observed data most probable; with normal noise it is least squares.
  • For independent terms, variances add: total σ = √(σ1² + σ2² + …).
  • Shares of a budget are shares of variance, so the largest term dominates and is the one to reduce.

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.
Random and systematic error
Random errors scatter readings unpredictably above and below the true value; systematic errors shift every reading the same way.
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.
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.

Definitions from the 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

  • The budget table with sources and their basis
  • The combined uncertainty with the method used
  • A recommendation backed by each term's share

Keep your work in your Engineering Journal; it stays private unless you choose to share it.

References

  • Douglas C. Montgomery and George C. Runger (2014). Applied Statistics and Probability for Engineers, 6th edition. Wiley.
  • Erwin Kreyszig (2011). Advanced Engineering Mathematics, 10th edition. Wiley.

Publication record

Version
1
Status
Technically checked (automated checks only)
Technical review
Automated checks only, last run 2026-11-29. No human, educator or mentor review is claimed.src/content/textbooks/textbooks.test.ts: schema, every lesson, diagram, practice item, video, Field Guide entry, lab and reference resolves; figure numbers recomputed; no practice answers in client payloads.
Written by
Compiled and written by the Tactiverge team with AI assistance, from Tactiverge School lessons that were themselves written with AI assistance.
Licence
All rights reserved by the founders unless a licence is approved.
Corrections
None recorded yet.Spotted a mistake? Use “Report a problem” on any chapter, or see the corrections page.