Proposition (Markov's inequality in probability)

Let $X$ be a non-negative random variable and let $\lambda\in(0,\infty)$. Then $$ \prob(X\geq \lambda) \leq \frac{\expect(X)}\lambda. $$

In general, for any random variable $X$ and a non-decreasing non-negative function $f$, $$ \prob(X\geq\lambda) \leq \frac{\expect(f(X))}{f(\lambda)}.$$

Proof