Let $X$ be a continuous random variable with pdf $f(x)$. Assume that
- $f(x) \geq 0$, for all $x > 0$, so $X$ is a positive random variable,
- $f(\infty) > 0$, i.e. $X$ has a strictly positive density of probability at infinity,
- $\mathbb{E}[X | X < \infty] = k < \infty$.
Then $\mathbb{E}[X]$ is finite or infinite ?
Is it wrong to calculate \begin{equation} \begin{aligned} \mathbb{E}[X] &= \mathbb{E}[X | X < \infty ] P(X < \infty) + \mathbb{E}[X |X = \infty] P(X = \infty) \\ &= \lim_{dx \rightarrow 0} k (1-f(\infty) dx) + \infty f(\infty) dx \\ &= \infty \end{aligned} \end{equation} ?