0

The normal expected value that I am used to is the following with $f(x)$ as the probability density function:

$E[X] = \int_{-\infty}^\infty{xf(x) \, dx}$

My basic probability textbook is doing a basic proof with a nonnegative random variable $Y$ that begins:

$E[Y] = \int_0^\infty{P\{Y > y\} \, dy}$

Can someone explain this to me? Why does this expected value definition hold? Where does it come from? This doesn't make intuitive sense to me. I imagine that I'm missing something obvious?

clay
  • 2,713
  • 23
  • 34

1 Answers1

1

It's probably easier to see in the discrete case where we can write,

$$ \begin{align} \text{E}(Y) =& \sum_{k=1}^{\infty} k \, P(Y = k) \\ =& P(Y = 1) + \\ & P(Y = 2) + P(Y = 2) + \\ & P(Y = 3) + P(Y = 3) + P(Y = 3 + \\ & \ldots \\ =& \sum_{k=0}^{\infty} P(Y > k) , \end{align} $$

where in the last step we're simply summing by columns instead of rows. So all we're doing is changing the order of summation (which is permitted because the terms being added are nonnegative), and it's basically the same idea in the continuous case.

dsaxton
  • 1,202