Mathematics
Noise and averaging
See it first
3D teardown
Inside a robot's camera
The teardown opens on its “Light and blur” mode, which shows this principle. Drag to turn it.
Try it
More averaging, less noise
- After 16 readings
- 0.5
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.