I am currently hospitalised and reading a queueing theory book. I encountered in a proof this, and I fail to understand how this is true: $$E[R_j]=\int_0^\infty{P(R_j>u)du}$$
Other than the fact that $R_j$ is a random variable defined in $[0,\infty)$ I dont think that any further context is needed for my question.
Due to my hospitalisation I don't have good access to my more basic probability books but I really don't recall reading any similar alternative definition for the expected value.
If someone is curious or believes that the context is important, in a stochastic renewal process with holding times $X_j$, for a given value $x>0$, $R_j$ is defined as $R_j=X_j$ when $X_j\le x$, and $R_j=0$ otherwise.
Regardless of context, however, I find the line in question hard to comprehend.