# Statistics/Summary/Averages/Moving Average

< Statistics‎ | Summary‎ | Averages
A moving average is used when you want to get a general picture of the trends contained in a data set. The data set of concern is typically a so-called "time series", i.e a set of observations ordered in time. Given such a data set X, with individual data points ${\displaystyle x_{i}}$, a 2n+1 point moving average is defined as ${\displaystyle {\bar {x_{i}}}={\frac {1}{2n+1}}\sum _{k=i-n}^{i+n}x_{k}}$, and is thus given by taking the average of the 2n points around ${\displaystyle x_{i}}$. Doing this on all data points in the set (except the points too close to the edges) generates a new time series that is somewhat smoothed, revealing only the general tendencies of the first time series.