Let X be a continuous non-negative random variable (i.e. Rx has only non-negative values). Prove that E(X)=∫∞0P(X>x)dx=∫∞0(1−FX(x))dx where FX(x) is the CDF for X. Using this result, find E(X) for an exponential (λ) random variable.
I know that by definition, FX(x)=P(X≤x) and so 1−FX(x)=P(X>x)
The solution is:
∫∞0∫∞xf(y)dydx=∫∞0∫y0f(y)dydx=∫∞0yf(y)dy.
I'm really confused as to where the double integral came from. I'm also rusty on multivariate calc, so I'm confused about the swapping of x and ∞ to 0 and y.
Any help would be greatly appreciated!
Answer
Observe that for a continuous random variable, (well absolutely continuous to be rigorous):
P(X>x)=∫∞xfX(y)dy
Then taking the definite integral (if we can):
∫∞0P(X>x)dx=∫∞0∫∞xfX(y)dydx
To swap the order of integration we use Tonelli's Theorem, since a probability density is strictly non-negative.
Observe that we are integrating over the domain where 0<x<∞ and x<y<∞, which is to say $0
∫∞0P(X>x)dx= ∬0<x<y<∞fX(y)d(x,y)= ∫∞0∫y0fX(y)dxdy
Then since ∫y0fX(y)dx=fX(y)∫y01dx=y fX(y) we have:
∫∞0P(X>x)dx= ∫∞0y fX(y)dy= E(X∣X≥0) P(X≥0)= E(X)when X is strictly positive
QED
No comments:
Post a Comment