Let $X$ and $Y$ be two random variables such that:
- $Y$ is a geometric random variable with the success probability $p$ (the expected value of $Y$ is $1/p$).
- $X \geq 0$.
- $\mathbb{E}(X) \leq \mathbb{E}(Y)$.
I would be grateful for any help of how one could upperbound $\mathbb{E}(X^2)$ in terms of $p$.
You can't. Let $X = 0$ with probability $1-\varepsilon$ and $\mathbb E[Y]/\varepsilon$ with probability $\varepsilon$.