# How fixed intervals for a moving average: "MovingAverage"?

**URL:** <https://community.wolfram.com/t/how-fixed-intervals-for-a-moving-average-movingaverage/6912>\
**Category:** Questions\
**Tags:** economics, engineering\
**Created:** [October 12, 2015, 2:12am UTC](https://community.wolfram.com/t/how-fixed-intervals-for-a-moving-average-movingaverage/6912 "2015-10-12T02:12:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![olmos](https://avatars.discourse-cdn.com/v4/letter/o/47e85d/32.png) [@olmos](https://community.wolfram.com/u/olmos)\
**Post date:** [October 12, 2015, 2:12am UTC](https://community.wolfram.com/t/how-fixed-intervals-for-a-moving-average-movingaverage/6912/1 "2015-10-12T02:12:56Z")

</div>

I am working with a data set and I need obtain the moving average every few data. How I can fixed intervals in the function “MovingAverage[list, r]” for example every 6 data for obtain the average?

Help plz

---

<div class="post-metadata">

**Author:** ![bsimpson141421356](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@bsimpson141421356](https://community.wolfram.com/u/bsimpson141421356)\
**Post date:** [October 12, 2015, 8:08pm UTC](https://community.wolfram.com/t/how-fixed-intervals-for-a-moving-average-movingaverage/6912/2 "2015-10-12T20:08:03Z")

</div>

The documentation seems to state that MovingAverage[list, 6] would do this.

This example seems to show that this gives the correct result when r=3

```
In[1]:= MovingAverage[{1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4}, 3]

Out[1]= {1, 4/3, 5/3, 2, 7/3, 8/3, 3, 10/3, 11/3, 4}

```
