# 组合数学 (Spring 2015)/The probabilistic method

## Contents

## The Probabilistic Method

The probabilistic method provides another way of proving the existence of objects: instead of explicitly constructing an object, we define a probability space of objects in which the probability is positive that a randomly selected object has the required property.

The basic principle of the probabilistic method is very simple, and can be stated in intuitive ways:

- If an object chosen randomly from a universe satisfies a property with positive probability, then there must be an object in the universe that satisfies that property.

- For example, for a ball(the object) randomly chosen from a box(the universe) of balls, if the probability that the chosen ball is blue(the property) is >0, then there must be a blue ball in the box.

- Any random variable assumes at least one value that is no smaller than its expectation, and at least one value that is no greater than the expectation.

- For example, if we know the average height of the students in the class is , then we know there is a students whose height is at least , and there is a student whose height is at most .

Although the idea of the probabilistic method is simple, it provides us a powerful tool for existential proof.

### Ramsey number

Recall the Ramsey theorem which states that in a meeting of at least six people, there are either three people knowing each other or three people not knowing each other. In graph theoretical terms, this means that no matter how we color the edges of (the complete graph on six vertices), there must be a **monochromatic** (a triangle whose edges have the same color).

Generally, the **Ramsey number** is the smallest integer such that in any two-coloring of the edges of a complete graph on vertices by red and blue, either there is a red or there is a blue .

Ramsey showed in 1929 that is finite for any and . It is extremely hard to compute the exact value of . Here we give a lower bound of by the probabilistic method.

**Theorem (Erdős 1947)**- If then it is possible to color the edges of with two colors so that there is no monochromatic subgraph.

**Proof.**Consider a random two-coloring of edges of obtained as follows: - For each edge of , independently flip a fair coin to decide the color of the edge.

For any fixed set of vertices, let be the event that the subgraph induced by is monochromatic. There are many edges in , therefore

Since there are possible choices of , by the union bound

Due to the assumption, , thus there exists a two coloring that none of occurs, which means there is no monochromatic subgraph.

For and we take , then

By the above theorem, there exists a two-coloring of that there is no monochromatic . Therefore, the Ramsey number for all .

### Tournament

A **tournament** (竞赛图) on a set of players is an **orientation** of the edges of the complete graph on the set of vertices . Thus for every two distinct vertices in , either or , but not both.

We can think of the set as a set of players in which each pair participates in a single match, where is in the tournament iff player beats player .

**Definition**- We say that a tournament has
**-paradoxical**if for every set of players there is a player who beats them all.

- We say that a tournament has

Is it true for every finite , there is a -paradoxical tournament (on more than vertices, of course)? This problem was first raised by Schütte, and as shown by Erdős, can be solved almost trivially by the probabilistic method.

**Theorem (Erdős 1963)**- If then there is a tournament on vertices that is -paradoxical.

**Proof.**Consider a uniformly random tournament on the set . For every fixed subset of vertices, let be the event defined as follows

- there is no vertex in that beats all vertices in .

In a uniform random tournament, the orientations of edges are independent. For any ,

- .

Therefore, and

- .

It follows that

Therefore,

There is a -paradoxical tournament.

### Linearity of expectation

Let be a discrete **random variable**. The expectation of is defined as follows.

**Definition (Expectation)**- The
**expectation**of a discrete random variable , denoted by , is given by - where the summation is over all values in the range of .

- The

A fundamental fact regarding the expectation is its **linearity**.

**Theorem (Linearity of Expectations)**- For any discrete random variables , and any real constants ,

- For any discrete random variables , and any real constants ,

- Hamiltonian paths

The following result of Szele in 1943 is often considered the first use of the probabilistic method.

**Theorem (Szele 1943)**- There is a tournament on players with at least Hamiltonian paths.

**Proof.**Consider the uniform random tournament on . For any permutation of , let be the indicator random variable defined as

In other words, indicates whether gives a Hamiltonian path. It holds that

Let . Clearly is the number of Hamiltonian paths in the tournament . Due to the linearity of expectation,

This is the average number of Hamiltonian paths in a tournament, where the average is taken over all tournaments. Thus some tournament has at least Hamiltonian paths.

### Independent sets

An independent set of a graph is a set of vertices with no edges between them. The following theorem gives a lower bound on the size of the largest independent set.

**Theorem**- Let be a graph on vertices with edges. Then has an independent set with at least vertices.

**Proof.**Let be a set of vertices constructed as follows: - For each vertex :
- is included in independently with probability ,

to be determined.

Let . It is obvious that .

For each edge , let be the random variable which indicates whether both endpoints of are in .

Let be the number of edges in the subgraph of induced by . It holds that . By linearity of expectation,

- .

Note that although is not necessary an independent set, it can be modified to one if for each edge of the induced subgraph , we delete one of the endpoint of from . Let be the resulting set. It is obvious that is an independent set since there is no edge left in the induced subgraph .

Since there are edges in , there are at most vertices in are deleted to make it become . Therefore, . By linearity of expectation,

The expectation is maximized when , thus

There exists an independent set which contains at least vertices.

- For each vertex :

### Coloring large-girth graphs

The girth of a graph is the length of the shortest cycle of the graph.

**Definition**Let be an undirected graph.

- A
**cycle**of length in is a sequence of distinct vertices such that for all and . - The
**girth**of , dented , is the length of the shortest cycle in .

- A

The chromatic number of a graph is the minimum number of colors with which the graph can be *properly* colored.

**Definition (chromatic number)**- The
**chromatic number**of , denoted , is the minimal number of colors which we need to color the vertices of so that no two adjacent vertices have the same color. Formally,

- .

- The

In 1959, Erdős proved the following theorem: for any fixed and , there exists a finite graph with girth at least and chromatic number at least . This is considered a striking example of the probabilistic method. The statement of the theorem itself calls for nothing about probability or randomness. And the result is highly contra-intuitive: if the girth is large there is no simple reason why the graph could not be colored with a few colors. We can always "locally" color a cycle with 2 or 3 colors. Erdős' result shows that there are "global" restrictions for coloring, and although such configurations are very difficult to explicitly construct, with the probabilistic method, we know that they commonly exist.

**Theorem (Erdős 1959)**- For all there exists a graph with and .

It is very hard to directly analyze the chromatic number of a graph. We find that the chromatic number can be related to the size of the maximum independent set.

**Definition (independence number)**- The
**independence number**of , denoted , is the size of the largest independent set in . Formally,

- .

- The

We observe the following relationship between the chromatic number and the independence number.

**Lemma**- For any -vertex graph,
- .

- For any -vertex graph,

**Proof.**- In the optimal coloring, vertices are partitioned into color classes according to the vertex color.
- Every color class is an independent set, or otherwise there exist two adjacent vertice with the same color.
- By the pigeonhole principle, there is a color class (hence an independent set) of size . Therefore, .

The lemma follows.

Therefore, it is sufficient to prove that and .

**Proof of Erdős theorem**Fix . Let be with .

For any length- simple cycle , let be the indicator random variable such that

The number of cycles of length at most in graph is

- .

For any particular length- simple cycle ,

- .

For any , the number of length- simple cycle is . By the linearity of expectation,

- .

Applying Markov's inequality,

Therefore, with high probability the random graph has less than short cycles.

Now we proceed to analyze the independence number. Let , so that

The probability that either of the above events occurs is

Therefore, there exists a graph with less than "short" cycles, i.e., cycles of length at most , and with .

Take each "short" cycle in and remove a vertex from the cycle (and also remove all adjacent edges to the removed vertex). This gives a graph which has no short cycles, hence the girth . And has at least vertices, because at most vertices are removed.

Notice that removing vertices cannot makes grow. It holds that . Thus

- .

The theorem is proved by taking sufficiently large so that this value is greater than .

The proof contains a very simple procedure which for any and *generates* such a graph with and . The procedure is as such:

- Fix some . Choose sufficiently large with , and let .
- Generate a random graph as .
- For each cycle of length at most in , remove a vertex from the cycle.

The resulting graph satisfying that and with high probability.

## Lovász Local Lemma

Consider a set of "bad" events . Suppose that for all . We want to show that there is a situation that none of the bad events occurs. Due to the probabilistic method, we need to prove that

- Case 1: mutually independent events.

If all the bad events are mutually independent, then

for any .

- Case 2: arbitrarily dependent events.

On the other hand, if we put no assumption on the dependencies between the events, then by the union bound (which holds unconditionally),

which is not an interesting bound for . We cannot improve bound without further information regarding the dependencies between the events.

We would like to know what is going on between the two extreme cases: mutually independent events, and arbitrarily dependent events. The Lovász local lemma provides such a tool.

The local lemma is powerful tool for showing the possibility of rare event under *limited dependencies*. The structure of dependencies between a set of events is described by a **dependency graph**.

**Definition**- Let be a set of events. A graph on the set of vertices is called a
**dependency graph**for the events if for each , , the event is mutually independent of all the events .

- Let be a set of events. A graph on the set of vertices is called a

- Example
- Let be a set of
*mutually independent*random variables. Each event is a predicate defined on a number of variables among . Let be the unique smallest set of variables which determine . The dependency graph is defined by- iff .

The following lemma, known as the Lovász local lemma, first proved by Erdős and Lovász in 1975, is an extremely powerful tool, as it supplies a way for dealing with rare events.

**Lovász Local Lemma (symmetric case)**- Let be a set of events, and assume that the following hold:
- for all , ;
- the maximum degree of the dependency graph for the events is , and

- .

- Then
- .

- Let be a set of events, and assume that the following hold:

We will prove a general version of the local lemma, where the events are not symmetric. This generalization is due to Spencer.

**Lovász Local Lemma (general case)**- Let be the dependency graph of events . Suppose there exist real numbers such that and for all ,
- .

- Then
- .

- Let be the dependency graph of events . Suppose there exist real numbers such that and for all ,

**Proof.**We can use the following probability identity to compute the probability of the intersection of events:

**Lemma 1**- .

**Proof.**By definition of conditional probability,

- ,

so we have

- .

The lemma is proved by recursively applying this equation.

Next we prove by induction on that for any set of events ,

- .

The local lemma is a direct consequence of this by applying Lemma 1.

For , this is obvious. For general , let be the set of vertices adjacent to in the dependency graph. Clearly . And it holds that

- ,

which is due to the basic conditional probability identity

- .

We bound the numerator

The equation is due to the independence between and .

The denominator can be expanded using Lemma 1 as

which by the induction hypothesis, is at least

where is the edge set of the dependency graph.

Therefore,

Applying Lemma 1,

To prove the symmetric case. Let for all . Note that .

If the following conditions are satisfied:

- for all , ;
- ;

then for all ,

- .

Due to the local lemma for general cases, this implies that

- .

This gives the symmetric version of local lemma.

### Ramsey number, revisited

**Ramsey number**- Let be positive integers. The Ramsey number is defined as the smallest integer satisfying:
- If , for any coloring of edges of with two colors red and blue, there exists a red or a blue .

The Ramsey theorem says that for any , is finite. The actual value of is extremely difficult to compute. We can use the local lemma to prove a lower bound for the diagonal Ramsey number.

**Theorem**- for some constant .

**Proof.**To prove a lower bound , it is sufficient to show that there exists a 2-coloring of without a monochromatic . We prove this by the probabilistic method.

Pick a random 2-coloring of by coloring each edge uniformly and independently with one of the two colors. For any set of vertices, let denote the event that forms a monochromatic . It is easy to see that .

For any -subset of vertices, and are dependent if and only if . For each , the number of that is at most , so the max degree of the dependency graph is .

Take for some appropriate constant .

Applying the local lemma, the probability that there is no monochromatic is

- .

Therefore, there exists a 2-coloring of which has no monochromatic , which means

- .