When dealing with double Lebesgue integrals, just as with double Riemann integrals, the order of integration can be reversed. The only
1.9 Exercises
43
assumption required is that the function being integrated be either nonnegative or integrable. Here is an application of this fact.
Let $X$ be a nonnegative random variable with cumulative distribution function $F(x)=\mathbb{P}\{X \leq x\}$. Show that
$$
\mathbb{E} X=\int_0^{\infty}(1-F(x)) d x
$$
by showing that
$$
\int_{\Omega} \int_0^{\infty} \mathbb{I}_{[0, X(\omega))}(x) d x d \mathbb{P}(\omega)
$$
is equal to both $\mathbf{E} X$ and $\int_0^{\infty}(1-F(x)) d x$.