I'm working on probability theory and recently I've got stuck with the following task:
Random point $A$ divides the segment $[0, 1]$ on two segments. Let $M$ be the size of biggest segment and $m$ be the size of least one. Calculate the probabilites $P(M \le x)$ and $P(m \le x)$ for every $x \in [0; 1]$.
This is my solution:
Suppose that $X$ is the length of the second segment(from $0$ to $A$). And $Y$ be the length of the second(from $A$ to $1$).
The first slippery moment: $P(X \le x) = x$ and $P(Y \le x) = 1-x$
By symmetry $P(X \le Y) = P(Y \le X)$
Than $P(m \le x) = P(X \le Y)P(X \le x)+ P(Y \le X)P(Y \le x) = \frac{1}{2}x+ \frac{1}{2}(1-x)=\frac{1}{2}$
$P(M \le x) = P(X \ge Y)P(X \le x)+ P(Y \ge X)P(Y \le x) = \frac{1}{2}x+ \frac{1}{2}(1-x)=\frac{1}{2}$
I'm very unsure about this solution. Am I right?
the two laws are both uniform:
$m \in [0;\frac{1}{2}]$
$M \in [\frac{1}{2};1]$
Thus the two CDF's are the following
$\mathbb{P}[M \leq x]=\frac{x-\frac{1}{2}}{\frac{1}{2}}$
$\mathbb{P}[m \leq x]=\frac{x}{\frac{1}{2}}$
Written in a better way, we have
$\mathbb{P}[M \leq x]=2(x-\frac{1}{2})\mathbb{1}_{[\frac{1}{2};1]}+\mathbb{1}_{[1;+\infty]}$
$\mathbb{P}[m \leq x]=2x \mathbb{1}_{[0;\frac{1}{2}]}+\mathbb{1}_{[\frac{1}{2};+\infty]}$