Q. 7.2

Question

7.2. Suppose that X is a continuous random variable with

density function f. Show that E[IX-a] is minimized

when a is equal to the median of F.

Hint: Write

E[I X-a l]=|x-a| f(x) d x

Now break up the integral into the regions where x<a

and where x>a, and differentiate.

Step-by-Step Solution

Verified
Answer

Differentiate E[IX-a] respective to a is proved as minimized equal to the median.

1Step 1: Given Information

X is a continuous random variable with density function with the formula using E[X-a ]=|x-a| f(x) d x .

2Step 2: Explanation

We have that,

E(|X-a|)=|x-a|f(x)dx=x<a|x-a|f(x)dx+xa|x-a|f(x)dx

=x<a(a-x)f(x)dx+xa(x-a)f(x)dx

Using the differentiation respective to a and setting it equal to zero, we have that

ddaE(|X-a|)=x<adda(a-x)f(x)dx+xadda(x-a)f(x)dx=x<af(x)dx-xaf(x)dx=0

3Step 3: Explanation

so the minimum is obtained for a such that

x<af(x)dx=xaf(x)dx

and it is the definition of the median of the distribution. Hence, we have proved the claimed.

4Step 4: Final answer

Differentiate E[IX-a] respective to a is proved as minimized equal to the median.