Content deleted Content added
moving comments that were not supposed to be in the article to the discussion |
correction to algorithm shown by AlexC |
||
Line 47:
:The above algorithm does not seem to be correct. The resulting variance does not equal either one of the variances whose formulas are given at the top of the page. --137.226.12.196
---
I had a look at the source for AlexCs algorithm. I believe there is a mistake:
var=(sum2-sum/n)/(n-1)
should read
var=(sum2-sum*sum/n)/(n-1)
The result of this algorithm agrees with my graphic calculator.
I think the corrected algorithm should be added to the page
-- aj504@york.ac.uk who still hasn't got a wikipedia account :)
|