Chernoff bound

Exponential tail bound using moment generating functions.
Chernoff bound

Chernoff bound: Let XX be a . Suppose E[etX]<\mathbb{E}[e^{tX}]<\infty for some t>0t>0. Then for every real aa and every t>0t>0 for which the expectation is finite,

P(Xa)etaE ⁣[etX]. \mathbb{P}(X\ge a)\le e^{-ta}\,\mathbb{E}\!\left[e^{tX}\right].

Equivalently,

P(Xa)inft>0  etaE ⁣[etX]. \mathbb{P}(X\ge a)\le \inf_{t>0} \; e^{-ta}\,\mathbb{E}\!\left[e^{tX}\right].

Similarly, if E[etX]<\mathbb{E}[e^{-tX}]<\infty for some t>0t>0, then for every real aa and every such tt,

P(Xa)etaE ⁣[etX]. \mathbb{P}(X\le a)\le e^{ta}\,\mathbb{E}\!\left[e^{-tX}\right].

This bound is obtained by applying to the nonnegative random variable etXe^{tX}, and it is naturally expressed in terms of the of XX.