Home > Statistical Methods calculators > Weighted Moving Average forecast example

6. Weighted Moving Average forecast example ( Enter your problem )
  1. Formula & 3 year Weighted Moving Average forecast Example
  2. 4 year Weighted Moving Average forecast Example
  3. 5 year Weighted Moving Average forecast Example
Other related methods
  1. Simple Moving Average
  2. Weighted Moving Average
  3. Exponential Moving Average
  4. Single Exponential Smoothing
  5. Simple Moving Average forecast
  6. Weighted Moving Average forecast
  7. Exponential Moving Average forecast
  8. Single Exponential Smoothing forecast

5. Simple Moving Average forecast
(Previous method)
2. 4 year Weighted Moving Average forecast Example
(Next example)

1. Formula & 3 year Weighted Moving Average forecast Example





Formula
Examples
1) 3 year Weighted Moving Average forecast
year123456789101112
Sales5.24.95.54.95.25.75.45.85.965.24.8
Calculate 3 year Weighted Moving Average forecast with weight=1,2,1


Solution:
The value of table for `x` and `y`

x123456789101112
y5.24.95.54.95.25.75.45.85.965.24.8

The weights of the 3 years are respectively 1,2,1 and their sum is 4
Calculation of 3 year moving averages of the data
(1)
year
(2)
Sales
(3)
3 year weighted moving total
(4)
3 year weighted moving average
`(3)-:4`
15.2
24.9`1xx5.2+2xx4.9+1xx5.5=20.5``20.5-:4=5.125`
35.5`1xx4.9+2xx5.5+1xx4.9=20.8``20.8-:4=5.2`
44.9`1xx5.5+2xx4.9+1xx5.2=20.5``20.5-:4=5.125`
55.2`1xx4.9+2xx5.2+1xx5.7=21``21-:4=5.25`
65.7`1xx5.2+2xx5.7+1xx5.4=22``22-:4=5.5`
75.4`1xx5.7+2xx5.4+1xx5.8=22.3``22.3-:4=5.575`
85.8`1xx5.4+2xx5.8+1xx5.9=22.9``22.9-:4=5.725`
95.9`1xx5.8+2xx5.9+1xx6=23.6``23.6-:4=5.9`
106`1xx5.9+2xx6+1xx5.2=23.1``23.1-:4=5.775`
115.2`1xx6+2xx5.2+1xx4.8=21.2``21.2-:4=5.3`
124.8


(1)
year
(2)
Sales
(3)
3 year weighted moving average
(4)
Error
(5)
|Error|
(6)
`"Error"^2`
(7)
`|%"Error"|`
15.2
24.9
35.5
44.95.125`4.9-5.125=-0.225``0.225``0.0506``4.59%`
55.25.2`5.2-5.2=0``0``0``0%`
65.75.125`5.7-5.125=0.575``0.575``0.3306``10.09%`
75.45.25`5.4-5.25=0.15``0.15``0.0225``2.78%`
85.85.5`5.8-5.5=0.3``0.3``0.09``5.17%`
95.95.575`5.9-5.575=0.325``0.325``0.1056``5.51%`
1065.725`6-5.725=0.275``0.275``0.0756``4.58%`
115.25.9`5.2-5.9=-0.7``0.7``0.49``13.46%`
124.85.775`4.8-5.775=-0.975``0.975``0.9506``20.31%`
135.3Total`3.525``2.1156``66.5%`


Forecasting errors

1. Mean absolute error (MAE), also called mean absolute deviation (MAD)
MAE`=1/n sum |e_i|=3.525/9=0.3917`


2. Mean squared error (MSE)
MSE`=1/n sum |e_i^2|=2.1156/9=0.2351`


3. Root mean squared error (RMSE)
RMSE`=sqrt(MSE)=sqrt(0.2351)=0.4848`


4. Mean absolute percentage error (MAPE)
MAPE`=1/n sum |e_i/y_i|=66.5/9=7.39`


2) 3 year Weighted Moving Average forecast
year12345678910
Sales30253525203035403045
Calculate 3 year Weighted Moving Average forecast with weight=1,2,1


Solution:
The value of table for `x` and `y`

x12345678910
y30253525203035403045

The weights of the 3 years are respectively 1,2,1 and their sum is 4
Calculation of 3 year moving averages of the data
(1)
year
(2)
Sales
(3)
3 year weighted moving total
(4)
3 year weighted moving average
`(3)-:4`
130
225`1xx30+2xx25+1xx35=115``115-:4=28.75`
335`1xx25+2xx35+1xx25=120``120-:4=30`
425`1xx35+2xx25+1xx20=105``105-:4=26.25`
520`1xx25+2xx20+1xx30=95``95-:4=23.75`
630`1xx20+2xx30+1xx35=115``115-:4=28.75`
735`1xx30+2xx35+1xx40=140``140-:4=35`
840`1xx35+2xx40+1xx30=145``145-:4=36.25`
930`1xx40+2xx30+1xx45=145``145-:4=36.25`
1045


(1)
year
(2)
Sales
(3)
3 year weighted moving average
(4)
Error
(5)
|Error|
(6)
`"Error"^2`
(7)
`|%"Error"|`
130
225
335
42528.75`25-28.75=-3.75``3.75``14.0625``15%`
52030`20-30=-10``10``100``50%`
63026.25`30-26.25=3.75``3.75``14.0625``12.5%`
73523.75`35-23.75=11.25``11.25``126.5625``32.14%`
84028.75`40-28.75=11.25``11.25``126.5625``28.12%`
93035`30-35=-5``5``25``16.67%`
104536.25`45-36.25=8.75``8.75``76.5625``19.44%`
1136.25Total`53.75``482.8125``173.88%`


Forecasting errors

1. Mean absolute error (MAE), also called mean absolute deviation (MAD)
MAE`=1/n sum |e_i|=53.75/7=7.6786`


2. Mean squared error (MSE)
MSE`=1/n sum |e_i^2|=482.8125/7=68.9732`


3. Root mean squared error (RMSE)
RMSE`=sqrt(MSE)=sqrt(68.9732)=8.305`


4. Mean absolute percentage error (MAPE)
MAPE`=1/n sum |e_i/y_i|=173.88/7=24.84`


This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



5. Simple Moving Average forecast
(Previous method)
2. 4 year Weighted Moving Average forecast Example
(Next example)





Share this solution or page with your friends.


 
Copyright © 2024. All rights reserved. Terms, Privacy
 
 

.