Books on statistics. The term "moving average" is even more common.
There are dozens of standard forms, and you can invent your own.
One simple one is to merge a data value X into a mean M by the
formula M' = (1-P)M+PX, for some fixed P.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email: nm...@cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679
In article <1673fbd6.02031...@posting.google.com>, Rex
<ryo...@nandomail.com> writes
--
David Wilkinson
Entering "rolling average" into http://www.google.com/ came up with a
lot of matches. Perhaps one of those is what you want? I suspect what
you have is just the average of the last N values for an N-point
rolling average. Might be the median of the N value, also.
If none of this helps, perhaps giving some context of the useage of the
term might get a useful response. Or not!
Lynn Killingbeck
Here's how it's calculated:
Choose N to be the desired number of data points in the moving average.
Normally this will be the number of data points that covers some epoch in
time that's interesting for your application.
then for x(n) being the nth data point,
moving ave (k) = [1/N]*[Sum over n=N-k+1 to k of x(n)] where the first
value of k >=N
so for
k=N, moving ave(N) = [1/N]*Sum over n=1 to N of x(n)]
k=N+1, moving ave(N+1) = [1/N]*Sum over n=2 to N+1 of x(n)]
etc.
Note that rather than computing the sums over and over you can do this:
k=N+2, moving ave(N+2) =moving ave[N+1] + [1/N]*[x(N+2) - x(2)]
that is, you remove the oldest contribution and add the newest.
There are perhaps half a dozen major, common forms, each with many
hundreds of variations. And probably a few dozen other published
major forms that are rarely used.
Any competent mathematician should be able to invent a few plausible
ones without even reaching for pencil and paper. This is an area
that is rich in reinvention.
At least now Rex has one or two to choose from that have been stated for
him.
------------
"When the marker hits the white board .... arm waving takes on new meaning."
"Nick Maclaren" <nm...@cus.cam.ac.uk> wrote in message
news:a6ppde$lp8$1...@pegasus.csx.cam.ac.uk...
Here's how I do a rolling average for my company. We get paid for
transcribing (typing) Doctor's dictated words about their meetings
with patients.
We get paid by the line of type. So we count "lines"
if we get 1000 lines on the first day of the year
900 lines on the second
1200 lines on the third etc until the 365th day we can
calculate the "average" number of lines per day by adding all the
lines for 356 days and dividing by 365. So let's say we take that
average on day 365 after we have accumulated 365 entries and come up
with an average of 1230 lines per day. (Note we may have added or lost
doctors so the lines on a typical day may be greater than at the
start.(or less)
BUT HOW IS THE AVERAGE CHANGING? YOU NEED A ROLLING AVERAGE TO
DETERMINE THAT> calculated as follows:
On day 366 you add JUST the 365 immediately previous days and divide
by 365 to get the avearage perhaps 1235 on DAY 366. on day 367 you
take the immediately previous 365 days and divide by 365 and maybe you
get 1237. you TAKE A NEW AVERAGE OF 365 days EVERY DAY as time rolls
along and you get an AVERAGE THAT CHANGES AS YOU DROP off THE LAST DAY
AND ADD A NEW ONE EACH DAY. so the aveage will change as it rolls
along. EVERY DAY YOU ASK "WHAT WERE MY AVERAGE LINES LAST YEAR"
EVERY DAY IS THE END OF A YEAR SO YOU CAN TAKE AN AVERAGE FOR THAT
YEAR and watch how the ROLLING AVERAGE CHANGES, Such an average
removes variation due to seasonality but that is another story