Median of a distribution(Not necessarily symmetric)
Hi all, new day new question.
Consider the following exercise. Let X be a random variable of the continuous type that has pdf f(x). If m is the unique median of the distribution of X and be is a real constant, show that:
E(|X-b|) = E(|X-m|) + \(\displaystyle 2\int_m^b (b-x) f(x) dx\)
This what I have done so far and that is not much:
\(\displaystyle \displaystyle \mathrm E(|X-b|)= \int_{-\infty}^0 (b-X)\ f(x)\ dx +\int_0^{\infty} (X-b) f(x) dx\)
\(\displaystyle \displaystyle = 2\int_0^{\infty} (X-b)\ f(x)\ dx\)
\(\displaystyle \displaystyle = 2\int_{-\infty}^0 (b-X)\ f(x)\ dx\)
I know that the median is defined as \(\displaystyle \displaystyle \int_{-\infty}^m f(x)\ dx = \int_m^{\infty} f(x)\ dx = 1/2\) but other than that I find myself at a loss.
I don't need the solution, I merely need a starting point.
Thank you.
Hi all, new day new question.
Consider the following exercise. Let X be a random variable of the continuous type that has pdf f(x). If m is the unique median of the distribution of X and be is a real constant, show that:
E(|X-b|) = E(|X-m|) + \(\displaystyle 2\int_m^b (b-x) f(x) dx\)
This what I have done so far and that is not much:
\(\displaystyle \displaystyle \mathrm E(|X-b|)= \int_{-\infty}^0 (b-X)\ f(x)\ dx +\int_0^{\infty} (X-b) f(x) dx\)
\(\displaystyle \displaystyle = 2\int_0^{\infty} (X-b)\ f(x)\ dx\)
\(\displaystyle \displaystyle = 2\int_{-\infty}^0 (b-X)\ f(x)\ dx\)
I know that the median is defined as \(\displaystyle \displaystyle \int_{-\infty}^m f(x)\ dx = \int_m^{\infty} f(x)\ dx = 1/2\) but other than that I find myself at a loss.
I don't need the solution, I merely need a starting point.
Thank you.
Last edited: