Uniform Distribution Expected Value

redskins187
Messages
1
Reaction score
0

Homework Statement


If X~(-5,5) find E[||X|-2|]


Homework Equations


If a variable is distributed uniformly then f(x) = 1 / (b-a), with a mean of (a+b)/2.
If x~u, then y~u.


The Attempt at a Solution


I think I should change the variable, so y = |X| - 2, and then find E[|y|]. So if I do that, I change the integration from -5 and 5 to 3 and 3 because |-5| - 2 = |5| - 2. Wouldn't that just be zero, or do I have my integration points wrong?

I am also confused about finding the expected value of an absolute of something. Should I do two separate integrals, one with integral (-y * f(y) * dy) and the other integral (y * f(y) * dy) or how should I handle the absolute value sign?

I'm pretty confused by this problem, any help would be greatly appreciated!
 
Physics news on Phys.org
Try expressing the function piecewise without absolute values. The first step would be:

||x| - 2| = \begin{cases}<br /> |x| - 2 &amp; \textrm{if } |x| \geq 2 \\<br /> -|x| + 2 &amp; \textrm{otherwise}<br /> \end{cases}

Now repeat the procedure for each of the two cases. You will end up with four "pieces" which you can integrate individually and sum the results.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top