(a) In Theorem $5.7$ we showed that, for any nonnegative functions $f$,
$$
\mathbf{E}\left[f\left(Y_{1}^{(m)}, \ldots, Y_{n}^{(m)}\right)\right] \geq \mathbf{E}\left[f\left(X_{1}^{(m)}, \ldots, X_{n}^{(m)}\right)\right] \operatorname{Pr}\left(\sum Y_{i}^{(m)}=m\right)
$$
Prove that if $\mathbf{E}\left[f\left(X_{1}^{(m)}, \ldots, X_{n}^{(m)}\right)\right]$ is monotonically increasing in $m$, then
$$
\mathbf{E}\left[f\left(Y_{1}^{(m)}, \ldots, Y_{n}^{(m)}\right)\right] \geq \mathbf{E}\left[f\left(X_{1}^{(m)}, \ldots, X_{n}^{(m)}\right)\right] \operatorname{Pr}\left(\sum Y_{i}^{(m)} \geq m\right),
$$
again under the condition that $f$ is nonnegative. Make a similar statement for the case when $\mathbf{E}\left[f\left(X_{1}^{(m)}, \ldots, X_{n}^{(m)}\right)\right]$ is monotonically decreasing in $m$.
(b) Using part (a) and Exercise 5.13, Prove Theorem 5.10.