[Math] Expected Value of a Probability Density Function with Absolute Value

probability

I'm given a probability density function $f(x) = c |(x^2 – 1)|$ for $-2 \leq x \leq 3.$ I found $c$ by by integrating from -2 to 3 and setting this equal to 1 and got $c = \frac{3}{28}$, so $f(x) = \frac{3}{28} |(x^2 – 1)|$. However, this was tedious because I couldn't think of any other way to do it besides splitting the function into three parts (two positive chunks and one negative chunk), due to the absolute value.

Now I'm asked to find E(X), the expected value. (I did what my textbook told me and simply multiplied each by $x$.) I split it into three integrals again.

$$E(X) = \int\limits_{-2}^{-1}{x\frac{3}{28}(x^2 – 1)}\,dx + \int\limits_{-1}^{1}{x\frac{-3}{28}(x^2 – 1)}\,dx + \int\limits_{1}^{3}{x\frac{3}{28}(x^2 – 1)}\,dx$$

Now it seems like I'm finding the expected value of three separate components, so I thought I might have to average them. But my calculator says

$$\int\limits_{-2}^{3}{x\frac{3}{28}|{(x^2 – 1)}|}\,dx = \frac{165}{112}$$

which is what I got when I did the addition out above.

But I think this must be wrong, since the function $\frac{3}{28}|(x^2 – 1)|$ doesn't even attain that value over the interval, and my understanding is that expected value is like the average of the probability density function.

Is my methodology wrong?

Best Answer

You're finding the average value (not the average probability), and the value ranges from $-2$ to $3$, so $165/112$ looks like a possible average value (especially since the pdf is weighted toward the high numbers).