Azuma's inequality explained

In probability theory, the Azuma–Hoeffding inequality (named after Kazuoki Azuma and Wassily Hoeffding) gives a concentration result for the values of martingales that have bounded differences.

Suppose

\{Xk:k=0,1,2,3,...\}

is a martingale (or super-martingale) and

|Xk-Xk-1|\leqck,

almost surely. Then for all positive integers N and all positive reals

\epsilon

,

P(XN-X0\geq\epsilon)\leq\exp\left({-\epsilon2\over

N
2\sum
k=1
2}
c
k

\right).

And symmetrically (when Xk is a sub-martingale):

P(XN-X0\leq-\epsilon)\leq\exp\left({-\epsilon2\over

N
2\sum
k=1
2}
c
k

\right).

If X is a martingale, using both inequalities above and applying the union bound allows one to obtain a two-sided bound:

P(|XN-X0|\geq\epsilon)\leq2\exp\left({-\epsilon2\over

N
2\sum
k=1
2}
c
k

\right).

Proof

The proof shares similar idea of the proof for the general form of Azuma's inequality listed below. Actually, this can be viewed as a direct corollary of the general form of Azuma's inequality.

A general form of Azuma's inequality

Limitation of the vanilla Azuma's inequality

Note that the vanilla Azuma's inequality requires symmetric bounds on martingale increments, i.e.

-ct\leqXt-Xt-1\leqct

. So, if known bound is asymmetric, e.g.

at\leqXt-Xt-1\leqbt

, to use Azuma's inequality, one need to choose

ct=max(|at|,|bt|)

which might be a waste of information on the boundedness of

Xt-Xt-1

. However, this issue can be resolved and one can obtain a tighter probability bound with the following general form of Azuma's inequality.

Statement

Let

\left\{X0,X1,\right\}

be a martingale (or supermartingale) with respect to filtration

\left\{l{F}0,l{F}1,\right\}

. Assume there are predictable processes

\left\{A0,A1,\right\}

and

\left\{B0,B1,...\right\}

with respect to

\left\{l{F}0,l{F}1,\right\}

, i.e. for all

t

,

At,Bt

are

l{F}t-1

-measurable, and constants

0<c1,c2,<infty

such that

At\leqXt-Xt-1\leqBtandBt-At\leqct

almost surely. Then for all

\epsilon>0

,

P(Xn-X0\geq\epsilon)\leq\exp\left(-

2\epsilon2
n
\sum
t=1
2
c
t

\right).

Since a submartingale is a supermartingale with signs reversed, we have if instead

\left\{X0,X1,...\right\}

is a martingale (or submartingale),

P(Xn-X0\leq-\epsilon)\leq\exp\left(-

2\epsilon2
n
\sum
t=1
2
c
t

\right).

If

\left\{X0,X1,...\right\}

is a martingale, since it is both a supermartingale and submartingale, by applying union bound to the two inequalities above, we could obtain the two-sided bound:

P(|Xn-X0|\geq\epsilon)\leq2\exp\left(-

2\epsilon2
n
\sum
t=1
2
c
t

\right).

Proof

We will prove the supermartingale case only as the rest are self-evident. By Doob decomposition, we could decompose supermartingale

\left\{Xt\right\}

as

Xt=Yt+Zt

where

\left\{Yt,l{F}t\right\}

is a martingale and

\left\{Zt,l{F}t\right\}

is a nonincreasing predictable sequence (Note that if

\left\{Xt\right\}

itself is a martingale, then

Zt=0

). From

At\leqXt-Xt-1\leqBt

, we have

-(Zt-Zt-1)+At\leqYt-Yt-1\leq -(Zt-Zt-1)+Bt

Applying Chernoff bound to

Yn-Y0

, we have for

\epsilon>0

,

\begin{align} P(Yn-Y0\geq\epsilon)&\leq\underset{s>0}{min}e-s\epsilonE

s(Yn-Y0)
[e

]\\ &=\underset{s>0}{min}e-s\epsilonE\left[\exp\left(s

n
\sum
t=1

(Yt-Yt-1)\right)\right]\\ &=\underset{s>0}{min}e-s\epsilonE\left[\exp\left(s

n-1
\sum
t=1

(Yt-Yt-1)\right)E\left[\exp\left(s(Yn-Yn-1)\right)\midl{F}n-1\right]\right] \end{align}

For the inner expectation term, since

(i)

E[Yt-Yt-1\midl{F}t-1]=0

as

\left\{Yt\right\}

is a martingale;

(ii)

-(Zt-Zt-1)+At\leqYt-Yt-1\leq-(Zt-Zt-1)+Bt

;

(iii)

-(Zt-Zt-1)+At

and

-(Zt-Zt-1)+Bt

are both

l{F}t-1

-measurable as

\left\{Zt\right\}

is a predictable process;

(iv)

Bt-At\leqct

;

by applying Hoeffding's lemma, we have

E\left[\exp\left(s(Yt-Yt-1)\right)\midl{F}t-1\right] \leq \exp\left(

2
s(Bt-
2
A
t)
8

\right) \leq \exp\left(

2
s
2
c
t
8

\right).

Repeating this step, one could get

P(Yn-Y0\geq\epsilon) \leq \underset{s>0}{min}e-s\epsilon\exp\left(

2
s
n
\sum
t=1
2
c
t
8

\right).

Note that the minimum is achieved at

s=

4\epsilon
n
\sum
2
c
t
t=1
, so we have

P(Yn-Y0\geq\epsilon) \leq \exp\left(-

2\epsilon2
n
\sum
2
c
t
t=1

\right).

Finally, since

Xn-X0=(Yn-Y0)+(Zn-Z0)

and

Zn-Z0\leq0

as

\left\{Zn\right\}

is nonincreasing, so event

\left\{Xn-X0\geq\epsilon\right\}

implies

\left\{Yn-Y0\geq\epsilon\right\}

, and therefore

P(Xn-X0\geq\epsilon) \leq P(Yn-Y0\geq\epsilon) \leq \exp\left(-

2\epsilon2
n
\sum
2
c
t
t=1

\right).\square

Remark

Note that by setting

At=-ct,Bt=ct

, we could obtain the vanilla Azuma's inequality.

Note that for either submartingale or supermartingale, only one side of Azuma's inequality holds. We can't say much about how fast a submartingale with bounded increments rises (or a supermartingale falls).

This general form of Azuma's inequality applied to the Doob martingale gives McDiarmid's inequality which is common in the analysis of randomized algorithms.

Simple example of Azuma's inequality for coin flips

Let Fi be a sequence of independent and identically distributed random coin flips (i.e., let Fi be equally likely to be −1 or 1 independent of the other values of Fi). Defining

Xi=

i
\sum
j=1

Fj

yields a martingale with |Xk - Xk-1| ≤ 1, allowing us to apply Azuma's inequality. Specifically, we get

\operatorname{P}(Xn>t)\leq\exp\left(

-t2
2n

\right).

For example, if we set t proportional to n, then this tells us that although the maximum possible value of Xn scales linearly with n, the probability that the sum scales linearly with n decreases exponentially fast with n.

If we set

t=\sqrt{2nlnn}

we get:

\operatorname{P}\left(Xn>\sqrt{2nlnn}\right)\leq

1n,

which means that the probability of deviating more than

\sqrt{2nlnn}

approaches 0 as n goes to infinity.

Remark

A similar inequality was proved under weaker assumptions by Sergei Bernstein in 1937.

Hoeffding proved this result for independent variables rather than martingale differences, and also observed that slight modifications of his argument establish the result for martingale differences (see page 9 of his 1963 paper).

See also

References