TITLE: Find the median given a table of relative frequencies
QUESTION [6 upvotes]: I came across the following GRE question. I had no problem finding the mean. However, the answer for the median is given to be 1. I don't understand how they arrive at this. 

Find the mean and median of the values of the random variable $X$, whose relative frequency distribution is given in the table below. $$\begin{array}{c|c}
\,\,\,X\,\,\,& \,\,\text{Relative Frequency}\,\,\\ \hline \\ 0 & 0.18 \\ 1 & 0.33 \\ 2 &0.10 \\ 3 &0.06 \\ 4 &0.33 \\ \hline
\end{array}$$

REPLY [7 votes]: Mean  $$0\times0.18+1\times0.33+2\times0.1+3\times0.06+4\times0.33= 2.03$$
 median: 
there  are 18 of 0's, 33of 1's, 10 of 2's, 6 of 3's, and 33 of 4's. the middle value is $(50^{th}+51^{st})/2$=(1+1)/2=1.