This result is definitely wrong.

I have opened an issue:
https://github.com/sympy/sympy/issues/13417


On Saturday, 7 October 2017 20:46:34 UTC-4, EKW wrote:
>
> Consider:
>
>
> ```
>
> >>> from sympy import *
> >>> from sympy.stats import *
> >>> t = Symbol('t')
> >>> n = Uniform('n', 0, 1)
> >>> print(density(n + n)(t))
>
> Piecewise((1, (0 <= t/2) & (t/2 <= 1)), (0, True))/2
>
> ```
>
>
> This is a uniform distribution from 0 to 2.
>
>
> Am I misunderstanding what the sum of two random variables represents in 
> sympy, or is this totally wrong? I would expect the result to be a triangular 
> distribution 
> <https://math.stackexchange.com/questions/357672/density-of-sum-of-two-uniform-random-variables-0-1>.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/f4284253-6fe6-43c7-a057-0c030e221180%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to