Skip to content
Tactiverge

School/△ Builder/Week 21

Range, resolution, accuracy, precision

A thermometer shows 21.37 °C. Does all that detail mean it is right?

About 30 min · 3 goals · Checked by automated tests

1.Why should I care?

Choosing a sensor means reading a datasheet full of these four words. Mix them up and you buy a sensor that shows lots of decimal places but is two degrees wrong, or one that is accurate on average but too jumpy to control a heater.

  • ◇ Define a sensor's range, resolution, accuracy and precision with an example of each.
  • ◇ Tell an accuracy problem (a consistent offset) from a precision problem (scatter).
  • ◇ Calculate how many distinct values a sensor can report from its range and resolution.

2.Predict

Sensor A reads 20.0, 20.1, 19.9 °C when the true value is 22.0 °C. Sensor B reads 21.0, 23.1, 21.9 °C. Which is more precise?

Guess first. Being wrong here is how the surprise works.

3.Discover

Make one sensor much noisier than the other and watch how widely its readings scatter around the true position. That scatter is a precision problem. Then ask: could a sensor with tiny scatter still be wrong every time?

Explorer 03 — Sensor fusion

Two imperfect sensors, one better estimate

A camera gives absolute position but loses sight of the target; odometry never drops out but drifts. Combining them gives an estimate better than either alone.

POSITION (cm)NO VIEWNO VIEWNO VIEW-40-200204002468101214161820TIME (s)
  • True position
  • Camera reading
  • Odometry dead-reckoning
  • Fused (Kalman)
  • ±2σ uncertainty
  • Camera dropout

Camera · absolute, drops out

3.0 cm
25 %

Long-run share of time with no view, in bursts of about 1.2 s (occlusions).

Odometry · relative, drifts

4.0 cm/s
1.5 cm/s

A constant error in measured speed: its position estimate drifts by bias × time.

Fusion method

The Kalman filter weights each sensor by its stated noise, tracks its own uncertainty, and estimates the odometry bias while the camera can see.

Show

Root-mean-square error vs truth · lower is better

  • Camera aloneholds last reading in dropouts7.9 cm
  • Odometry alonedead reckoning from start15.1 cm
  • Kalman filterfused estimate0.9 cm
  • Fused, in dropoutsonly samples with no camera1.1 cm

Camera coverage 60 %. Camera error only over frames it saw: 2.9 cm (≈ its σ).

State

Seed 7. The camera saw the target 60 % of the time in 4 dropouts. Error (RMSE): camera alone 7.9 cm holding its last reading, odometry alone 15.1 cm, kalman filter 0.9 cm (1.1 cm during dropouts). Fusion is 88 % better than the better single sensor. Estimated odometry bias 1.53 cm/s (true 1.50).

Seed 7. The camera saw the target 60 % of the time in 4 dropouts. Error (RMSE): camera alone 7.9 cm holding its last reading, odometry alone 15.1 cm, kalman filter 0.9 cm (1.1 cm during dropouts). Fusion is 88 % better than the better single sensor. Estimated odometry bias 1.53 cm/s (true 1.50).

How to read this

Time runs left to right over 20 seconds. The thin solid line is where the object really is. Crosses are camera readings; hatched columns are dropouts where the camera sees nothing. The dashed line is odometry integrated from the start: smooth, but it wanders away as its bias accumulates. The thick line is the fused estimate, with a shaded ±2σ band showing how uncertain the Kalman filter believes it is. The band widens during each dropout and snaps back when the camera returns.

This mirrors Tactiverge's research question: when vision drops out, can local sensing such as force and joint feedback carry the estimate until it returns?

Assumptions & limitations
  • One dimension, a smooth known trajectory and a single object: real tracking is 3-D, with orientation, multiple objects and data association.
  • Noise is white Gaussian with the σ you set, and the Kalman filter is told the true σ values. Real filters must be tuned against noise they can only estimate.
  • Odometry error is a constant bias plus white noise; real drift also comes from slip, scale-factor error and temperature.
  • Dropouts are random bursts, independent of where the object is. Real occlusions often happen exactly when the task gets hard, for example when a gripper covers the object.
  • The camera has no latency and runs at the same 20 Hz as odometry; real cameras are slower and delayed, which the filter would have to compensate for.
  • Figures are from one seeded run of 401 samples; change the seed to see how much the numbers vary by chance.
Can't use the interactive? Read a description instead

In the fusion lab two simulated sensors measure the same position with different amounts of random noise. A noisier sensor's readings scatter more widely around the true value: lower precision. The lesson adds that a sensor can have very little scatter and still be wrong by the same amount every time: an accuracy problem.

4.Checkpoint: guided practice

Check what you just discovered before going on. Hints appear after a wrong answer.

Practice 1

Every reading from a scale is exactly 200 g too heavy. What kind of problem is that?

5.Understand

Range and resolution

Range is the span a sensor can measure, such as −40 to 125 °C. Outside it, readings are wrong or clipped. Resolution is the smallest change it can report, such as 0.5 °C. A 0–100 °C sensor with 0.5 °C resolution can report 100 ÷ 0.5 + 1 = 201 different values.

Accuracy and precision

Accuracy is how close readings are to the true value. Precision is how close repeated readings are to each other. Picture darts: a tight cluster off-centre is precise but inaccurate; a loose spread around the bullseye is accurate on average but imprecise. Calibration fixes consistent offsets; averaging reduces scatter.

Decimal places are not truth

A display showing 21.37 °C has fine resolution, but if the datasheet says ±2 °C accuracy, the true value could be anywhere from about 19.4 to 23.4 °C. Always report a measurement with an honest uncertainty, and never trust digits beyond what the datasheet promises.

Explain it another way

Range: how big a ruler. Resolution: how fine the marks. Accuracy: whether the ruler starts at zero. Precision: whether your hand shakes.

Worked example 1

A distance sensor measures 2 cm to 400 cm with 1 cm resolution and ±3 cm accuracy. It reports 150 cm. What can you honestly say?

The object is between about 147 and 153 cm away. The sensor can report 399 different whole-centimetre values, but accuracy, not resolution, limits what you know.

Common mix-ups

  • More decimal places means a more accurate sensor.
    ✓ Decimal places show resolution. Accuracy is a separate figure on the datasheet.
  • Accuracy and precision are the same thing.
    ✓ Precision is agreement between readings; accuracy is closeness to the truth.

6.Practice on your own

Practice, not a test. Wrong answers get a hint and another try.

Practice 2

A sensor covers 0 to 50 °C with a resolution of 0.25 °C. How many distinct values can it report?

Practice 3

A sensor with ±1.5 °C accuracy reads 18.0 °C. What is the lowest temperature the true value could be, in °C?

°C

Practice 4

Which problem does averaging many readings reduce?

Practice 5

You need to measure a freezer at −18 °C. Which sensor range should you rule out?

7.Apply it

Find (or imagine) three readings from a kitchen or bathroom thermometer and a phone weather app for the same room. Decide which is more precise and which you think is more accurate, and what experiment would tell you for sure.

8.Reflect

Concepts: How sensors measure · Measurement error and uncertainty