Suppose I have to functions $f(x)$ and $g(x)$ such that $$ f(x) \leq g(x) \quad \forall x. $$
For a distribution $\pi(x)$ on $x$, is it necessarily true that $$ E_\pi[f(x)] \leq E_\pi[g(x)]? $$
My thinking is this is true due to the fact that $$ E_\pi[f(x)] = \int f(x) \pi(x) dx \leq \int g(x) \pi(x) dx = E_\pi[g(x)], $$ given that $\pi(x)$ is a non-negative function.