# Moving average on plot?

**URL:** <https://forum.intervals.icu/t/moving-average-on-plot/673>\
**Category:** Feature Requests\
**Created:** [14 April 2020 20:01 UTC](https://forum.intervals.icu/t/moving-average-on-plot/673 "2020-04-14T20:01:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Pettyjohn](https://forum.intervals.icu/user_avatar/forum.intervals.icu/todd_pettyjohn/32/987_2.png) [@Todd\_Pettyjohn](https://forum.intervals.icu/u/Todd_Pettyjohn)\
**Post date:** [14 April 2020 20:01 UTC](https://forum.intervals.icu/t/moving-average-on-plot/673/1 "2020-04-14T20:01:21Z")

</div>

> **[Analyzing interval workouts using power data](http://www.trainingandracingwithapowermeter.com/2010/05/analyzing-interval-workouts-using-power.html?m=1)**
>
> Training and Racing with a Power Meter is THE book for Cyclists looking to take their training to the next level. Hunter Allen and Dr Andrew Coggan

Is there a way to apply a moving average to a power vs time plot? Thought the 30sec average mentioned in the link could be an interesting way to look at unsteady hard efforts. Of course watching the W’ bal tank drain is another way to see this.

---

<div class="post-metadata">

**Author:** ![david](https://forum.intervals.icu/user_avatar/forum.intervals.icu/david/32/30189_2.png) [@david](https://forum.intervals.icu/u/david)\
**Post date:** [15 April 2020 04:43 UTC](https://forum.intervals.icu/t/moving-average-on-plot/673/2 "2020-04-15T04:43:57Z")

</div>

Not yet but that has been on the todo list for some time already. It will get done eventually!

---

<div class="post-metadata">

**Author:** ![david](https://forum.intervals.icu/user_avatar/forum.intervals.icu/david/32/30189_2.png) [@david](https://forum.intervals.icu/u/david)\
**Post date:** [1 June 2020 19:57 UTC](https://forum.intervals.icu/t/moving-average-on-plot/673/3 "2020-06-01T19:57:42Z")

</div>

The ride timeline chart now has a 30s power trace.

> [@Delta TSS(30s) for showing where it hurted the most slight\_smile](https://forum.intervals.icu/t/delta-tss-30s-for-showing-where-it-hurted-the-most/898/7):
>
> It is live. This is a 30s moving average of power on a log scale coloured according to your power zones. Shows up matches burned quite nicely.

---

<div class="post-metadata">

**Author:** ![Todd\_Pettyjohn](https://forum.intervals.icu/user_avatar/forum.intervals.icu/todd_pettyjohn/32/987_2.png) [@Todd\_Pettyjohn](https://forum.intervals.icu/u/Todd_Pettyjohn)\
**Post date:** [1 June 2020 22:56 UTC](https://forum.intervals.icu/t/moving-average-on-plot/673/4 "2020-06-01T22:56:03Z")

</div>

Very cool. Silly question…is the 30sec window for the following 30sec, not the preceding 30sec?  
See the snapshot below of 15s-on / 15s-off repeats. I notice the peak 30sec comes at the beginning of my maximum 15s effort which is not what I would expect. (apologizes if I am overlooking something obvious!)

Snapshot from here:

> **[Intervals.icu](https://intervals.icu/activities/3528493583?zoom=6282,6678)**
>
> Intervals.icu integrates with Strava, Zwift, Garmin Connect, Suunto, Wahoo and Dropbox, analyzes your rides, runs, swims and other activities and helps plan your training

 ![image](https://forum.intervals.icu/uploads/default/original/2X/c/c5e8a29af9080f696720ca02fb821629647071c1.png)

---

<div class="post-metadata">

**Author:** ![david](https://forum.intervals.icu/user_avatar/forum.intervals.icu/david/32/30189_2.png) [@david](https://forum.intervals.icu/u/david)\
**Post date:** [2 June 2020 04:33 UTC](https://forum.intervals.icu/t/moving-average-on-plot/673/5 "2020-06-02T04:33:30Z")

</div>

It’s a centred moving average so for time t it is the average of 15s before and 14s after. So if you do a 30s interval the peak of the average will be in the middle of the interval. This looks a bit weird for a 15s interval as the peak (correctly) is at the start and it flattens them out as you do the reps.
