Incremental average (estimate update)
Statement:
Alterative form:
The second form describes updating our estimate of the average by multiplying an error term, NewData - OldEstimate, by a weighting factor, StepSize. StepSize is when all data points are weighted equally.
The average, is known for a sequence of n-1 values, . If the next value, is included in the sequence, the new average, , can be computed by adding the new component of the average, , to the old average transfered from an denominator to an denominator, ().
The () component is easy to understand from an example: the difference between 1/4 and 1/5 is 1/(4*5). If we want to find the total divided by 5, and already have the total divided by 4, we can obtain the former by subtracting the known difference, 1/(4*5), which is the average divided by 4, divided by 5 again.