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
SUMMARY

Determining the optimal moving average period for cyclical sales can be achieved through mathematical analysis rather than arbitrary selection. A suggested method involves comparing variances of data points at specific intervals, such as using a period of 5 days to analyze the variance of the set [d(1), d(6), ..., d(1+5k)]. Additionally, applying exponential smoothing with the formula a*d(t)+(1-a)*d(t-1) where 0 PREREQUISITES

  • Understanding of moving averages and their applications in time series analysis
  • Familiarity with variance calculations and statistical methods
  • Knowledge of exponential smoothing techniques
  • Basic proficiency in using statistical software such as R or Python for data analysis
NEXT STEPS
  • Research methods for calculating variances in time series data
  • Explore the implementation of moving averages in R, specifically using the 'zoo' package
  • Learn about exponential smoothing techniques and their applications in forecasting
  • Investigate how to identify cyclical patterns in sales data using Fourier analysis
USEFUL FOR

Data analysts, sales forecasters, and anyone involved in optimizing sales performance through statistical methods will benefit from this discussion.

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