A lesson in statisticsby 0xbeef (Hermit)
|on Mar 19, 2007 at 20:33 UTC||Need Help??|
0xbeef has asked for the wisdom of the Perl Monks concerning the following question:
Dear Stat Monks,
I am a fool, and strictly this problem is not perl, but lack of statistical knowledge. I apologise for that... I present the following simplest of problems:
I wish to calculate the ratio po:fr for this. If it exceeds 15:1, make some printf noise. My current solution is:
This result of 15:1, is the same as for the following series:
The problem is, I need the zeroes to be significant in the first series, since they are. A single value spike should not be able to cause an alert, given many other zero values! (where 0 = no activity in vmstat context)
I have zero (pun intended) statistical background. I have thought of substituting each zero value to its nearest least-signicant alternative e.g.
In this case the ratio works out to (154/5) / (14/5) = 11. Is there a correct statistical perl-friendly approach that provides significance to the zeroes in the series?