Median of Continuous Uniform Distribution

From ProofWiki
Jump to navigation Jump to search

Theorem

Let $X$ be a continuous random variable which is uniformly distributed on a closed real interval $\closedint a b$.

Then the median $M$ of $X$ is given by:

$M = \dfrac {a + b} 2$


Proof

From the definition of the continuous uniform distribution, $X$ has probability density function:

$\map {f_X} x = \dfrac 1 {b - a}$

Note that $f_X$ is non-zero, so the median is unique.

We have by the definition of a median:

$\ds \map \Pr {X < M} = \int_a^M \frac 1 {b - a} \rd x = \frac 1 2$



We have, by Primitive of Constant:

$\dfrac {M - a} {b - a} = \dfrac 1 2$

So:

\(\ds M\) \(=\) \(\ds a + \frac {b - a} 2\)
\(\ds \) \(=\) \(\ds \frac {b - a + 2 a} 2\)
\(\ds \) \(=\) \(\ds \frac {b + a} 2\)

$\blacksquare$