Textbooks/Engineering Research and Experimental Methods/Chapter 1Lite (plain text) version
1Measurement and uncertainty
Version 1 · Technically checked (automated checks only) · 4 source lessons · 8 practice items
Introduction
Every measurement is a value and an uncertainty, and research starts by being honest about the second. This chapter separates random error, which averaging reduces, from systematic error, which it never does. It summarises repeated readings by mean and standard deviation, shows how the standard error of the mean shrinks with more readings, and carries uncertainty through a calculation so a derived result arrives with its own error bar.
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.
1.1 Random and systematic error
A wheel that measures 1% too big makes a robot think it has driven 101 m after 100 m. After a kilometre, where is it?
Systematic error repeats
A systematic error is the same, or follows the same pattern, every time: a wheel diameter set 1% too large, a thermometer mounted next to a warm motor, a camera that is slightly tilted. Repeating the measurement repeats the error, so averaging cannot reveal or remove it.
Random error varies
A random error differs unpredictably each time, scattering readings around their average: electrical noise, vibration, the exact pixel where an edge falls. Independent random errors partly cancel when you average, which is why taking more readings helps.
Integration grows systematic error
Odometry adds up small steps. A constant speed bias b adds b × Δt of position error each step, so after time t the error is b × t: it grows forever. Random step errors also accumulate, but more slowly (like √t). That is why dead-reckoning robots drift and need an absolute reference such as a camera, GPS or a landmark.
Different errors, different cures
Fight systematic error with calibration against a reference and with good design (move the thermometer away from the motor). Fight random error with averaging, filtering and better sensors. Fusion combines a sensor that drifts with one that is noisy but unbiased.
Common mix-ups
- If readings look steady, the measurement is good.
✓ Steady readings can share a large systematic error. Only a reference check reveals it. - Random errors add up just like systematic ones when integrated.
✓ Independent random errors partly cancel, so they grow like √t; a constant bias grows like t.
1.2 Mean, spread and the histogram
Ten readings of the same distance never match. Which single number should the robot believe, and how much should it trust it?
The mean: best single estimate
The mean x̄ = (x₁ + x₂ + … + xₙ) ÷ n. When errors are random and unbiased, it is the best single guess of the true value. It is sensitive to outliers: one glitch reading of 9999 drags it badly, which is why spikes are often removed first.
Standard deviation: typical distance
The sample standard deviation s = √(Σ(xᵢ − x̄)² ÷ (n − 1)) measures how far readings typically sit from their mean. Same units as the readings. For bell-shaped (normal) noise, about 68% of readings fall within ±s of the mean and about 95% within ±2s.
Why n − 1?
The deviations are measured from x̄, which was computed from the same readings, so they come out a little smaller than deviations from the true value would. Dividing by n − 1 instead of n corrects that on average. With 3 readings it matters a lot; with 300 it barely matters.
Histograms show the shape
A histogram counts readings in equal bins. A single tall, symmetric hump suggests random noise. Two humps suggest two different conditions mixed together; a long tail on one side suggests occasional glitches. Always look before you average.
Common mix-ups
- More readings make the histogram narrower.
✓ More readings fill in the histogram's shape; its width is set by the sensor's noise. It is the mean that becomes more certain. - Standard deviation and range (max − min) are the same.
✓ Range depends on the two most extreme readings and grows with n; standard deviation summarises them all.
1.3 The standard error: how sure is the average?
To make an average twice as trustworthy, do you need twice as many readings, or four times?
Two spreads, two jobs
σ (or its estimate s) describes one reading: use it to judge how far a single measurement might be off. SE = σ/√n describes the average of n readings: use it to judge how well you know the true value. Mixing them up is one of the most common errors in lab reports.
Error bars that mean something
An error bar must say what it shows: ±1 SE, ±2 SE or ±1 s. Roughly, the true value lies within ±2 SE of the mean about 95% of the time, if errors are random, independent and unbiased. State n alongside it so readers can convert.
What standard error cannot see
SE only measures random scatter. A miscalibrated sensor gives a beautifully small SE around the wrong value. Readings taken too quickly may not be independent (the same vibration affects several), and then the real uncertainty is larger than σ/√n.
Derivation: Why the mean wobbles by σ/√n
Each reading is xᵢ = μ + εᵢ, where the errors εᵢ are independent, have mean 0 and variance σ² (variance is the standard deviation squared).
The mean is x̄ = (x₁ + … + xₙ)/n = μ + (ε₁ + … + εₙ)/n.
For independent errors, variances add: Var(ε₁ + … + εₙ) = nσ².
Dividing a quantity by n divides its variance by n²: Var(x̄) = nσ²/n² = σ²/n.
Take the square root: the standard deviation of the mean, the standard error, is SE = σ/√n.
Rearranged for planning: to reach a target SE you need n = (σ/SE)², rounded up. Halving SE needs four times the readings.
Bias b adds to every reading, so x̄ = μ + b + (noise): the mean's centre stays shifted by b however large n is.
Common mix-ups
- Doubling the data halves the uncertainty.
✓ Uncertainty in a mean shrinks like 1/√n: doubling the data cuts it to about 71%. - A small standard error means the answer is right.
✓ It means the random scatter is well averaged. Bias is untouched.
Open the full lesson: The standard error: how sure is the average? →
1.4 Propagating uncertainty through a calculation
Voltage ± 2%, current ± 3%. Is the power ± 5%, ± 1%, or something else?
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.
Derivation: First-order propagation from the tangent line
Let q = f(x, y) with small independent errors δx, δy around the measured values.
Linearise with partial derivatives (the tangent plane): Δq ≈ (∂f/∂x)·Δx + (∂f/∂y)·Δy.
For independent errors the variances add: σ_q² ≈ (∂f/∂x)²·σ_x² + (∂f/∂y)²·σ_y². Cross terms vanish because E[ΔxΔy] = 0.
Sum q = x + y: both partials are 1, so σ_q = √(σ_x² + σ_y²). The same for x − y: (−1)² = 1, so uncertainties never cancel.
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)².
Quotient q = x/y gives the same relative rule. Power q = xⁿ gives σ_q/q = |n|·σ_x/x.
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.
Common mix-ups
- For a difference, the uncertainties subtract.
✓ Independent uncertainties always combine in quadrature, whether you add or subtract the values. - Adding percentages directly is the safe, correct rule.
✓ Direct addition is a worst-case bound. For independent errors, quadrature gives the standard uncertainty.
Open the full lesson: Propagating uncertainty through a calculation →
Worked examples
Random and systematic error: example 1
A robot's odometry overestimates speed by 0.5 cm/s. How far off is its position estimate after 2 minutes?
Solution
0.5 cm/s × 120 s = 60 cm, all in one direction. A camera with ±5 cm random noise would be far better for position at that point, even though each of its readings looks jumpier.
Mean, spread and the histogram: example 1
Readings: 10.2, 9.8, 10.4, 9.6, 10.0 cm. Find x̄ and s.
Solution
x̄ = 50.0 ÷ 5 = 10.0 cm. Deviations: 0.2, −0.2, 0.4, −0.4, 0. Squares add to 0.04 + 0.04 + 0.16 + 0.16 + 0 = 0.40. s = √(0.40 ÷ 4) = √0.10 ≈ 0.32 cm.
The standard error: how sure is the average?: example 1
A gyroscope's drift rate is measured 25 times: mean 0.84 °/s, s = 0.30 °/s. Report the result.
Solution
SE = 0.30 ÷ √25 = 0.06 °/s. Report 0.84 ± 0.06 °/s (±1 SE, n = 25), or about 0.84 ± 0.12 °/s for an approximate 95% interval. Note that this excludes any calibration bias in the reference.
Propagating uncertainty through a calculation: 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.
Solution
η = 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.
Propagating uncertainty through a calculation: example 2
A mass difference: 152.3 ± 0.4 g − 151.8 ± 0.4 g. What is the result and its relative uncertainty?
Solution
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.
Interactive figures
Interactive figure (online). Description: The diagram draws a histogram of readings from a sensor with adjustable noise σ and bias. With n = 64 and σ = 4, the bars form a hump centred near the true value plus bias, about 16 units wide in total; the readout lists the readings, the mean and the sample standard deviation, which comes out close to 4.
Interactive figure (online). Description: 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.
Laboratory
Everything runs in your browser. No kit, nothing mains-powered. Simulations are simplified educational models.
Simulation OS experiment
Simulation OS: Repeated distance measurements
Add a bias and some noise to the simulated sensor, take 4, 16 and 64 readings, and show that averaging shrinks the noise but never the bias.
Open Simulation OS: Repeated distance measurements →Playground lab
Playground: Sensor fusion
Compare the spread of single simulated readings with the spread of their averages over many repeats.
Open Playground: Sensor fusion →
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.
- A digital thermometer is mounted 2 cm from a voltage regulator that runs warm. Its error is mainly…
- random
- systematic
- quantisation
- A camera is mounted 2° tilted, so every measured height is 3% low. What is the best fix?
- Average more frames
- Measure the tilt against a reference and correct for it
- Use a faster camera
- Noise is bell-shaped with mean 50 and s = 2. About what share of readings lie between 46 and 54?
- About 50%
- About 68%
- About 95%
- All of them
- A histogram of a robot's distance readings has two separate humps. What should you suspect first?
- The noise is very large
- Two different conditions are mixed (for example, two surfaces or two targets)
- The mean is the best estimate
- Your mean has SE = 0.4 from 10 readings. How many readings for SE = 0.2?
- 20
- 40
- 100
- 1000 readings give a mean of 20.03 ± 0.01 °C (1 SE), but a reference thermometer reads 21.0 °C. What is the likely explanation?
- Bad luck: the SE was underestimated
- A systematic error of about 1 °C that SE cannot detect
- Too few readings
- A power estimate P = V·I has V ± 0.5% and I ± 4%. To halve the uncertainty in P, what should you improve?
- The voltmeter
- The current measurement
- Both equally
- Neither: the uncertainty can't be reduced
- Why is subtracting two nearly equal measured values risky?
- Subtraction is less accurate than addition
- The absolute uncertainties add in quadrature but the result is small, so the relative uncertainty becomes huge
- The uncertainties cancel, giving false confidence
- It isn't risky
Engineering applications
Calibration labs
A calibration certificate states a value and an uncertainty with a coverage factor. Without the uncertainty the value cannot be compared with a tolerance at all.
Small differences
Subtracting two nearly equal readings, such as temperatures either side of a heat exchanger, leaves a small difference with a large relative uncertainty. Designs avoid relying on such differences when they can.
Watch
Optional verified videos. Nothing loads from YouTube until you press play.
- The standard error, Clearly Explained!!! (StatQuest with Josh Starmer)
- Standard Deviation vs Standard Error, Clearly Explained!!! (StatQuest with Josh Starmer)
- Measures of Spread: Crash Course Statistics #4 (CrashCourse)
Chapter summary
- Random error scatters readings and averages down; systematic error shifts them all and needs calibration or redesign.
- Standard deviation describes single readings; standard error σ/√n describes the mean.
- A tiny standard error does not remove bias: precise is not the same as accurate.
- Uncertainty propagates through calculations; for products, relative uncertainties add in quadrature.
Glossary
- Random and systematic error
- Random errors scatter readings unpredictably above and below the true value; systematic errors shift every reading the same way.
- 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.
- Standard error of the mean
- The standard error of the mean estimates how much a sample mean would vary between repeated experiments: the sample standard deviation divided by the square root of the number of readings.
- 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.
- Calibration
- Calibration compares an instrument's readings with known references and builds a correction, often an offset and a gain, so that future readings are accurate.
Definitions from the Field Guide.
Project: A measurement with an honest error bar
Using a School simulation, measure one quantity (a distance, a time constant or a speed) many times. Report the mean, standard deviation and standard error, identify one systematic error the simulation includes or could include, and propagate uncertainty to one derived result.
Deliverables
- The simulated readings and how they were produced
- Mean, SD and SE with units
- One derived result with propagated uncertainty and a systematic-error note
Keep your work in your Engineering Journal; it stays private unless you choose to share it.
References
- John R. Taylor (1997). An Introduction to Error Analysis: The Study of Uncertainties in Physical Measurements, 2nd edition. University Science Books.
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.