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

stats: Max of three Logistic RV returns -oo #19132

Open
preda opened this issue Apr 16, 2020 · 1 comment
Open

stats: Max of three Logistic RV returns -oo #19132

preda opened this issue Apr 16, 2020 · 1 comment

Comments

@preda
Copy link

preda commented Apr 16, 2020

Using git version a8eec2f

from sympy.stats import *

a = Logistic('a', 0, 1)
b = Logistic('b', 0, 1)
c = Logistic('c', 0, 1)
E(Max(a, b, c)) evaluates to -oo

(but E(Max(a, b)) evaluates to 1)

It seems to me that the E(Max(a,b,c)) result is wrong -- or am I doing something wrong?

@sylee957 sylee957 added the stats label Apr 18, 2020
@czgdp1807
Copy link
Member

Current behaviour on master,

In [1]: from sympy.stats import *                                               

In [2]: a = Logistic('a', 0, 1) 
   ...: b = Logistic('b', 0, 1) 
   ...: c = Logistic('c', 0, 1)                                                 

In [3]: E(Max(a, b, c))                                                         
Out[3]: 3/2

In [4]: E(Max(a, b))                                                            
Out[4]: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants