Professional Documents
Culture Documents
Module 4
SUBTOPIC 2
MOVING AVERAGE
Upon the completion of this module, the students are
expected to:
• Further understand the concept of moving average
• Simulate moving average using a sample data set
• Identify ways to measure the accuracy of the model
• If a time series is generated by a constant process subject
to random error, then mean is a useful statistic and can be
used as a forecast for the next period.
• Averaging methods are suitable for stationary time series
data where the series is in equilibrium around a constant
value ( the underlying mean) with a constant variance
over time.
• It is a technique that calculates the overall trend in sales
volume from historical data of the company.
• This technique is well-known when forecasting short-term
trends.
(𝑛1 + 𝑛2 + 𝑛3 + ⋯ 𝑛𝑥)
𝑚𝑜𝑣𝑖𝑛𝑔 𝑎𝑣𝑒𝑟𝑎𝑔𝑒 =
𝑛
Sales ($M) Company XZ sales from 2003 - 2012
Year
10
2003 4
9
2004 6 8
2005 5 7
2006 8 6
5
2007 9
4
2008 5
3
2009 4
2
2010 3 1
2011 7 0
2003 2004 2005 2006 2007 2008 2009 2010 2011 2012
2012 8
The mean sales for the first five years (2003-2007) is
calculated by finding the mean from the first five years.
• When new data becomes available , the forecast for time t+2 is
the new mean including the previously observed data plus this
new observation.
1 t +1
Ft + 2 =
t + 1 i =1
yi
5
Sales
4 Sales (y)
0
0 5 10 15 20 25 30
Weeks
• Use a three-week moving average (k=3) for the
department store sales to forecast for the week 24 and
26.
( y23 + y22 + y21) 5.2 + 6.7 + 5.8
yˆ 24 = = = 5.9
3 3
• The forecast error is
e24 = y24 − yˆ 24 = 6 − 5.9 = .1
• The forecast for the week 26 is
RMSE = 0.63 1
2
3
5.3
4.4
5.4
4 5.8 5.033333
Weekly Sales Forecasts
5 5.6 5.2
6 4.8 5.6
8
7 5.6 5.4
8 5.6 5.333333
9 5.4 5.333333
7
10 6.5 5.533333
11 5.1 5.833333
6 12 5.8 5.666667
13 5 5.8
14 6.2 5.3
5
15 5.6 5.666667
16 6.7 5.6
Sales
1
25 5.8 5.966667
5.666667
0
0 5 10 15 20 25 30
Weeks
If you have any question, leave a
comment on the discussion for Module
4 Subtopic 2.
• SAS. Moving Average