Consider this problem.
Suppose 3 (distinct) points are uniformly and independently distributed on a circle of unit length (smaller than a unit circle!). This is really circle and not disc. Call one of these points $B_{circ}$.
- Let $Z$ be the random variable denoting the distance of the point $B_{circ}$ to its neighbour in the anti-clockwise direction.
- Let $W$ be the minimum distance of the point B to its nearest neighbour, either clockwise or anti-clockwise, whichever is smaller.
- Let $M$ be the minimum distance between any 2 of the points.
Is the following model correct?
Let the other points be $A_{circ}$ and $C_{circ}$. They are all necessarily distinct (almost surely, but there's no measure theory here) because the probability that any 2 or all 3 of them are the same is zero. Map them all into unit half-open interval $[0,1)$, which is bijective with the circle, and call them respectively $B,A,C$. These are iid uniform(0,1) random variables, much like how the original $B_{circ}$, $A_{circ}$ and $C_{circ}$ are iid uniform(over the circle) random variables.
In terms of the order of $A,B,C$, there are exactly $2=2!=(3-1)!$ cases here because of circular permutation. The cases are $A<B<C$ and $C<B<A$.
These cases may also be respectively described as $B-A > 0$ and $B-C > 0$.
$Z=(B-A) 1_{B-A > 0} + (B-C) 1_{B-C>0}$
- 4.1. Alternatively, $Z=\max\{B-A,B-C\}=B+\max\{-A,-C\}=B-\min\{A,C\}$. Basically, the idea behind '$\max\{B-A,B-C\}$' is that exactly 1 of these quantities is going to be positive while the other is negative.
$W=\min\{Z,U\}$, where $U$ is similar to $Z$: $U=\max\{C,A\}-B=\max\{C-B,A-B\}$.
- 5.1. We have that $Z+U=|C-A|$ and then $W=\min\{B-\min\{A,C\},|C-A|-(B-\min\{A,C\})\} = \min\{Z,|C-A|-Z\}$.
$M=\min\{W,|C-A|\} = \min\{Z,|C-A|-Z,|C-A|\} = \min\{B-\min\{A,C\},|C-A|-(B-\min\{A,C\}),|C-A|\}$
These questions are all related, but I hope I made each self-contained