For independent centered random variables and ,
Apply the Doob maximal inequality for a nonnegative submartingale to and optimize at .
Put . If , then
The Doob maximal inequality for a nonnegative submartingale therefore gives
The right side is minimized at , and substitution gives
For , the Exponential martingale for Brownian motion and the Doob maximal inequality for a nonnegative submartingale give
Taking gives . Apply the same argument to and use the union bound: