Median, Quartiles and Percentiles of Continuous Random Variables

Find the median, quartiles, and percentiles of a continuous random variable by solving F(x) = p, either from a given CDF or by first building the CDF from a PDF.

Step 1 of 157%

Tutorial

The Median of a Continuous Random Variable

For a continuous random variable XX with cumulative distribution function FF, the median is the value mm at which exactly half the probability lies to the left:

F(m)=P(Xm)=12.F(m) = P(X \leq m) = \dfrac{1}{2}.

To find the median, we set the CDF equal to 12\dfrac{1}{2} and solve for mm.

For example, suppose XX has CDF

F(x)={0x<0x0x11x>1.F(x) = \begin{cases} 0 & x < 0 \\ x & 0 \leq x \leq 1 \\ 1 & x > 1. \end{cases}

Setting F(m)=12F(m) = \dfrac{1}{2} gives m=12.m = \dfrac{1}{2}.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle