$X$ is a non negative ramdom variable, prove that $EX = \int_{0}^{\infty} P(X>t)dt$.
Well I don't know how to start to prove this, I have a clue that says to me that is: write $P(X>t)$ as the integral of the index function and use the Fubini's theorem.