A random variable $X$ is a function from the sample space $\Omega$ to a measurable space $E$.
Is the codomain of random variable $X$ always equal to the domain of the associated p.d.f. $f$ (or p.m.f.)?
I think this must be the case in order for the notation $f(X)$, which is supposed to mean the composition of $f$ and $X$, to make sense.
This question arises after having gotten an answer to the other question: Can we really compose random variables and probability density functions?.