fanf: (Default)
[personal profile] fanf

In my previous post I said I was using the standard formula for the exponentially weighted moving average. This is not entirely true because the standard formula uses a complementary smoothing constant (α = 1 − a) which allows you to write the formula as an incremental adjustment to the previous value.

It's also possible to express the standard unweighted mean in a similar manner.

I was quite pleased when I found out about this analogy :-)

(Thanks to wikipedia for rendering the maths.)

Date: 2009-01-29 16:52 (UTC)
vatine: Generated with some CL code and a hand-designed blackletter font (Default)
From: [personal profile] vatine
Hm, I've used this very thing to detect spikes in incoming IP packets (using "daily packet count for protocol/port combo" as my averaged value) and simply using "average is less than 1/3 of next value" as a threshold for "something interesting just happened". I'm just wondering how good a technique that is.

Date: 2009-01-29 17:28 (UTC)
vatine: Generated with some CL code and a hand-designed blackletter font (Default)
From: [personal profile] vatine
Will do. I needed something quick half-way through doing an analysis on 13 months' worth of IP traffic aimed at non-responding destinations and that seemed to be a suitable mix of "understandable" and "quick to implement". Next round, I'll probably try both and see where they differ.

June 2025

S M T W T F S
1234567
8 91011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated 2025-06-24 22:00
Powered by Dreamwidth Studios