Throughout the chapter we implicitly assumed the following extension of the Chernoff bound. Prove that it is true.
Let $X=\sum_{i=1}^{n} X_{i}$, where the $X_{i}$ are independent $0-1$ random variables. Let $\mu=$ $\mathbf{E}[X]$. Choose any $\mu_{L}$ and $\mu_{H}$ such that $\mu_{L} \leq \mu \leq \mu_{H}$. Then, for any $\delta>0$,
$$
\operatorname{Pr}\left(X \geq(1+\delta) \mu_{H}\right) \leq\left(\frac{\mathrm{e}^{\delta}}{(1+\delta)^{(1+\delta)}}\right)^{\mu_{H}}
$$
Similarly, for any $0<\delta<1$,
$$
\operatorname{Pr}\left(X \leq(1-\delta) \mu_{L}\right) \leq\left(\frac{\mathrm{e}^{-\delta}}{(1-\delta)^{(1-\delta)}}\right)^{\mu_{L}}
$$