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|) + 2∫mb(b−x)f(x)dx
This what I have done so far and that is not much:
E(∣X−b∣)=∫−∞0(b−X) f(x) dx+∫0∞(X−b)f(x)dx
=2∫0∞(X−b) f(x) dx
=2∫−∞0(b−X) f(x) dx
I know that the median is defined as ∫−∞mf(x) dx=∫m∞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|) + 2∫mb(b−x)f(x)dx
This what I have done so far and that is not much:
E(∣X−b∣)=∫−∞0(b−X) f(x) dx+∫0∞(X−b)f(x)dx
=2∫0∞(X−b) f(x) dx
=2∫−∞0(b−X) f(x) dx
I know that the median is defined as ∫−∞mf(x) dx=∫m∞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: