This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Moving Average

Former Member
Former Member
Is there a way to track or set up a goal for a moving average? For example, say you want to average 30 miles a week every week for a year. Rather than setting up one annual goal which can be too big to have much meaning on a day-to-day or week-to-week basis, or setting up a new goal each week and locking it into a specific 7-day period, a 7-day moving average would accomplish this.
  • By "average 30 miles a week every week for a year,"



    If it's the latter, and you're evaluating the average weekly mileage, then each w[SUB]j[/SUB] must correspond to a specific seven-day period; the measurement period of "a year" ? or, more accurately, (7*52)=364 days ? is exhaustively partitioned into fixed weeks from the very start, with no overlap between any two weeks. The final sentence in your post suggests that's not what you want.

    If it's the former, then the sliding-window measurement period (shifting every day) is only seven-day wide, with "a year" informing the stop-condition for all further measurement and evaluation; and, if you fail to achieve 30 miles within any consecutive seven-day period, then you have failed the goal (for the year).

    Or do you mean you want a sliding-window measurement period (shifting every day) that is ?a year? wide, partitioned into weeks counting backwards from today, and taking the average weekly mileage over the past 52 consecutive weekly periods? I think that's rather too complex to reasonably expect Garmin Connect to allow.
  • Is there a way to track or set up a goal for a moving average? For example, say you want to average 30 miles a week every week for a year. Rather than setting up one annual goal which can be too big to have much meaning on a day-to-day or week-to-week basis, or setting up a new goal each week and locking it into a specific 7-day period, a 7-day moving average would accomplish this.


    Can I confirm you mean based on the previous 6 days information, show an indication of how many miles I need to run today in order to achieve my goal of running 30 miles in the period including the previous 6 days and today? Sounds like a great idea, simple too.
  • Former Member
    0 Former Member over 8 years ago
    Can I confirm you mean based on the previous 6 days information, show an indication of how many miles I need to run today in order to achieve my goal of running 30 miles in the period including the previous 6 days and today? Sounds like a great idea, simple too.


    Correct! I want to average 30 miles every 7-day period. My note about "for a year" is superfluous.
  • I want to average 30 miles every 7-day period.


    That makes no sense, if you're using a sliding window of the most recent seven days. Where does the "average" part come in at all?

    It appears to me that you want to maintain a minimum (not average) total mileage of 30 miles over any seven consecutive days, and something ("a goal") to let you know how far from achieving the minimum target.
  • That makes no sense


    I seem to have made sense of it somehow ?\_(ツ)_/? Never give up dill, I have faith in you!
  • Well, scott, would you care to explain where the averaging comes into play in your interpretation then?

    It's not as if the O.P. said he wanted to achieve a daily average of 30 miles over any seven consecutive days.
  • Tell me what you think they mean and maybe I can give you a few pointers. I'm not sure I'd be helping you learn without seeing you've put in a little effort. You can do it!
  • The equations I wrote and questions I asked above are testament to the effort I've already put in, to help myself and everyone else understand what was expressed poorly and/or carelessly by the O.P.

    I was actually the first to respond by pointing out what didn't make sense, and invited/challenged him to rephrase what he was after in an understandable, logical fashion.
  • I know what a moving average is, but it's not a goal that you can achieve or fail by a particular evaluation date. Furthermore, if you want to evaluate the moving average of weekly mileage, then you must partition the measurement period into week-long blocks; a single sliding window of seven days does not do anything for reporting average, and you don't get a historical chart of data generated using such a sliding window if you're setting up a pass-fail type of goal, as opposed to just a metric.

    I have already covered the possibility in the final paragraph of my first post in this thread.

    You aren't going to get 365 daily data points for total-mileage-over-the-past-seven-days and then evaluate their average value to determine if you have passed or failed.
  • I was actually the first to respond

    Well then I hope you can see that there isn't a correlation between being first or using precalculus to understand a person's intent. It isn't a skill that comes naturally to everyone but I think if you practice enough you can develop it and I really think you'll find it useful in many facets of your life.

    The equation for OP's request is fairly simple, there's no need for Riemann sums.