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 :

  1. 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.

  1. Prove that you will choose an object with the desired property with probability p>0p > 0.

Often you will be looking for an object where some numeric quantity XX with value at least or at most yy. If you can show that the expected value of XX is yy, then there exists some case where X≥yX \ge y and X≤yX \le y.

Applications

We start with a simple problem.

There are nn students and mm pair of these are enemies. Prove that one can divide the students into kk rooms so that there are at most mk\frac{m}{k} 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 1k\frac{1}{k}. Therefore, on average, the number of pairs of enemies placed in the same room is also mk\frac{m}{k}. 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 SS is called sum-free if there is no triple of (not neccesary distinct) elements x,y,z∈Sx, y, z \in S satisfying x+y=zx + y = z. Prove that every set AA of non-zero integers contain a subset S⊆AS \subseteq A, with cardinality larger than ∣A∣3\frac{|A|}{3}, which is sum-free.

Let pp be a prime number of the form 3k+23k + 2 such that pp is greater than the maximum absolute value of any element in AA. (By Dirichlet's Theorem) Also let C={k+1,k+2,...,2k+1}C = \{k + 1, k + 2, . . . , 2k + 1\}, and note that this set is sum-free modulo pp. Pick rr uniformly at random from {1,2,...,p?1}\{1, 2, . . . , p ? 1\}, and consider multiplying each element of AA by rr, modulo pp.

Since pp is large, every element in AA is non-zero modulo pp. Therefore, each element in AA has probability exactly ∣C∣p−1≥13\frac{|C|}{p - 1} \ge \frac{1}{3} of mapping into CC when multiplied by rr. Linearity of expectation then implies that the expected number of elements mapping into CC is >∣A∣3> \frac{|A|}{3}. Let SS be the set of these elements. We know there exists some choice of rr for which ∣S∣≥E[∣S∣]>∣A∣3|S| \ge E[|S|] > \frac{|A|}{3}. It remains only to show that SS is sum-free. Indeed, if x,y,z∈Sx, y, z \in S, then xr+yr≢zr(modp)xr + yr \not\equiv zr \pmod{p} since xr,yr,zr∈Cxr, yr, zr \in C, therefore x+y≠zx + y \neq z.

Conclusion : Probabilistic Method is a very powerful technique.

The canada training material can be found here. Click on Probabilistic Method to open the file.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems