随机算法 (Spring 2014)/Concentration of Measure: Difference between revisions
imported>Etone Created page with "= Conditional Expectations = The '''conditional expectation''' of a random variable <math>Y</math> with respect to an event <math>\mathcal{E}</math> is defined by :<math> \mathbf…" |
imported>Etone |
||
Line 1: | Line 1: | ||
= Martingales = | = 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 <math>n</math> losses, if the <math>(n+1)</math>th bet wins, then it gives a net profit of | "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 <math>n</math> losses, if the <math>(n+1)</math>th bet wins, then it gives a net profit of |
Revision as of 08:26, 31 March 2014
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. And remember: gambling is bad!
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
Examples
- coin flips
- A fair coin is flipped for a number of times. Let
denote the outcome of the th flip. Let .
- The random variables
defines a martingale. - Proof
- We first observe that
, which intuitively says that the next number of HEADs depends only on the current number of HEADs. This property is also called the Markov property in statistic processes.
- Polya's urn scheme
- Consider an urn (just a container) that initially contains
balck balls and white balls. At each step, we uniformly select a ball from the urn, and replace the ball with balls of the same color. Let , and be the fraction of black balls in the urn after the th step. The sequence is a martingale.
- edge exposure in a random graph
- Consider a random graph
generated as follows. Let be the set of vertices, and let be the set of all possible edges. For convenience, we enumerate these potential edges by . For each potential edge , we independently flip a fair coin to decide whether the edge appears in . Let be the random variable that indicates whether . We are interested in some graph-theoretical parameter, say chromatic number, of the random graph . Let be the chromatic number of . Let , and for each , let , namely, the expected chromatic number of the random graph after fixing the first edges. This process is called edges exposure of a random graph, as we "exposing" the edges one by one in a random grpah. - As shown by the above figure, the sequence
is a martingale. In particular, , and . The martingale moves from no information to full information (of the random graph ) in small steps.
It is nontrivial to formally verify that the edge exposure sequence for a random graph is a martingale. However, we will later see that this construction can be put into a more general context.
Generalizations
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
We introduce a martingale tail inequality, called Azuma's inequality.
Azuma's Inequality - Let
be a martingale such that, for all , - Then
- Let
Before formally proving this theorem, some comments are in order. First, unlike the Chernoff bounds, there is no assumption of independence. This shows the power of martingale inequalities.
Second, the condition that
is central to the proof. This condition is sometimes called the bounded difference condition. If we think of the martingale
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.
The Bounded Difference Method
Combining Azuma's inequality with the construction of Doob martingales, we have the powerful Bounded Difference Method for concentration of measures.
For arbitrary random variables
Given a sequence of random variables
Theorem (Method of averaged bounded differences) - Let
be arbitrary random variables and let be a function of satisfying that, for all , - Then
- Let
Proof. Define the Doob Martingale sequence by setting and, for , . Then the above theorem is a restatement of the Azuma's inequality holding for .
For independent random variables
The condition of bounded averaged differences is usually hard to check. This severely limits the usefulness of the method. To overcome this, we introduce a property which is much easier to check, called the Lipschitz condition.
Definition (Lipschitz condition) - A function
satisfies the Lipschitz condition, if for any and any ,
- A function
In other words, the function satisfies the Lipschitz condition if an arbitrary change in the value of any one argument does not change the value of the function by more than 1.
The diference of 1 can be replaced by arbitrary constants, which gives a generalized version of Lipschitz condition.
Definition (Lipschitz condition, general version) - A function
satisfies the Lipschitz condition with constants , , if for any and any ,
- A function
The following "method of bounded differences" can be developed for functions satisfying the Lipschitz condition. Unfortunately, in order to imply the condition of averaged bounded differences from the Lipschitz condition, we have to restrict the method to independent random variables.
Corollary (Method of bounded differences) - Let
be independent random variables and let be a function satisfying the Lipschitz condition with constants , . Then
- Let
Proof. For convenience, we denote that for any .We first show that the Lipschitz condition with constants
, , implies another condition called the averaged Lipschitz condition (ALC): for any , ,And this condition implies the averaged bounded difference condition: for all
,Then by applying the method of averaged bounded differences, the corollary can be proved.
For any
, by the law of total expectation,Let
and , and take the diference. ThenThus, the Lipschitz condition is transformed to the ALC. We then deduce the averaged bounded difference condition from ALC.
By the law of total expectation,
We can trivially write
asHence, the difference is
The averaged bounded diference condition is implied. Applying the method of averaged bounded diferences, the corollary follows.
Applications
Occupancy problem
Throwing
This problem can be described equivalently as follows. Let
For any
By the linearity of expectation,
We want to know how
We than observe that changing the value of any
Thus, for sufficiently large
Pattern Matching
Let
By the linearity of expectation, it is obvious that
We now look at the concentration of
For a fixed pattern
Combining unit vectors
Let
Let
Let
and
This kind of construction is very useful in combinatorial proofs of metric problems. We will show that by this construction, the random variable