0

Assuming $\mu$ is the median of random variable $\xi$, prove, that,

$$\mathbb{E}~|\xi - \mu| \leq \mathbb{E}~|\xi - \mathbb{E}\xi| $$

The case when $\mu = \mathbb{E}\xi $ is trivial, but I have no idea what to do when they are not equal.

Did
  • 284,245
xolodec
  • 103

1 Answers1

1

(I'm going to use $X$ instead of $\xi$, just to make it easier to write and read.) Look at $ g(m):=\mathbb{E}\lvert X-m \rvert$. If the distribution function of $X$ is $F$, this is $$ \int_{X \leqslant m} (m-x) \, dF(x) + \int_{X>m} (x-m) \, dF(x). $$

Integrate by parts: $$ \begin{align} \int_{X \leqslant m} (m-x) \, dF(x) &= \left[ (m-x)F(x) \right]_{-\infty}^m+\int_{X \leqslant m} F(x) \, dx \\ &= \int_{X \leqslant m} F(x) \, dx \\ \int_{X>m} (x-m) \, dF(x) &= [-(x-m)(1-F(x))]_{m}^{\infty}+\int_{X > m} (1-F(x)) \, dx \\ &= \int_{X > m} (1-F(x)) \, dx \end{align} $$

Differentiating with respect to $m$ gives $$ g'(m) = 2F(m)-1. $$ This is

  • Zero when $F(m)=1/2$,
  • Nondecreasing in $m$.

It follows that $g(m)$ has a minimum exactly when $F(m)=1/2$, which is the definition of the median. Hence $g(\mu) \leqslant g(m)$ for any other $m$, including $\mathbb{E}X$, which is exactly the inequality you want.

Chappers
  • 69,099