Skip to main content
Torqheart
← Foundations

Mathematics

Noise and averaging

Every sensor is noisy. Averaging N readings shrinks the noise by about √N, at the price of being slower.

See it first

3D teardown

Inside a robot's camera

Open full screen
FreeParts, Light and blur🔒 In an upcoming courseRolling vs global shutterDrag to turn, use the buttons to take it apart. Numbers come from published research; our own estimates are marked on the page. A model for learning, not a product spec.

The teardown opens on its “Light and blur” mode, which shows this principle. Drag to turn it.

Try it

More averaging, less noise

00.511.52204060Readings averaged N
σ / √N
After 16 readings
0.5
Big gains first, then less and less: it falls as 1/√N.

One step at a time

Step by step

Noise and averaging

Step 1 of 5

Read several times

The truth is 10.0, but you get 10.3, 9.8, 10.1, 9.7 …

In words

A reading = the true value + a random part. Random ups and downs cancel when averaged, and the error shrinks as 1/√N: 4 readings are twice as good, 100 readings ten times.

A camera is the same: a longer exposure gathers more light and a cleaner image, but if the robot moves meanwhile the image smears. Same trade: clean data or fresh data.

The formula

σ_avg = σ / √N

Where you meet this in a robot

In the camera teardown, change the exposure and watch the image clean up but smear with motion. Encoders and IMUs are filtered on the same principle.