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

bpo-36018: Add the NormalDist class to the statistics module #11973

Merged
merged 16 commits into from
Feb 23, 2019

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Feb 21, 2019

Work in prograss.. Docs and tests forthcoming.

https://bugs.python.org/issue36018

@rhettinger rhettinger merged commit 11c7953 into python:master Feb 23, 2019
@rhettinger rhettinger deleted the norm_dist branch February 23, 2019 22:44
self.assertAlmostEqual(X.cdf(100), 0.50)
# Error case: variance is zero
Y = NormalDist(100, 0)
with self.assertRaises(statistics.StatisticsError):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CDF is well defined even if sigma=0. In that case

    cdf(x) = 0 if x < mu else 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants