If $X$ is a continuous random variable taking non-negative values only, how do I show that $$\mathbb{E}(X)=\int_0^{\infty}[1-F_X(x)]dx$$
It's easy to give a proof if we assume the density function $f_X$ exists (use Fubini's Theorem to interchange the integrations). However, I got stuck in the general case. What if $X$ does not have a density function?