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

Add degrees of freedom to variance and stddev UFunc functions #507

Open
tuxdna opened this issue Mar 10, 2016 · 0 comments
Open

Add degrees of freedom to variance and stddev UFunc functions #507

tuxdna opened this issue Mar 10, 2016 · 0 comments
Labels

Comments

@tuxdna
Copy link

tuxdna commented Mar 10, 2016

Ref: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/scala-breeze/ym8Zc7weSsk/fsjr4iVpCgAJ

Standard deviation can be calculated by two methods:

  1. Sample Standard Deviation (implemented by breeze)
  2. Population Standard Deviation (default implementation of std in i.e numpy)

https://en.wikipedia.org/wiki/Standard_deviation

I need to port some python code, and thus need the population standard deviation. Is there such a function (UFunc) in Breeze?

Here is the variance function: https://github.com/scalanlp/breeze/blob/master/math/src/main/scala/breeze/stats/DescriptiveStats.scala#L139

This might need to accept a ddof parameter ( Degrees of Freedom ) as in pandas DataFrame:

@dlwh dlwh added project and removed project labels Dec 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants