-1

X is for continuous random variable and it's nonnegative. Then this is the formula.

$$E(X)=\int_0^\infty(1-F(x))dx$$

Does anyone know the proof? I appreciate any help.

naslundx
  • 9,720

2 Answers2

0

Hint:

Write RHS as $$\int_0^{\infty}\int_0^{\infty}1_{(x,\infty)}(y)dF(y)dx$$ and switch the order of integration.

drhab
  • 151,093
0

Provided there is a density function, you can do this:

$$\int_0^\infty (1-F(x)) \mathrm{d} x = \int_0^\infty \int_x^\infty f(y)\mathrm{d} y \mathrm{d} x = \int_0^\infty \int_0^y f(y) \mathrm{d}x\mathrm{d}y = \int_0^\infty y f(y)\mathrm{d}y = \mathrm{E}(X) $$

Otherwise look at drhab's answer.

Sanderr
  • 523
  • 1
    $X$ has continuous distribution, but not necessarily absolutely continuous. It can be that no PDF exists. – drhab Aug 02 '16 at 13:49