Skip to content

fix: make WeightedMean variances() scale-invariant using effective en… - #1199

Open
Kaustav5505g wants to merge 1 commit into
scikit-hep:developfrom
Kaustav5505g:fix/weighted-mean-variance
Open

Kaustav5505g wants to merge 1 commit into
scikit-hep:developfrom
Kaustav5505g:fix/weighted-mean-variance

Conversation

@Kaustav5505g

Copy link
Copy Markdown

Fixes the WeightedMean variance scale dependency bug (#1198) by dividing by the effective number of entries (sum_of_weights**2 / sum_of_weights_squared) instead of the raw sum_of_weights.

Closes #1198

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

[BUG] WeightedMean variances() depends on the overall weight scale

1 participant