Find the Iterative Arithmetic Mean

Imagine that you need to find the arithmetic mean of many thousands or even millions of data values, let’s call that number of values N.  Also imagine that these values are arriving as a stream and not as a completed list.  The first way one could do it is to store all N data values in a table and do a one-time calculation of all the values using the formula …(read article)