Do you know where your variables are? | |
PerlMonks |
Re: standard deviation accuracy questionby spiritway (Vicar) |
on Jul 22, 2005 at 20:29 UTC ( [id://477346]=note: print w/replies, xml ) | Need Help?? |
I had a similar problem and it drove me nuts... Your code looks OK. You didn't specify what the discrepancies were, but one thing to look into is whether your standard deviation is for a sample, or for the population. There is a difference. For a sample, you divide by (n-1); for a population, you divide by n (where n = the number of elements).
In Section
Seekers of Perl Wisdom
|
|