Learning Rooms/□ Level 4 · Systems Engineer/Perception and signals
But what is a convolution?
3Blue1Brown · Length: see YouTube · captions on YouTube · nothing loads until you press play
By the end you can…
- Compute the output of a k-sample moving-average filter.
- Explain that a wider window reduces noise (about √k) but adds lag (about (k − 1)/2 samples).
- Choose a window for a stated noise and response requirement.
Watch it all: no segment has been checked by hand for this video yet.
1.Predict before you press play
A distance reading steps suddenly from 0 to 1. With a 9-sample moving average, how many samples until the output reaches 1?
Pick one before you press play. A wrong guess is fine: it is what makes the video stick.
2.See the idea first
Play with this diagram for a minute. It gives you something to hang the video on.
Loading the interactive…
Can't use the diagram? Read a description instead
The filter tuner plots 120 noisy samples of a step from 0 to 1 at sample 40. A moving average with k = 1 follows the noise exactly; with k = 5 noise drops by about √5 and the step takes about 5 samples to rise; with k = 25 the line is very smooth but takes about 23 samples to reach 90% of the step.
3.Watch, actively
One idea, many uses: moving averages, image blurs and probability all turn out to be the same sliding multiply-and-add.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
Watch for…
- → Watch the first part, where a moving average is drawn as a sliding window of weights. This week's filter and next week's image blur turn out to be the same operation.
Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.
Can't stream it? Read the idea instead
Convolution slides a set of weights along a signal and adds up the products at each position. A moving average, an image blur and adding random variables all turn out to be the same operation with different weights.
What the video covers (our own note, written when we verified it): One idea, many uses: moving averages, image blurs and probability all turn out to be the same sliding multiply-and-add.
Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.
Jot down one thing that surprised you and one question you still have.
4.Practise what you just saw
These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.
Practice 1 · a fresh version every time
A filter keeps the mean of the last k = 5 readings. The readings so far, oldest first, are: 35, 16, 15, 35, 38, 10. What does the filter output now?
Practice 2 · a fresh version every time
A filter keeps the mean of the last k = 5 readings. The readings so far, oldest first, are: 26, 28, 27, 23, 15, 12, 32. What does the filter output now?
Practice 3
Raw noise is σ = 6 mm. Roughly what noise remains after a 9-sample moving average (independent noise)?
Practice 4
A 21-sample moving average runs at 50 samples per second. Using a delay of (k − 1)/2 samples, how late is its output, in seconds?
6.Build something with it
Follow-up project
Write movingAverage(readings, k) in Python using a running sum (no re-adding the whole window). Test it on a step with noise and measure, in samples, the noise left and the 90% rise time for k = 3, 9 and 27. Compare with the diagram.
Where this video lives
- The moving average and the noise–lag trade-off · Level 3, week 23
In the course catalogue: AIP-310 Noise, sampling and filtering
The video is by 3Blue1Brown, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.