Try It: Moving Average Filter Explorer
Try It: Moving Average Filter Explorer
animation
sensors
Try Increase Moving average window from 5 while keeping Sensor noise level at 2.0 C and True temperature at 22.0 C.
Observe With the opening 5-sample window, the green filtered trace is compared with the red raw trace, and response lag reads about 2 samples or 4.0 s.
Explain Moving average window determines how many recent readings are averaged; the first few points use only the samples available so far.
Technical boundaries. The chart assumes 30 repeatable synthetic readings from a fixed seed of 42 around an unchanging temperature. Noise reduction compares full-trace ranges, and lag is the rounded-down half-window estimate at a fixed 0.5 Hz rate.
Try It: Moving Average Filter Explorer
Compare the smoothing window with the speed of the real signal and observe the delay it adds.