---
title: Accuracy, precision and uncertainty
heading: How much to trust a reading
eyebrow: C11 · Lesson 1 · Accuracy, precision and uncertainty
xp: 40
---

::: hook
A meter reads 12.34 V. Is the voltage really 12.34 V? Probably not exactly: the meter has a calibration error, its last digit flickers with noise, and its display can't show anything finer than 10 mV. Every measurement is a number with an uncertainty, and a reading without one says less than it seems. Engineers separate the errors that repeat the same way every time (**bias**, which sets accuracy) from the ones that scatter (**noise**, which sets precision), estimate each, and report the result as a value plus or minus a stated uncertainty.
:::

::: play
- Each draw is one reading of a true 5.000 V by a meter with a bias b and random noise of standard deviation s. The histogram piles up the readings.
- Raise the noise: the pile spreads, but its center stays put. Add bias: the whole pile shifts, and no amount of averaging moves it back.
- Increase the number of readings: the average (readout) settles, with a standard error of s/√N. Averaging fixes noise, never bias.
:::
:::

```sim plot
view: random
x: v = 4..6 V
slider: n = 4..10000 = 100 log
slider: b = -0.3..0.3 step 0.01 = 0.1 V
slider: s = 0.01..0.3 step 0.01 = 0.1 V
sample: 5 + b + s*randn(1) | mean: M | sd: S
trials: n
bins: 50
readout: average reading = M V
readout: standard error of the average = S/sqrt(n) V
readout: error of the average = M - 5 V
```

::: predict
## A meter specified as ±(0.5% of reading + 2 counts) reads 12.34 V on its 20.00 V range. What is the uncertainty?

- [ ] ±0.02 V
- [ ] ±0.06 V
- [x] ±0.08 V
- [ ] ±0.5 V

::: reveal
±0.08 V: 0.5% of 12.34 V is 0.062 V, and 2 counts of the last digit (10 mV each on this range) add 0.02 V. Report it as 12.34 ± 0.08 V, so the true value is between 12.26 and 12.42 V.
:::
:::

::: nameit
## Kinds of error

| Term | Meaning |
|---|---|
| **accuracy** | how close readings are to the true value; limited by bias |
| **precision** | how close repeated readings are to each other; limited by noise |
| **resolution** | the smallest change the instrument can show (one count) |
| **bias (systematic error)** | an offset that repeats every time: calibration, loading |
| **random error** | scatter that differs each time: noise, interference |

## Instrument specifications

Meters are specified as ±(% of reading + counts), where a count is one step of the last digit on the range in use. A "3½-digit" meter shows up to 1999 counts; a "6½-digit" one up to 1,999,999. Resolution is not accuracy: a meter can show six digits and be wrong in the third.

## Random error and averaging

N readings with standard deviation σ have a mean whose standard deviation, the **standard error**, is

$$\sigma_{\bar x} = \frac{\sigma}{\sqrt N}$$

So quadrupling the readings halves the random error, and reaching an error e needs $N = (\sigma/e)^2$ readings. Bias is untouched by averaging; it's removed by calibration against a better reference.

## Reporting

Give the value with its uncertainty, rounded to match: 12.34 ± 0.08 V, not 12.3417 ± 0.08 V. Relative error is the error divided by the value, often in percent.
:::

::: example
## A 3½-digit meter on its 2 V range reads 1.234 V. Its spec is ±(0.8% + 3 counts). What is the uncertainty?

::: solution
1. **Size of one count.** On the 2 V range one count is 1 mV.
2. **Percentage part.**
   $$0.8\% \times 1.234\ \text{V} = 9.9\ \text{mV}$$
3. **Count part.**
   $$3 \times 1\ \text{mV} = 3\ \text{mV}$$
4. **Add them.**
   $$9.9\ \text{mV} + 3\ \text{mV} = 12.9\ \text{mV}$$

**Answer:** the uncertainty is ±12.9 mV, so the reading is 1.234 ± 0.013 V.
:::
:::

::: example
## Readings scatter with σ = 0.2 V. How many must be averaged to bring the random error down to 0.05 V?

::: solution
1. **Readings needed.**
   $$\begin{aligned} N &= \left(\frac{0.2}{0.05}\right)^2 \\ &= 16 \end{aligned}$$
2. **Check ten readings.** Ten would not quite be enough:
   $$\frac{0.2\ \text{V}}{\sqrt{10}} = 0.063\ \text{V}$$

**Answer:** 16 readings must be averaged.
:::
:::

::: example
## A meter's specification allows ±0.05 V, treated as a rectangular distribution. Ten readings scatter with s = 0.03 V. What are the combined standard uncertainty and the expanded uncertainty (k = 2)?

::: solution
1. **Type B, from the specification.** A rectangular half-width is divided by $\sqrt3$:
   $$\begin{aligned} u_B &= \frac{0.05\ \text{V}}{\sqrt3} \\ &= 0.029\ \text{V} \end{aligned}$$
2. **Type A, from the scatter.**
   $$\begin{aligned} u_A &= \frac{0.03\ \text{V}}{\sqrt{10}} \\ &= 0.0095\ \text{V} \end{aligned}$$
3. **Combine in quadrature.**
   $$\begin{aligned} u_c &= \sqrt{u_B^2 + u_A^2} \\ &= 0.030\ \text{V} \end{aligned}$$
4. **Expand with k = 2.**
   $$\begin{aligned} U &= 2u_c \\ &= 0.061\ \text{V} \end{aligned}$$
5. **What dominates.** The specification dominates, so more readings would hardly help; a better meter would.

**Answer:** the combined standard uncertainty is 0.030 V, and the expanded uncertainty is 0.061 V (k = 2).
:::
:::

::: check
given: r = 1.5 | 4.987 | 12.34; p = 0.05 | 0.5 | 1; k = 1 | 2 | 5; q = 0.001 | 0.01
answer: p/100*r + k*q
unit: V
tolerance: 0.5%

## A meter specified as ±({p}% of reading + {k} counts) reads {r} V on a range where one count is {q} V. What is the uncertainty?

::: right
Right. {p}% of {r} plus {k} counts: ±{answer} V.
:::

::: misses
- [p/100*r] Add the counts: {k} × {q} V.
- [p*r + k*q] The percentage needs dividing by 100.
- [any] Not yet. % of reading plus counts × count size.
:::
:::

::: check
given: s = 0.05 | 0.2 | 1; N = 4 | 25 | 100
answer: s/sqrt(N)
unit: V
tolerance: 0.5%

## Readings scatter with a standard deviation of {s} V. What is the standard error of the average of {N} readings?

::: right
Right. $\sigma/\sqrt N$ = {answer} V.
:::

::: misses
- [s/N] The error falls as $1/\sqrt N$, not 1/N.
- [any] Not yet. $\sigma/\sqrt N$.
:::
:::

::: check
given: s = 0.1 | 0.5 | 2; e = 0.01 | 0.05
answer: (s/e)^2
tolerance: 0.5%

## Readings have σ = {s} mV. How many must be averaged for a standard error of {e} mV?

::: right
Right. $N = (\sigma/e)^2$ = {answer}.
:::

::: misses
- [s/e] The square: the error falls only as $1/\sqrt N$.
- [any] Not yet. Solve $\sigma/\sqrt N = e$.
:::
:::

::: check
given: d = 3 | 4 | 5 | 6
answer: 2*10^d - 1
tolerance: 0

## How many counts can a {d}½-digit display show at most?

::: right
Right. The half digit is a leading 1: {answer}.
:::

::: misses
- [10^d - 1] The extra "½" digit can be 1, doubling the count.
- [any] Not yet. A leading 1 followed by {d} nines.
:::
:::

::: check
given: m = 4.95 | 10.2 | 99.7; t = 5 | 10 | 100
answer: 100*abs(m - t)/t
unit: %
tolerance: 0.5%

## A reference of exactly {t} V reads as {m} V. What is the relative error?

::: right
Right. |measured − true|/true = {answer}%.
:::

::: misses
- [any] Not yet. Error over the true value.
:::
:::

::: check
kind: choice

## A meter's readings of a stable source are always within 1 mV of each other, but all are 50 mV above the true value. How would you describe it?

- [ ] Accurate but imprecise
- [x] Precise but inaccurate
- [ ] Both accurate and precise
- [ ] Neither

::: misses
- [1] The tight cluster means precise; the offset means inaccurate.
- [3] The 50 mV bias makes it inaccurate.
- [4] The readings agree closely: that's precision.
:::
:::

::: check
kind: parts
given: R = 1.234 | 12.34 | 4.567; p = 0.05 | 0.5; n = 2 | 5; r = 0.001 | 0.01

## A meter reads {R} V with resolution {r} V. Its spec is ±({p}% of reading + {n} counts).

::: part
answer: p/100*R + n*r
unit: V
tolerance: 0.5%

### What is the uncertainty?

::: misses
- [p/100*R] Add the counts: {n} × {r} V.
- [any] Percent of reading plus counts × resolution.
:::
:::

::: part
answer: (p/100*R + n*r)/R*100
unit: %
tolerance: 0.5%

### What is that as a percentage of the reading?

::: misses
- [any] Divide by the reading.
:::
:::
:::

::: check
kind: parts
given: s = 0.05 | 0.2 | 1; t = 0.01 | 0.02

## Readings scatter with s = {s} and the random error of their mean must be at most {t}.

::: part
answer: ceil((s/t)^2 - 0.000001)
tolerance: 0

### How many readings must be averaged?

::: misses
- [ceil(s/t)] The error falls as $1/\sqrt N$, so N grows as the square.
- [any] $N \ge (s/t)^2$.
:::
:::

::: part
answer: s/sqrt(ceil((s/t)^2 - 0.000001))
tolerance: 0.5%

### What standard error does that give?

::: misses
- [any] $s/\sqrt N$.
:::
:::
:::

::: explain
## Why does averaging many readings reduce random error but not bias?

::: model
Random errors push each reading up or down by different, unrelated amounts, so in a sum they partly cancel: the spread of a sum of N readings grows only as $\sqrt N$, and dividing by N to get the average leaves a spread of $\sigma/\sqrt N$. A bias pushes every reading the same way by the same amount, so it survives averaging intact: the average of a thousand readings that are all 50 mV high is still 50 mV high. Removing a bias needs information from outside the measurement, such as a comparison with a calibrated reference.
:::
:::

::: practice

::: check
given: r = 3.3 | 15; p = 0.1 | 0.25; k = 2; q = 0.001 | 0.01
answer: p/100*r + k*q
unit: V
tolerance: 0.5%

## Uncertainty of {r} V at ±({p}% + {k} counts), count = {q} V?

::: misses
- [any] % of reading + counts.
:::
:::

::: check
given: s = 0.3 | 3; N = 9 | 36
answer: s/sqrt(N)
unit: mV
tolerance: 0.5%

## Standard error of {N} readings with σ = {s} mV?

::: misses
- [any] $\sigma/\sqrt N$.
:::
:::

::: check
given: s = 1 | 4; e = 0.25 | 0.5
answer: (s/e)^2
tolerance: 0.5%

## Readings needed for error {e} with σ = {s}?

::: misses
- [any] $(\sigma/e)^2$.
:::
:::
:::
