Defining median for discrete distribution

7k Views Asked by At

In probability theory, a median of a probability distribution is a number $M$ such that the CDF of this distribution $F_\xi(x)$ satisfies

$F_\xi(M)=\frac{1}{2} \tag1$

This works for continuous distributions, but for discrete distributions median would almost always be undefined if we were using this definition. How is it defined in the discrete case? Does it have similarity with $(1)$?

To stress the difference from median of a set and illustrate my thoughts, the CDF looks something like this.

2

There are 2 best solutions below

10
On BEST ANSWER

How is it defined in the discrete case?

In the general case, a median is defined as any number $m$ such that $P(\xi\leqslant m)\geqslant\frac12$ and $P(\xi\geqslant m)\geqslant\frac12$, or, equivalently, such that $F_\xi(m^-)\leqslant\frac12\leqslant F_\xi(m)$.

Medians are not unique, in general.

Exercise: Determine the set of medians of the distribution such that $P(\xi=0)=P(\xi=1)=\frac12$.

2
On

The way I remember it being defined in this case was from either middle school or high school. Say your distribution is

$$10, 20, 30, 40, 50, 65, 76, 89$$

There's no middle number to use as the median, so I'd use the average of the two middle numbers: $45$.

It gives me some comfort that my memory agrees with the Wikipedia article on the subject.