28
$\begingroup$

I feel like I might be missing something dumb, but in a set of non-negative numbers, is it possible for the mean to be less than half of the median?

Example: there are 999 numbers and we are told that the median is 10. This means that the sum of the numbers cannot be any less than 5,000. The configuration to achieve that sum is: 500 numbers are equal to 10, 499 are equal to 0. This makes the mean 5,000 / 999 = (slightly more than) 5. Since 5,000 is the lowest possible sum, (slightly more than) 5 is the lowest possible mean. Therefore the lowest possible mean is more than one half of the median.

Am I wrong?

$\endgroup$
0

2 Answers 2

56
$\begingroup$

You are correct. This is one example of a general result called Markov's inequality, which says that for a non-negative random variable $X$ and number $a$, $$P(X\geq a)\leq \frac{E[X]}{a}$$ If you plug in the median of $X$ for $a$ you get $$P(X\geq \text{median})\leq \frac{E[X]}{\text{median}}$$ so $$0.5\leq \frac{E[X]}{\text{median}}$$ and $$ 0.5\times\text{median}\leq \text{mean}$$

Your argument is also roughly how Markov's inequality is proved.

$\endgroup$
8
  • 1
    $\begingroup$ Interesting, since naively I'd think that shifting your dataset uniformly by a value X would not affect median vs. mean. What's hidden here (if I get it right) is that a non-negative dataset is asymmetric, being bounded on one end only. $\endgroup$ Commented Mar 28, 2022 at 13:11
  • 2
    $\begingroup$ @CarlWitthoft Adding a value doesn't affect the additive relationship between the median and mean. It can, and usually will, affect the ratio (multiplicative relationship) between them. $\endgroup$ Commented Mar 28, 2022 at 15:29
  • $\begingroup$ @CarlWitthoft I have added another proof to my answer, building on your comment. It is an interesting proof in its own right, but I am not sure if I fully captured your ideas. $\endgroup$ Commented Mar 31, 2022 at 15:22
  • $\begingroup$ The other answer, and the question, say it will always be (at least) slightly higher than 0.5 x median. Can you give an example of where you can get the equals in your ? BTW, I looked at the Wikipedia link and it didn't help, so I need a more dumbed-down explanation :-) $\endgroup$ Commented Mar 31, 2022 at 18:59
  • 1
    $\begingroup$ @DarrenCook Equality is achieved when, and only when, every value in the set is $0$. (I missed this case when I was writing my answer. I have seen plenty of issues with zeros; I should have seen this one. I blame sleep deprivation.) $\endgroup$ Commented Apr 1, 2022 at 5:40
16
$\begingroup$

in a set of non-negative numbers, is it possible for the mean to be less than half of the median?

No. In fact, the mean cannot even be equal to half of the median (except if every value in the set is $0$).

the lowest possible mean is more than one half of the median

This is correct (again, assuming that not all values are $0$).

Here are two simple (yet rigorous) proofs. (These proofs ignore the case where every value in the set is $0$.)

Proof 1

Let $n$ be the number of values.

If $n$ is even, then the upper $n / 2$ values must all be at least the median. If they are all equal to the median, then the value just below the midpoint must also be equal to the median.

If $n$ is odd, then the values above the median, as well as the median itself, must all be at least the median; the number of such values is: \begin{equation*} \frac{n - 1}{2} + 1 = \frac{n + 1}{2} > \frac{n}{2}. \end{equation*}

Either way, there are at least $n / 2$ values that are at least the median; the sum of these values, and therefore the sum of all the values, is at least: \begin{equation*} \frac{n}{2} \times \text{median}. \end{equation*}

In fact, either there are more than $n / 2$ values, or at least some of the values are greater than the median (or both), so the sum is greater than the value of this expression.

Dividing this by $n$, we find that the mean is greater than: \begin{equation*} \frac{1}{2} \times \text{median}. \end{equation*}

Proof 2

We will choose an arbitrary $m$, then construct a set with median $m$ and the minimum possible mean.

We start by doing one of the following:

  1. (set has an odd number of values) Add $m$ to the set.
  2. (set has an even number of values) Add two values, with mean $m$, to the set. Any two values with mean $m$ make the same contribution to the mean of the set, but for maximum flexibility when adding other values later, we should set both values to $m$.

We then choose an arbitrary $n$ and:

  1. Add $n$ values that are at most $m$ to the set. To minimise the mean, we should set all these values to $0$.
  2. Add $n$ values that are at least $m$ to the set. To minimise the mean, we should set all these values to $m$.

Note that these steps can construct a set of any size, with any median, and the constructed set has the minimum possible mean within these constraints.

If the set has an odd number of values, the mean of the set is:

\begin{equation*} \frac{m + nm}{1 + 2n} = \frac{1 + n}{1 + 2n} m > \frac{1}{2} m. \end{equation*}

If the set has an even number of values, the mean of the set is:

\begin{equation*} \frac{2m + nm}{2 + 2n} = \frac{2 + n}{2 + 2n} m > \frac{1}{2} m. \end{equation*}

This proof is designed to emphasise the role of the $0$, building on Carl Witthoft’s comment on another answer (emphasis added):

Interesting, since naively I'd think that shifting your dataset uniformly by a value $X$ would not affect median vs. mean. What's hidden here (if I get it right) is that a non-negative dataset is asymmetric, being bounded on one end only.

$\endgroup$
4
  • $\begingroup$ yep, that's what I was getting at $\endgroup$ Commented Mar 31, 2022 at 16:21
  • 1
    $\begingroup$ @SextusEmpiricus Your comments make no sense to me. If the number of values is even, then the median is the mean of the middle two values. If the higher of these values is equal to the median (which it would be if the upper $n / 2$ values all are), then the lower of these values must be as well. $\endgroup$ Commented Apr 1, 2022 at 15:25
  • 1
    $\begingroup$ Brian, your are right $\endgroup$ Commented Apr 1, 2022 at 16:14
  • $\begingroup$ Your "the mean cannot even be equal to half of the median (except if every value in the set is $0$)" slightly depends on your definition of "median". If the data were for example $\{0,0,6,6\}$ then arguably any value from $0$ through to $6$ could be seen as the median, as half the data would be at or below this median value and half at or above; taking the midpoint is just an arbitrary shortcut to get a single value when in fact there are multiple possible values. If you were to take $6$ as a median then the mean of $3$ would be exactly half of this. $\endgroup$
    – Henry
    Commented Feb 20 at 13:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.