I often need to do calculations such as the following:
- $A, B, C, D$ are independent random variables distributed uniformly in [0,1].
- $X := A+B$ and $Y:=B+C+D$.
- What is the probability that $X<Y$?
Is there a free mathematical software that can do such calculations easily?
My favorite mathematical software is SageMath, but as far as I know, its abilities in probability theory are not sufficient for such calculations.
If you would like to do these calculations numerically, I think
Ris very good (everything free).Here is a link: https://www.r-project.org/
Here is an editor you may like: https://www.rstudio.com/
A solution in
Rcould look like the followingThe true value is given by LutzL in the other post.