Let $X$ be random variable and $f$ it's density. How can one calculate $E(X\vert X<a)$?
From definition we have:
$$E(X\vert X<a)=\frac{E\left(X \mathbb{1}_{\{X<a\}}\right)}{P(X<a)}$$
Is this equal to:
$$\frac{\int_{\{X<a\}}xf(x)dx}{P(X<a)}$$
? If yes, then how one justify it? Thanks. I'm conditional expectation noob.
Also, what is $E(X|X=x_0)$? In discrete case it is $x_0$...
By definition, $\int_BXdP=\int_\Omega X1_BdP$. If $X$ has density $f$, this is equal to $\int x1_B(x)f(x)dx=\int_Bxf(x)dx$.