Two random numbers $x,y\in\mathbb R$ are independently chosen from an interval $[-2,2]$. Evaluate the probability for $x$ and $y$ such that the following is valid: $1\le|x|+|y|\le2$ or $1\le x^2+y^2\le4$.
We can define two separate events:
$A: 1\le|x|+|y|\le2$
$B: 1\le x^2+y^2\le4$
and evaluate $P(A\cup B)$.
$$P(A\cup B)=P(A)+P(B)-P(A\cap B)$$
$$P(A)=\frac{m(A)}{m(\Omega)},P(B)=\frac{m(B)}{m(\Omega)},P(A\cap B)=P(A)P(B)$$ where $m(\Omega)=16$ is the area of a square with side $a=4$.
Event $A$:
$m(A)$ is the surface of marked area, which can be found by integration: $$4\left(\int_0^2 (2-x)dx-\int_0^1 (1-x)dx\right)=6\Rightarrow P(A)=3/8.$$
Event $B$:
$$m(B)=2\left(\int_{-2}^2 \sqrt{4-x^2}dx - \int_{-1}^1 \sqrt{1-x^2}dx\right)=3\pi\Rightarrow P(B)=3\pi/16$$ $$P(A\cap B)=9\pi/128\Rightarrow P(A\cup B)=\frac{3(16+5\pi)}{128}$$
Could someone check if this is correct?


