# moving average

A moving average is a sequence of arithmetic means taken over a fixed interval moved along consecutive data points from an infinite (or sufficiently large) set of data points. That is, given a sequence $a_{x},\ldots,a_{x+k}$ and an interval $n$, the average

 $\frac{a_{i-\frac{n}{2}}+\ldots+a_{i+\frac{n}{2}}}{n}$

is taken for each value $(x+n).

Plotting a moving average can help to smooth out an extremely jagged curve so as to allow one to see larger patterns. For example, take this plot of the number of (nondistinct) prime factors function (http://planetmath.org/NumberOfNondistinctPrimeFactorsFunction) $\Omega(n)$ for $20:

If instead we plot a moving average with an interval of 40, we get a smoother curve:

Though in all honesty, moving averages are not all that useful in number theory. They are much used, however, in statistics and fields using statistics, such as physics and economics. In economics, for example, a moving average over an interval of say, 3 months, helps investors worry less about the wild hectic fluctuations in a day of trading and focus on the overall direction of a given stock. In physics, to give another example, a yearly moving average of parts per million of carbon dioxide in the atmosphere of the Earth smooths out the yearly dips of summer to show that overall carbon dioxide is going up, contributing to significant global warming.

Title moving average MovingAverage 2013-03-22 16:45:03 2013-03-22 16:45:03 PrimeFan (13766) PrimeFan (13766) 9 PrimeFan (13766) Definition msc 62M10 msc 26D15 msc 11-00 msc 91B84