Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Education > Math > Calculating the...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 4001 of 4176
Post > Topic >>

Calculating the moving average more efficiently by still accurately ?

by "Skybuck Flying" <spam@[EMAIL PROTECTED] > Apr 4, 2008 at 11:55 AM

Hello,

The moving average for the following sequence is:

5 + 4 + 3 + 6 = 18 / 4 = 4.5

The moving average for the next sequence is
( 5 drops out, 7 is added):

4 + 3 + 6 + 7 = 20 / 4 = 5

However WikiPedia claims a more efficient calculation is possible:

"
http://en.wikipedia.org/wiki/Weighted_moving_average#Weighted_moving_average

SMAtoday = SMAyesterday - ((Pm-n+1)/n) + (Pm+1)/n
"

I am not sure if I understand this formula correctly but if I try to apply

it then ofcourse it doesn't work:

The moving average for the following sequence is:

5 + 4 + 3 + 6 = 18 / 4 = 4.5

The moving average for the next sequence is (by applieing formula's from 
wikipedia):

4 + 3 + 6 + 7 = ? =

I guess 5 has to be subtracted since it drops out.
I guess 7 has to be added since it is added
Leading too:

SMAtoday = 4.5 - (5/10) + (7/10) = 4.7

Which would be a wrong answer.

Is this a flaw in Wikipedia ?

What you math guys have to say about all of this ? ;)

Bye,
  Skybuck.
 




 5 Posts in Topic:
Calculating the moving average more efficiently by still accurat
"Skybuck Flying"  2008-04-04 11:55:25 
Re: Calculating the moving average more efficiently by still
hagman <google@[EMAIL   2008-04-04 05:26:47 
Re: Calculating the moving average more efficiently by still acc
"Skybuck Flying"  2008-04-06 13:01:22 
Re: Calculating the moving average more efficiently by still acc
"Skybuck Flying"  2008-04-06 18:38:58 
Re: Calculating the moving average more efficiently by still acc
"Skybuck Flying"  2008-04-06 18:44:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 6:50:18 CDT 2008.