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

Documentation does not specify if variance is population or sample #1485

Open
wjholden opened this issue Feb 11, 2025 · 1 comment
Open

Documentation does not specify if variance is population or sample #1485

wjholden opened this issue Feb 11, 2025 · 1 comment

Comments

@wjholden
Copy link

Hello, just a small suggestion here to specify in the documentation that Matrix::variance is calculating the population variance and not the sample variance. Coming from an R background, I was surprised when Matrix::row_variance didn't return the same values as R's var.

Simply changing the doc comment from "The variance of all the elements of this matrix" to "The population variance of all the elements of this matrix" might have helped my confusion.

@wjholden
Copy link
Author

}) / n_elements

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

1 participant