Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The statisticians have a bunch of tricks to transform the formulas into more-easily computable forms, e.g. calculate both the average and the standard deviation in a single pass through the data instead of one pass to calculate the average and a second to calculate the standard deviation. Converting the math in here to efficient code isn't very easy.


You mean Welford's algorithm. Since code was requested:

https://jonisalonen.com/2013/deriving-welfords-method-for-co...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: