A point is randomly chosen from a $1\times1$ square. Find the probability that the distance between the point and the nearest diagonal is less than z

geometric-probabilityprobabilityprobability distributionsprobability theory

I have to solve the following problem:

If a point $(x_0 , y_0)$ is randomly chosen from a square, whose sides are equal to $1$, find the probability that the distance between the point and the nearest diagonal is less than z.


I have done the following:

We know that

$f(x,y)=\left\{\begin{matrix}
0, (x,y) \notin [0,1]\times [0,1] \\
1, (x,y) \in [0,1]\times [0,1]
\end{matrix}\right.$

We want to calculate $P$("the distance between the point and the nearest diagonal is less than z")$=P(B_z)$

As we deduce that $z \in [0, \frac{\sqrt{2}}{4})$, we've got the following cases:

  • When $z=0$, as we are in an apex or in one of the diagonals, the distance is $0$.
  • When $z \in (0, \frac{\sqrt{2}}{4})$, the distance to the nearest diagonal would be $\sqrt{(x-x_0)^2+(y-y_0)^2}\le z$

But what do I have to do now? I've tried to calculate the area of $B_z$ this way, but I don't know if I have to do it like this:

$Area(B_z)=\int_0^z \int_0^{\sqrt{z-(x-x_0)^2}+y_0}1 dydx$

Am I doing it ok? Or do I have to calculate something else?

Best Answer

This diagram shows the areas within distance $\frac{0.1}{\sqrt2}$ of the diagonals. Instead of calculating the area of the somewhat complicated X shape, you can calculate the area of the four right isosceles triangles that form the complement and subtract it from the total area $1$.

area diagram

Related Question