高级算法 (Fall 2019)/Concentration of measure: Difference between revisions
imported>Etone |
imported>Etone |
||
Line 463: | Line 463: | ||
</math> | </math> | ||
The upper tail of Azuma's inequality is proved. By replacing <math>X_i</math> by <math>-X_i</math>, the lower tail can be treated just as the upper tail. Applying the union bound, Azuma's inequality is proved. | The upper tail of Azuma's inequality is proved. By replacing <math>X_i</math> by <math>-X_i</math>, the lower tail can be treated just as the upper tail. Applying the union bound, Azuma's inequality is proved. | ||
=The Doob martingales = | |||
The following definition describes a very general approach for constructing an important type of martingales. | |||
{{Theorem | |||
|Definition (The Doob sequence)| | |||
: The Doob sequence of a function <math>f</math> with respect to a sequence of random variables <math>X_1,\ldots,X_n</math> is defined by | |||
::<math> | |||
Y_i=\mathbf{E}[f(X_1,\ldots,X_n)\mid X_1,\ldots,X_{i}], \quad 0\le i\le n. | |||
</math> | |||
:In particular, <math>Y_0=\mathbf{E}[f(X_1,\ldots,X_n)]</math> and <math>Y_n=f(X_1,\ldots,X_n)</math>. | |||
}} | |||
The Doob sequence of a function defines a martingale. That is | |||
::<math> | |||
\mathbf{E}[Y_i\mid X_1,\ldots,X_{i-1}]=Y_{i-1}, | |||
</math> | |||
for any <math>0\le i\le n</math>. | |||
To prove this claim, we recall the definition that <math>Y_i=\mathbf{E}[f(X_1,\ldots,X_n)\mid X_1,\ldots,X_{i}]</math>, thus, | |||
:<math> | |||
\begin{align} | |||
\mathbf{E}[Y_i\mid X_1,\ldots,X_{i-1}] | |||
&=\mathbf{E}[\mathbf{E}[f(X_1,\ldots,X_n)\mid X_1,\ldots,X_{i}]\mid X_1,\ldots,X_{i-1}]\ | |||
&=\mathbf{E}[f(X_1,\ldots,X_n)\mid X_1,\ldots,X_{i-1}]\ | |||
&=Y_{i-1}, | |||
\end{align} | |||
</math> | |||
where the second equation is due to the fundamental fact about conditional expectation introduced in the first section. | |||
The Doob martingale describes a very natural procedure to determine a function value of a sequence of random variables. Suppose that we want to predict the value of a function <math>f(X_1,\ldots,X_n)</math> of random variables <math>X_1,\ldots,X_n</math>. The Doob sequence <math>Y_0,Y_1,\ldots,Y_n</math> represents a sequence of refined estimates of the value of <math>f(X_1,\ldots,X_n)</math>, gradually using more information on the values of the random variables <math>X_1,\ldots,X_n</math>. The first element <math>Y_0</math> is just the expectation of <math>f(X_1,\ldots,X_n)</math>. Element <math>Y_i</math> is the expected value of <math>f(X_1,\ldots,X_n)</math> when the values of <math>X_1,\ldots,X_{i}</math> are known, and <math>Y_n=f(X_1,\ldots,X_n)</math> when <math>f(X_1,\ldots,X_n)</math> is fully determined by <math>X_1,\ldots,X_n</math>. | |||
The following two Doob martingales arise in evaluating the parameters of random graphs. | |||
;edge exposure martingale | |||
:Let <math>G</math> be a random graph on <math>n</math> vertices. Let <math>f</math> be a real-valued function of graphs, such as, chromatic number, number of triangles, the size of the largest clique or independent set, etc. Denote that <math>m={n\choose 2}</math>. Fix an arbitrary numbering of potential edges between the <math>n</math> vertices, and denote the edges as <math>e_1,\ldots,e_m</math>. Let | |||
::<math> | |||
X_i=\begin{cases} | |||
1& \mbox{if }e_i\in G,\ | |||
0& \mbox{otherwise}. | |||
\end{cases} | |||
</math> | |||
:Let <math>Y_0=\mathbf{E}[f(G)]</math> and for <math>i=1,\ldots,m</math>, let <math>Y_i=\mathbf{E}[f(G)\mid X_1,\ldots,X_i]</math>. | |||
:The sequence <math>Y_0,Y_1,\ldots,Y_n</math> gives a Doob martingale that is commonly called the '''edge exposure martingale'''. | |||
;vertex exposure martingale | |||
: Instead of revealing edges one at a time, we could reveal the set of edges connected to a given vertex, one vertex at a time. Suppose that the vertex set is <math>[n]</math>. Let <math>X_i</math> be the subgraph of <math>G</math> induced by the vertex set <math>[i]</math>, i.e. the first <math>i</math> vertices. | |||
:Let <math>Y_0=\mathbf{E}[f(G)]</math> and for <math>i=1,\ldots,n</math>, let <math>Y_i=\mathbf{E}[f(G)\mid X_1,\ldots,X_i]</math>. | |||
:The sequence <math>Y_0,Y_1,\ldots,Y_n</math> gives a Doob martingale that is commonly called the '''vertex exposure martingale'''. | |||
===Chromatic number=== | |||
The random graph <math>G(n,p)</math> is the graph on <math>n</math> vertices <math>[n]</math>, obtained by selecting each pair of vertices to be an edge, randomly and independently, with probability <math>p</math>. We denote <math>G\sim G(n,p)</math> if <math>G</math> is generated in this way. | |||
{{Theorem | |||
|Theorem [Shamir and Spencer (1987)]| | |||
:Let <math>G\sim G(n,p)</math>. Let <math>\chi(G)</math> be the chromatic number of <math>G</math>. Then | |||
::<math>\begin{align} | |||
\Pr\left[|\chi(G)-\mathbf{E}[\chi(G)]|\ge t\sqrt{n}\right]\le 2e^{-t^2/2}. | |||
\end{align}</math> | |||
}} | |||
{{Proof| Consider the vertex exposure martingale | |||
:<math> | |||
Y_i=\mathbf{E}[\chi(G)\mid X_1,\ldots,X_i] | |||
</math> | |||
where each <math>X_k</math> exposes the induced subgraph of <math>G</math> on vertex set <math>[k]</math>. A single vertex can always be given a new color so that the graph is properly colored, thus the bounded difference condition | |||
:<math> | |||
|Y_i-Y_{i-1}|\le 1 | |||
</math> | |||
is satisfied. Now apply the Azuma's inequality for the martingale <math>Y_1,\ldots,Y_n</math> with respect to <math>X_1,\ldots,X_n</math>. | |||
}} | |||
For <math>t=\omega(1)</math>, the theorem states that the chromatic number of a random graph is tightly concentrated around its mean. The proof gives no clue as to where the mean is. This actually shows how powerful the martingale inequalities are: we can prove that a distribution is concentrated to its expectation without actually knowing the expectation. | |||
=== Hoeffding's Inequality=== | |||
The following theorem states the so-called Hoeffding's inequality. It is a generalized version of the Chernoff bounds. Recall that the Chernoff bounds hold for the sum of independent ''trials''. When the random variables are not trials, the Hoeffding's inequality is useful, since it holds for the sum of any independent random variables whose ranges are bounded. | |||
{{Theorem | |||
|Hoeffding's inequality| | |||
: Let <math>X=\sum_{i=1}^nX_i</math>, where <math>X_1,\ldots,X_n</math> are independent random variables with <math>a_i\le X_i\le b_i</math> for each <math>1\le i\le n</math>. Let <math>\mu=\mathbf{E}[X]</math>. Then | |||
::<math> | |||
\Pr[|X-\mu|\ge t]\le 2\exp\left(-\frac{t^2}{2\sum_{i=1}^n(b_i-a_i)^2}\right). | |||
</math> | |||
}} | |||
{{Proof| Define the Doob martingale sequence <math>Y_i=\mathbf{E}\left[\sum_{j=1}^n X_j\,\Big|\, X_1,\ldots,X_{i}\right]</math>. Obviously <math>Y_0=\mu</math> and <math>Y_n=X</math>. | |||
:<math> | |||
\begin{align} | |||
|Y_i-Y_{i-1}| | |||
&= | |||
\left|\mathbf{E}\left[\sum_{j=1}^n X_j\,\Big|\, X_0,\ldots,X_{i}\right]-\mathbf{E}\left[\sum_{j=1}^n X_j\,\Big|\, X_0,\ldots,X_{i-1}\right]\right|\ | |||
&=\left|\sum_{j=1}^i X_i+\sum_{j=i+1}^n\mathbf{E}[X_j]-\sum_{j=1}^{i-1} X_i-\sum_{j=i}^n\mathbf{E}[X_j]\right|\ | |||
&=\left|X_i-\mathbf{E}[X_{i}]\right|\ | |||
&\le b_i-a_i | |||
\end{align} | |||
</math> | |||
Apply Azuma's inequality for the martingale <math>Y_0,\ldots,Y_n</math> with respect to <math>X_1,\ldots, X_n</math>, the Hoeffding's inequality is proved. | |||
}} |
Revision as of 06:08, 8 October 2019
Chernoff Bound
Suppose that we have a fair coin. If we toss it once, then the outcome is completely unpredictable. But if we toss it, say for 1000 times, then the number of HEADs is very likely to be around 500. This phenomenon, as illustrated in the following figure, is called the concentration of measure. The Chernoff bound is an inequality that characterizes the concentration phenomenon for the sum of independent trials.

Before formally stating the Chernoff bound, let's introduce the moment generating function.
Moment generating functions
The more we know about the moments of a random variable
Definition - The moment generating function of a random variable
is defined as where is the parameter of the function.
- The moment generating function of a random variable
By Taylor's expansion and the linearity of expectations,
The moment generating function
The Chernoff bound
The Chernoff bounds are exponentially sharp tail inequalities for the sum of independent trials.
The bounds are obtained by applying Markov's inequality to the moment generating function of the sum of independent trials, with some appropriate choice of the parameter
Chernoff bound (the upper tail) - Let
, where are independent Poisson trials. Let . - Then for any
,
- Let
Proof. For any , is equivalent to that , thuswhere the last step follows by Markov's inequality.
Computing the moment generating function
:Let
for . Then, .
We bound the moment generating function for each individual
as follows.where in the last step we apply the Taylor's expansion so that
where . (By doing this, we can transform the product to the sum of , which is .)Therefore,
Thus, we have shown that for any
, .
For any
, we can let to get
The idea of the proof is actually quite clear: we apply Markov's inequality to
We then proceed to the lower tail, the probability that the random variable deviates below the mean value:
Chernoff bound (the lower tail) - Let
, where are independent Poisson trials. Let . - Then for any
,
- Let
Proof. For any , by the same analysis as in the upper tail version,For any
, we can let to get
Useful forms of the Chernoff bounds
Some useful special forms of the bounds can be derived directly from the above general forms of the bounds. We now know better why we say that the bounds are exponentially sharp.
Useful forms of the Chernoff bound - Let
, where are independent Poisson trials. Let . Then - 1. for
, - 2. for
,
- Let
Proof. To obtain the bounds in (1), we need to show that for , and . We can verify both inequalities by standard analysis techniques.To obtain the bound in (2), let
. Then . Hence,
Applications to balls-into-bins
Throwing
Now we give a more "advanced" analysis by using Chernoff bounds.
For any
Let
Then the expected load of bin
For the case
Note that
The case
When
Let
Thus,
Applying the union bound, the probability that there exists a bin with load
.
Therefore, for
The case
When
We can apply an easier form of the Chernoff bounds,
By the union bound, the probability that there exists a bin with load
.
Therefore, for
Martingales
"Martingale" originally refers to a betting strategy in which the gambler doubles his bet after every loss. Assuming unlimited wealth, this strategy is guaranteed to eventually have a positive net profit. For example, starting from an initial stake 1, after
which is a positive number.
However, the assumption of unlimited wealth is unrealistic. For limited wealth, with geometrically increasing bet, it is very likely to end up bankrupt. You should never try this strategy in real life.
Suppose that the gambler is allowed to use any strategy. His stake on the next beting is decided based on the results of all the bettings so far. This gives us a highly dependent sequence of random variables
Definition (martingale) - A sequence of random variables
is a martingale if for all ,
- A sequence of random variables
The martingale can be generalized to be with respect to another sequence of random variables.
Definition (martingale, general version) - A sequence of random variables
is a martingale with respect to the sequence if, for all , the following conditions hold: is a function of ;
- A sequence of random variables
Therefore, a sequence
The purpose of this generalization is that we are usually more interested in a function of a sequence of random variables, rather than the sequence itself.
Azuma's Inequality
The Azuma's inequality is a martingale tail inequality.
Azuma's Inequality - Let
be a martingale such that, for all , - Then
- Let
Unlike the Chernoff bounds, there is no assumption of independence, which makes the martingale inequalities more useful.
The following bounded difference condition
says that the martingale
The Azuma's inequality says that for any martingale satisfying the bounded difference condition, it is unlikely that process wanders far from its starting point.
A special case is when the differences are bounded by a constant. The following corollary is directly implied by the Azuma's inequality.
Corollary - Let
be a martingale such that, for all , - Then
- Let
This corollary states that for any martingale sequence whose diferences are bounded by a constant, the probability that it deviates
Generalization
Azuma's inequality can be generalized to a martingale with respect another sequence.
Azuma's Inequality (general version) - Let
be a martingale with respect to the sequence such that, for all , - Then
- Let
The Proof of Azuma's Inueqality
We will only give the formal proof of the non-generalized version. The proof of the general version is almost identical, with the only difference that we work on random sequence
The proof of Azuma's Inequality uses several ideas which are used in the proof of the Chernoff bounds. We first observe that the total deviation of the martingale sequence can be represented as the sum of deferences in every steps. Thus, as the Chernoff bounds, we are looking for a bound of the deviation of the sum of random variables. The strategy of the proof is almost the same as the proof of Chernoff bounds: we first apply Markov's inequality to the moment generating function, then we bound the moment generating function, and at last we optimize the parameter of the moment generating function. However, unlike the Chernoff bounds, the martingale differences are not independent any more. So we replace the use of the independence in the Chernoff bound by the martingale property. The proof is detailed as follows.
In order to bound the probability of
Represent the deviation as the sum of differences
We define the martingale difference sequence: for
It holds that
The second to the last equation is due to the fact that
Let
The deviation
We then only need to upper bound the probability of the event
Apply Markov's inequality to the moment generating function
The event
This is exactly the same as what we did to prove the Chernoff bound. Next, we need to bound the moment generating function
Bound the moment generating functions
The moment generating function
The first and the last equations are due to the fundamental facts about conditional expectation which are proved by us in the first section.
We then upper bound the
Lemma - Let
be a random variable such that and . Then for ,
- Let
Proof. Observe that for , the function of the variable is convex in the interval . We draw a line between the two endpoints points and . The curve of lies entirely below this line. Thus,Since
, we haveBy expanding both sides as Taylor's series, it can be verified that
.
Apply the above lemma to the random variable
We have already shown that its expectation
Back to our analysis of the expectation
Apply the same analysis to
Go back to the Markov's inequality,
We then only need to choose a proper
Optimization
By choosing
Thus, the probability
The upper tail of Azuma's inequality is proved. By replacing
The Doob martingales
The following definition describes a very general approach for constructing an important type of martingales.
Definition (The Doob sequence) - The Doob sequence of a function
with respect to a sequence of random variables is defined by - In particular,
and .
- The Doob sequence of a function
The Doob sequence of a function defines a martingale. That is
for any
To prove this claim, we recall the definition that
where the second equation is due to the fundamental fact about conditional expectation introduced in the first section.
The Doob martingale describes a very natural procedure to determine a function value of a sequence of random variables. Suppose that we want to predict the value of a function
The following two Doob martingales arise in evaluating the parameters of random graphs.
- edge exposure martingale
- Let
be a random graph on vertices. Let be a real-valued function of graphs, such as, chromatic number, number of triangles, the size of the largest clique or independent set, etc. Denote that . Fix an arbitrary numbering of potential edges between the vertices, and denote the edges as . Let - Let
and for , let . - The sequence
gives a Doob martingale that is commonly called the edge exposure martingale.
- vertex exposure martingale
- Instead of revealing edges one at a time, we could reveal the set of edges connected to a given vertex, one vertex at a time. Suppose that the vertex set is
. Let be the subgraph of induced by the vertex set , i.e. the first vertices. - Let
and for , let . - The sequence
gives a Doob martingale that is commonly called the vertex exposure martingale.
Chromatic number
The random graph
Theorem [Shamir and Spencer (1987)] - Let
. Let be the chromatic number of . Then
- Let
Proof. Consider the vertex exposure martingale where each
exposes the induced subgraph of on vertex set . A single vertex can always be given a new color so that the graph is properly colored, thus the bounded difference conditionis satisfied. Now apply the Azuma's inequality for the martingale
with respect to .
For
Hoeffding's Inequality
The following theorem states the so-called Hoeffding's inequality. It is a generalized version of the Chernoff bounds. Recall that the Chernoff bounds hold for the sum of independent trials. When the random variables are not trials, the Hoeffding's inequality is useful, since it holds for the sum of any independent random variables whose ranges are bounded.
Hoeffding's inequality - Let
, where are independent random variables with for each . Let . Then
- Let
Proof. Define the Doob martingale sequence . Obviously and .Apply Azuma's inequality for the martingale
with respect to , the Hoeffding's inequality is proved.