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

cdf over Uniform random variable produces non-deterministic results #11258

Closed
J12D opened this issue Jun 19, 2016 · 1 comment · Fixed by #13804
Closed

cdf over Uniform random variable produces non-deterministic results #11258

J12D opened this issue Jun 19, 2016 · 1 comment · Fixed by #13804

Comments

@J12D
Copy link

J12D commented Jun 19, 2016

I'm on sympy 1.0. The following code:

from sympy.stats import cdf, Uniform
from sympy import Symbol
z = Symbol("z")
X = Uniform("x", 0, 10)
for i in range(10):
    print(cdf(X)(z))

produces non-deterministic output, for example:

z/10
z/10
z/10
z/10
z/10
z/10 - Min(0, z)/10
z/10
Min(10, z)/10
z/10
z/10

I assume that this is a bug, can someone confirm this?

@Eh2406
Copy link

Eh2406 commented Jun 20, 2016

I get the same result as you.

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 a pull request may close this issue.

2 participants