I have the following:
Let $F(x)$ be the cumulative distribution function of the random variable $x$ for which it holds that $Pr(x>0)=1$, i.e. $F(a)=\int_{-\infty}^{a}f(x)dx$.
As a result, I have:
E$[x]=\int_{0}^{\infty}(1-F(x))dx$ where $E[]$ is the usual unconditional expectation operator.
Why should there be $1-F(x)$ as integrand instead of just $F(x)$, i.e. why not $E[x]=\int_{0}^{\infty}F(x)dx$?