Minimize expected value of the absolute difference

Click For Summary
SUMMARY

The discussion focuses on minimizing the expected value of the absolute difference E[|X - b|] for a continuous random variable X with median m. The key conclusion is that E[|X - b|] is minimized when b equals the median m. This is derived from the expression E[|X - b|] = E[|X - m|] + 2 ∫(x - b) f(x) dx, where the integral is evaluated from b to m. The integral's positivity indicates that choosing b equal to m results in the minimum expected value.

PREREQUISITES
  • Understanding of continuous random variables and their properties
  • Familiarity with expected value calculations
  • Knowledge of integrals and their applications in probability
  • Basic concepts of statistical median
NEXT STEPS
  • Study the properties of continuous random variables in depth
  • Learn about the derivation and applications of expected values in statistics
  • Explore integration techniques relevant to probability density functions
  • Investigate the significance of the median in statistical analysis
USEFUL FOR

Students and professionals in statistics, data science, and mathematics who are interested in understanding the minimization of expected values and the role of the median in probability distributions.

cielo
Messages
14
Reaction score
0

Homework Statement


Let X be a continuous random variable with median m.
Minimize E[|X - b|] as a function of b. Hint: Show that E[|X - b|] = E[|X - m|] + 2 \int (x - b) f(x) dx , where the integral is from b to m.

Homework Equations





The Attempt at a Solution


I wanted to try a solution but I even don't know how to determine whether it is minimum or not. Please help.
 
Physics news on Phys.org
treat is as a function of b
f(b) = E(|X-b|)

how would you find the minima of f w.r.t. b?
 
cielo said:

Homework Statement


Let X be a continuous random variable with median m.
Minimize E[|X - b|] as a function of b. Hint: Show that E[|X - b|] = E[|X - m|] + 2 \int (x - b) f(x) dx , where the integral is from b to m.

Homework Equations





The Attempt at a Solution


I wanted to try a solution but I even don't know how to determine whether it is minimum or not. Please help.

Can you show the expression given above? If so, what do you know about the sign of

<br /> \int_b^m (x-b) f(x) \, dx<br />

Finally, note that the right-side is a function of the number b. What happens when you evaluate at that function at a (cleverly) chosen value?
 
statdad said:
Can you show the expression given above? If so, what do you know about the sign of

<br /> \int_b^m (x-b) f(x) \, dx<br />

Finally, note that the right-side is a function of the number b. What happens when you evaluate at that function at a (cleverly) chosen value?

I am having a hard time how to evaluate this integral because the function f(x) is not given.
<br /> \int_b^m (x-b) f(x) \, dx<br />
 
Aaaaah, that's the point: if you were given a specific f(x), any result you obtained would apply only to that particular function , not in general. This exercise is meant to give a general result.

Hint: In the integral

<br /> \int_a^m (x-b) f(x) \, dx<br />

the interval of integration consists of values x \ge b, so

i) What is the sign of (x-b)f(x) over the interval?
ii) What does this say about the sign of the integral of (x-b)f(x)?
iii) Using your answers to `i' and `ii'', if you want to choose b to minimize

<br /> E(|X-m|) + 2 \int_b^m (x-b) f(x) \, dx<br />

as a function of b, what choice does it?
 
statdad said:
Aaaaah, that's the point: if you were given a specific f(x), any result you obtained would apply only to that particular function , not in general. This exercise is meant to give a general result.

Hint: In the integral

<br /> \int_a^m (x-b) f(x) \, dx<br />

the interval of integration consists of values x \ge b, so

i) What is the sign of (x-b)f(x) over the interval?
ii) What does this say about the sign of the integral of (x-b)f(x)?
iii) Using your answers to `i' and `ii'', if you want to choose b to minimize

<br /> E(|X-m|) + 2 \int_b^m (x-b) f(x) \, dx<br />

as a function of b, what choice does it?


okay, let me see if I figure this out right.
i) The sign of (x-b)f(x) over the interval is positive.
ii) The sign of the integral of (x-b)f(x) is positive.
iii) Substituting b to m in the expression <br /> E(|X-m|) + 2 \int_b^m (x-b) f(x) \, dx<br />

results to <br /> E(|X-b|) + 2 \int_b^b (x-b) f(x) \, dx<br />
which becomes E(|X - b|) + 2*(0)
and finally to E(|X - b|)
...so E[|X - b|] is minimized when b = m.
I hope this time I finally got it right with your guidance.. =)
 
However, I'm wondering what is the use of 2 when the integral is just zero?
 
The 2 comes in when the expression on the right is developed.
 
Stat Dad -- Thank you for your guidance on this problem -- I was terribly lost and had a very similar question!
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
13K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 19 ·
Replies
19
Views
2K
Replies
2
Views
2K