moving average

The average of only the last k values in a stream, updated as each new value arrives.

In more detail

It smooths out noise while following trends. A ring buffer holds the window, and the average divides the window's sum by the number of values currently in it, which is fewer than k at the start.

Related terms

Taught in

References