Running averages is a computational strategy for estimating a possibly weighted average of a sequence of data.
Let our data sequence be then we define a sequence of running average values, using the equations
where . If is constant, then this is a moving average, in which:
So, we are essentially tracking of all the values that we have seen. But the ones that are further away have less influence; you can see that inputs at closer to the end of the sequence have more effect on than early inputs. If, instead, we set , then we get the actual average.