Read · 2 min
The Probabilistic Method
Introduction
(Adapted from Canada Training Materials) Sometimes, in Olympiad you might be ask to show that there exists an object with a specific property. If you're lucky, you might define an adequate object. However, this is usually hard and out of the question. This is where the probabilistic method comes in.
The Method
There are two types :
- Choose an object at random.
The basic method: Choose an object uniformly at random. This means that each object is equally likely to be picked.
Variations: You do not have to choose an object uniformly at random. You just need to describe a way of picking an object that has some randomness involved. As you will see, there are sometimes other effective ways of doing this.
- Prove that you will choose an object with the desired property with probability .
Often you will be looking for an object where some numeric quantity with value at least or at most . If you can show that the expected value of is , then there exists some case where and .
Applications
We start with a simple problem.
There are students and pair of these are enemies. Prove that one can divide the students into rooms so that there are at most pairs of enemies that are placed in the same room as each other.
Independently place each student in a random room. Now consider a fixed pair of enemies.
The probability that they will be placed in the same room is exactly . Therefore, on average, the number of pairs of enemies placed in the same room is also . In particular, there exists a configuration satisfying the problem statement.
Now, we look at a beautiful, but tougher result by Erdos in 1965.
(Erdos, 1965) A set is called sum-free if there is no triple of (not neccesary distinct) elements satisfying . Prove that every set of non-zero integers contain a subset , with cardinality larger than , which is sum-free.
Let be a prime number of the form such that is greater than the maximum absolute value of any element in . (By Dirichlet's Theorem) Also let , and note that this set is sum-free modulo . Pick uniformly at random from , and consider multiplying each element of by , modulo .
Since is large, every element in is non-zero modulo . Therefore, each element in has probability exactly of mapping into when multiplied by . Linearity of expectation then implies that the expected number of elements mapping into is . Let be the set of these elements. We know there exists some choice of for which . It remains only to show that is sum-free. Indeed, if , then since , therefore .
Conclusion : Probabilistic Method is a very powerful technique.
The canada training material can be found here. Click on Probabilistic Method to open the file.