Suppose that $X$ and $Y$ are jointly distributed in such a way that $X\sim U[-1,1]$ and $Y\sim U[-|X|,|X|]$.
I am interested in obtaining the PDF of $X+Y$ using Mathematica.
Without much hope, I tried the following
c := TransformedDistribution[
u + v, {u \[Distributed] UniformDistribution[{-1, 1}],
v \[Distributed] UniformDistribution[{-u, u}]}]
which did not work (among other things, the resulting PDF[c]
has two variables).
Beyond this relatively simple example that can be solved with pen and paper, how can one use Mathematica to obtain the PDF of the sum of two random variables when the (conditional) distribution of one depends on the realization of the other?
RandomVariate[UniformDistribution[{1, -1}], 10]
which does work fine. Reality just isn't what it used to be. $\endgroup$