Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variance and mean could be calculated in a better way #190

Open
vks opened this issue Jun 9, 2017 · 1 comment
Open

Variance and mean could be calculated in a better way #190

vks opened this issue Jun 9, 2017 · 1 comment

Comments

@vks
Copy link

vks commented Jun 9, 2017

Currently the mean is calculated in a very naive way, which has numerical problems. Also it is possible to calculate the variance (and higher moments) in a single pass over the data, instead of two passes (see Wikipedia). (I implemented such an algorithm in Rust in this crate.)

@Andlon
Copy link
Collaborator

Andlon commented Jun 10, 2017

Indeed. Also related issue: #182.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants