How could I compute the expected value E(x) given that its cdf is,
$F(x) = \dfrac{\exp(x)}{1+\exp(x)}$.
I know the method to derive E(x), as in this post. I still find it very hard to derive the result. Thanks.
How could I compute the expected value E(x) given that its cdf is,
$F(x) = \dfrac{\exp(x)}{1+\exp(x)}$.
I know the method to derive E(x), as in this post. I still find it very hard to derive the result. Thanks.
I prefer to refer to this question.
We have $$F(x)=\frac{e^x}{e^x+1}\implies f(x) = \frac{dF(x)}{dx}=\frac{e^x}{\left(e^x+1\right)^2}$$ $$E[X] = \int_{1}^{\infty} x f(x)\,dx$$ $$I = \int x f(x)\,dx=\frac{x \,e^x }{e^x+1}-\log \left(e^x+1\right)$$ Just use the bounds.