A median of a random variable is defined as any $m \in \mathbb{R}$ such that
$P(X \le m) \ge 1/2$ and $P(X \ge m) \ge 1/2$.
Alternatively, in terms of the CDF $F$ of $X$ defined by $F(x) := P(X \le x)$, we need
$F(m) \ge 1/2$ and $F(m^-) \le 1/2$, where the latter is the left limit of $F$ at $m$.
Under what conditions is the median unique? It seems that either
- there should be a point $m$ with $F(m) = 1/2$ such that the CDF is continuous and inceasing in a neighborhood of $m$,
- or there should be a point $m$ where $F(m-) < 1/2$ and $F(m) = 1/2$ and $F$ is increasing on $[m,m+\epsilon)$ for some small $\epsilon > 0$,
- or there should be a point $m$ where $F(m-) < 1/2$ and $F(m) > 1/2$.
Are these all the possibilities?