Comment #12 on issue 3129 by [email protected]: Drastic change to sympy.stats: Adding concept of Probability Distributions on surface level
http://code.google.com/p/sympy/issues/detail?id=3129

In [1]: from sympy.stats import *
In [2]: T = Normal(30, 3, symbol=Symbol('T')) # temperature is 30C with std dev 3C.
In [3]: T_posterior = Given(T, T>29) # We know that T is greater than 29
In [4]: P(T<T_posterior)
ValueError

My probability is a little rusty.  Why does this raise ValueError?

In [6]: T.symbol is Symbol('T')
Out[6]: True

is comparison of Symbols (or indeed anything other than Singletons) only works because of the cache and should not be relied upon.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to