This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
 BUILT-IN MATHEMATICA SYMBOL Tutorials »| See Also »| More About »

# MovingAverage

 MovingAveragegives the moving average of list, computed by averaging runs of r elements. MovingAveragegives the moving average of list, computed with weights .
• MovingAverage gives a list of the means of elements in list taken in blocks of length r. »
Compute a pairwise simple moving average:
Compute weighted moving averages:
Compute a pairwise simple moving average:
 Out[1]=

Compute weighted moving averages:
 Out[1]=
 Scope   (5)
Lists of integers yield rational numbers:
Lists of approximate numbers yield approximate numbers:
Moving averages of matrices are matrices:
Obtain results for lists of any precision:
Obtain results for weights of any precision:
Filter large datasets:
Compute results for a SparseArray:
 Applications   (2)
Smooth noisy data:
Compute the 100-day moving average of a financial time series:
A moving average is a sequence of means:
A two-term MovingAverage is equivalent to a two-term MovingMedian:
An n-term moving average is equivalent to a moving average with n equal weights:
An n-term moving average is equivalent to a ListCorrelate:
An n-term weighted moving average is equivalent to a ListCorrelate:
Multiplying weights by a constant gives the same moving average:
New in 6