Skip to content

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