I received this problem on my exam, although I thought I answered it right, it was marked as wrong.
There is a frog on a line. The frog starts from a point 0 and makes two successive jumps: first it jumps to the right(in the positive direction) then it jumps to the left(in the negative direction). Each jump has length that is independent uniformly distributed random variable. The length of the first jump is uniformly distributed on the interval $[0,2]$, the length of the second jump is uniformly distributed on the interval $[0,4]$. What is the probability that the frog’s final position is more than 1 from its starting point?
My solution:
We need to find distribution function of the sum of two random variables $X$ (un.distributed on $[0,2])$ and $Y$(un.distributed on $[-4,0]$): $Z=X+Y$.
Distribution function of the sum of two uniformly distributed random variables $X$ (on $[0,b]$) and $Y$ (on $[0,a]$) where $a\leqslant b$:
$$F(z)=\frac{z^2}{2ab} \qquad0\leqslant z\leqslant a$$ $$F(z)=\frac{a}{2b}+\frac{(z-a)}{b}\qquad a\leqslant z\leqslant b$$ $$F(z)=1-\frac{(a+b-z)^2}{2ab}\qquad b\leqslant z\leqslant(a+b)$$
In order to find the desired distribution function we need to shift the graph to the left: $$F(z)=\frac{(z+4)^2}{16} \qquad-4\leqslant z\leqslant-2$$
$$F(z)=\frac{1}{4}+\frac{(z+2)}{4}\qquad -2 \leqslant z \leqslant 0$$
$$F(z)=1-\frac{(2-z)^2}{16}\qquad 0 \leqslant z \leqslant 2$$
The answer to this problem: $$1-F(1)+F(-1)=1-15/16+1/2=7/16$$
I cannot explain why this answer isn’t correct (I also don’t know the correct answer). Thanks!

I don't see how you can simply plug in some values and shift the function $F$ to get the distribution you are trying to find. $F$ deals with the sum of two uniform random variables whose ranges share a left endpoint, while you want the sum of two uniform random variables where the left endpoint of one range is the right endpoint of the other.
I would draw a picture: $(X,Y)$ is uniformly distributed on the rectangle $[0,2] \times [-4,0]$, so the joint density of these random variables is $$f_{X,Y}(x,y)=\frac{1}{8}1_{[0,2]\times[-4,0]}(x,y).$$ You want to know $P(X+Y < -1\text{ or }X+Y > 1)$, but it is simpler to compute $P(-1\leq X+Y\leq 1)$, i.e., $P(-X-1 \leq Y \leq -X+1)$. The set of outcomes satisfying this is described by the set $$E=\{(x,y) \mid 0 \leq x \leq 2, -4 \leq y \leq 0, \text{ and }-x-1 \leq y \leq -x+1\}. $$ Now simply integrate the joint density over $E$: $$P(-X-1 \leq Y \leq -X+1)=P((X,Y) \in A) = \int_E f_{X,Y}(x,y) \ dy dx.$$ Since $f_{X,Y}(x,y)$ is constant $(1/8$) on $E$, this is just $\frac{1}{8}\cdot(\text{Area of }E)$. You can easily calculate the area of $E$ by sketching it and breaking it up into triangles/rectangles/parallelograms.
Finally, since we computed the probability of the complement of the event we wanted, we should take $1-\frac{1}{8}\cdot(\text{Area of }E)$.