Sub topic 5
Measurement, Accuracy, Precision, and Uncertainty
What this chapter assumes
You should know how to write a physical quantity as a number times a unit, and you should be comfortable with basic algebra and scientific notation. Earlier chapters covered SI units and unit conversion. This chapter covers a different question: how much can you trust the number? Counting significant figures and propagating uncertainty through formulas come in later chapters. Here we build the ideas they depend on.
A measurement is an estimate
Every measured quantity has a true value that you never learn exactly. What you get is a best estimate and a statement of how far it could be from the truth. The standard form is:
quantity = (best estimate ± uncertainty) unit
For example, g = (9.83 ± 0.02) m/s². The uncertainty is not a mistake you made. It is a quantified range of doubt. A result reported without one cannot be compared with a theory, another experiment, or a safety limit.
Accuracy and precision
These two words mean different things in physics.
| Term | Question it answers | Affected mainly by |
|---|---|---|
| Accuracy | How close is the result to the true (or accepted) value? | Systematic errors |
| Precision | How close are repeated results to each other? | Random errors and instrument resolution |
A set of readings can be precise but not accurate (tightly clustered around the wrong value). It can also be accurate on average but not precise (scattered around the right value).
The script below compares two instruments that each weigh a reference mass of 100.0 g five times.
from statistics import mean, stdev
true_value = 100.0 # grams, accepted value of the reference mass
readings = {
"A": [100.3, 100.1, 100.2, 100.4, 100.0],
"B": [101.9, 102.0, 102.1, 102.0, 102.0],
}
for name, data in readings.items():
bias = mean(data) - true_value
spread = stdev(data)
print(f"{name}: bias {bias:+.2f} g, spread s = {spread:.2f} g")
# A: bias +0.20 g, spread s = 0.16 g
# B: bias +2.00 g, spread s = 0.07 gInstrument B is more precise (smaller spread) but far less accurate (bias of 2 g). Taking more readings from B will not fix this.
Kinds of error
Physicists use "error" to mean the difference between a measured value and the true value. It does not mean a blunder. Errors fall into two groups.
| Property | Random error | Systematic error |
|---|---|---|
| Behavior | Varies unpredictably from reading to reading | Shifts every reading the same way |
| Typical causes | Reaction time, electrical noise, air currents | Zero offset, miscalibration, a wrong assumption in the method |
| Reduced by | Averaging many readings | Calibration, a better method, a cross-check with a different instrument |
| Shows up in | The spread of repeated readings | Nothing in the spread |
The last row is the danger. Systematic errors are invisible in your own data. You find them by checking against a known standard, by measuring the same thing with an independent method, or by looking for a pattern, such as readings that are off by the same amount at every setting.
Blunders are a separate category: misreading a scale, writing down 9.38 instead of 9.83, or using the wrong unit. They should be corrected or discarded with a recorded reason. They do not belong in an uncertainty estimate.
Estimating uncertainty
A single reading: resolution
If you can read an instrument only once, the smallest scale division limits you. A common rule for an analog scale is to take the uncertainty as half of the smallest division. A ruler marked in millimetres gives about ±0.5 mm. For a digital display, a common choice is ±1 in the last displayed digit, or half of it if the manufacturer's specification says so. Always check the specification first, because it may state a larger value.
Repeated readings: mean, spread, and standard error
When you repeat a measurement n times and get values x₁ ... xₙ, use three quantities:
- The mean,
x̄ = (x₁ + ... + xₙ) / n, is the best estimate. - The sample standard deviation,
s = sqrt( Σ(xᵢ − x̄)² / (n − 1) ), describes how scattered individual readings are. It does not shrink as you take more readings. - The standard error of the mean,
s / sqrt(n), describes how well you know the mean. It does shrink asngrows.
from math import sqrt
from statistics import mean, stdev
readings = [9.83, 9.79, 9.88, 9.81, 9.85, 9.80] # g in m/s^2
n = len(readings)
m = mean(readings)
s = stdev(readings) # divides by n - 1
sem = s / sqrt(n)
print(f"mean = {m:.3f}, s = {s:.3f}, SEM = {sem:.3f}")
# mean = 9.827, s = 0.034, SEM = 0.014Combining independent sources
A result often has more than one source of uncertainty, such as a reading limit and random scatter. When the sources are independent, combine them in quadrature (square root of the sum of squares). Adding them directly overestimates the total, because independent sources rarely push the same way together.
from math import sqrt
reading_limit = 0.5 # mm, half of a 1 mm division
random_part = 0.3 # mm, standard error from repeated readings
total = sqrt(reading_limit**2 + random_part**2)
print(f"combined uncertainty = {total:.1f} mm") # 0.6 mmNotice that the larger term dominates. If one source is three times bigger than another, the smaller one barely changes the total, so improving it is wasted effort.
Absolute, relative, and percent uncertainty
The uncertainty δx written with the same unit as the value is the absolute uncertainty. Dividing by the value gives the relative uncertainty, which has no unit:
relative uncertainty = δx / |x|
Multiply by 100 for a percentage. For g = 9.827 ± 0.014 m/s², the relative uncertainty is 0.014 / 9.827 ≈ 0.0014, or 0.14 %.
Relative uncertainty lets you compare measurements of different size. A ±1 mm uncertainty is poor for a 5 mm part (20 %) and excellent for a 50 m cable (0.002 %). It also becomes the natural tool when you multiply or divide quantities, which a later chapter develops.
Reporting a result
Follow these conventions:
- State the uncertainty to one significant figure, or two if its leading digit is 1.
- Round the best estimate to the same decimal place as the uncertainty.
- Give the unit once, after both numbers, or on each if clearer.
- Say what the uncertainty represents, such as one standard error.
So 9.827 ± 0.014 m/s² is acceptable, and 9.8267 ± 0.0138 m/s² claims more than the data support. Reporting 9.8 ± 0.014 is inconsistent because the digits do not line up. These rules are the bridge to significant figures, which the next chapters develop.
Comparing a result with a reference
To test whether your result agrees with an accepted value, compare the difference to the uncertainty. Taking the accepted value as 9.81 m/s²:
- The discrepancy is 9.827 − 9.81 = 0.017 m/s².
- That is about 0.017 / 0.014 ≈ 1.2 standard errors.
A discrepancy within about two standard errors is usually considered consistent with the reference. A discrepancy of five or more points to a problem, most often a systematic error you have not found. With only six readings, a more careful treatment uses a wider factor (about 2.6 for 95 % confidence with five degrees of freedom). Agreement is evidence, not proof. Large uncertainties can make almost any value look consistent, which is why a result with a tiny uncertainty is more informative.
Common errors to avoid
- Calling a result "accurate" because the readings are close together. That describes precision.
- Averaging many readings and expecting a systematic error to disappear.
- Quoting an uncertainty smaller than the instrument's resolution. Averaging can reduce random scatter, but it cannot beat a miscalibrated or coarse instrument.
- Reporting uncertainty with too many digits. An uncertainty of 0.01384 is not known that precisely.
- Using
ninstead ofn − 1in the sample standard deviation. In Python,statistics.stdevusesn − 1, whilestatistics.pstdevusesn. - Treating the percent difference from the accepted value as the uncertainty. They are different things.
Exercise
Four measurements of a block's length give 4.52, 4.48, 4.55, and 4.50 cm. Find the mean, the sample standard deviation, and the standard error of the mean, then report the length with its uncertainty.
Show answer
The mean is 4.5125 cm. The sample standard deviation is s = sqrt(0.002675 / 3) ≈ 0.030 cm. The standard error is 0.0299 / sqrt(4) ≈ 0.015 cm. Reported result: (4.512 ± 0.015) cm, with the uncertainty meaning one standard error of the mean.
Exercise
A voltmeter with its input shorted (true value 0 V) always shows 0.30 V, with almost no variation. Is this a random or a systematic error? Will averaging more readings help, and what is the fix?
Show answer
It is a systematic error, specifically a zero offset. Averaging will not help, because every reading shifts by the same amount. The readings are precise but inaccurate. Fix it by recording the zero reading and subtracting 0.30 V from each measurement, or by adjusting the instrument's zero.