Determining Optimal Moving Average Period for Cyclical Sales

  • Thread starter Thread starter Hodgey8806
  • Start date Start date
  • Tags Tags
    Average Period
AI Thread Summary
To determine the optimal moving average period for cyclical sales, it's important to avoid arbitrary selections and instead use a mathematical approach. One method involves comparing different cut points using least squared differences to find a period that aligns with the data's cyclical nature. For instance, calculating the variance of data points at intervals can help identify a suitable period. Additionally, the averaging period should ideally match known cycles to effectively filter out irrelevant fluctuations. Utilizing exponential moving averages is also a viable option for capturing trends while smoothing out noise.
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
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top