Determining Optimal Moving Average Period for Cyclical Sales

  • Context: Undergrad 
  • Thread starter Thread starter Hodgey8806
  • Start date Start date
  • Tags Tags
    Average Period
Click For Summary

Discussion Overview

The discussion focuses on determining the optimal period for a moving average in the context of forecasting cyclical sales. Participants explore mathematical approaches and methodologies for selecting this period rather than relying on arbitrary choices.

Discussion Character

  • Exploratory, Technical explanation, Mathematical reasoning

Main Points Raised

  • One participant suggests that an ideal period would ensure that the data at time t equals the data one period later, proposing a method involving least squared differences to identify suitable cut points.
  • Another participant agrees that there are rigorous methods for determining the characteristics of a moving average, emphasizing the importance of matching the averaging period to known cycles to filter out unwanted variations.
  • A different approach is introduced, mentioning the use of an exponential moving average formula, which incorporates a weighting factor to adjust the influence of past data.

Areas of Agreement / Disagreement

Participants express varying methods and ideas for determining the optimal moving average period, indicating that multiple competing views remain without a consensus on a single approach.

Contextual Notes

Some methods discussed depend on specific assumptions about the data's cyclical nature and may require further mathematical validation. The effectiveness of different averaging periods may vary based on the characteristics of the sales data being analyzed.

Hodgey8806
Messages
140
Reaction score
3
Hello,

I'm trying to use a moving average to optimize performance. However, I don't want to just choose an arbitrary period to begin with. Do you have any suggestions as to how to determine the proper period to begin with. What I'm asking is:
Is there a mathematical formula to determine the appropriate period?
For example: I'm measuring a cyclical sales and would like to forecast the next day using moving averages.
I don't want to arbitrarily choose 30 days. I'd like to know if there is something else I could do.

Thanks!
 
Physics news on Phys.org
An ideal period would be one such that your data at time t is equal to your data one period later, d(t) = d(t+p).
You could select a few different cut points, and compare using a least squared difference term.
Let's say you have data from t = 1 to N, and you set p = 5, then you might look at the variance of the set [d(1), d(6), ... , d(1+5k) ]
Taking the average of the 5 variances could give you a useful measure.
 
I think RUber makes a good point. There are methods for rigorously determining the characteristics of a moving average (or other filter) of a certain length. However, the basic idea is that the averaging period is chosen to match some known cycle and filter out others. For example, a moving yearly average of, e.g., temperature at a certain place would tend to show you the interannual differences while suppressing the seasonal cycles.
 
Exponential is an option:

a*d(t)+(1-a)*d(t-1). 0<a<1
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 27 ·
Replies
27
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
15
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K