ProbabilisticMethod 7
ProbabilisticMethod 7
ProbabilisticMethod 7
Obviously,
S = S 1 + S 2 + · · · + Sn .
Moreover, it is easy to see that E[Si ] = P(Si = 1) = n1 for each i: if we look at any
particular person, the probability they get their own name tag is simply n1 . Therefore,
1 1 1
E[S] = E[S1 ] + E[S2 ] + · · · + E[Sn ] = + + · · · + = 1.
n
| n {z n
}
n times
Now that was a lot easier! By working in the context of expected value, we get a
framework where the “double-counting” idea is basically automatic. In other words,
linearity of expectation lets us only focus on small, local components when computing an
expected value, without having to think about why it works.
3
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
We seek E[X1 + X2 + · · · + X2006 ]. Note that any particular baby has probability 1 2
2 = 1
4
of being unpoked (if both its neighbors miss). Hence E[Xi ] = 14 for each i, and
1 1003
E[X1 + X2 + · · · + X2006 ] = E[X1 ] + E[X2 ] + · · · + E[X2006 ] = 2006 · = .
4 2
Seriously, this should feel like cheating.
4
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
This problem doesn’t “feel” like it should be very hard. After all, there’s only a total
of n2 possible edges, so having n2 n + 1 edges means we have practically all edges
present.3
So let’s be really careless and just randomly pair off one set of points with the other,
regardless of whether there is actually an edge present. We call the score of such a pairing
the number of pairs which are actually connected by an edge. We wish to show that
some pairing has score n, as this will be the desired perfect matching.
So what’s the expected value of a random pairing? Let v1 , . . . , vn be the n vertices on
the left. For each i, let4 ,
(
def 1 if the pair with vi has an edge
Xi =
0 otherwise.
deg vi
Then the score of the configuration is X = X1 +X2 +· · ·+Xn . Now we have E[Xi ] = n ,
so
E[X] = E[X1 ] + · · · + E[Xn ]
2
For a phrasing of the problem without graph theory: given n red points and n blue points, suppose we
connect at least n2 n + 1 pairs of opposite colors. Prove that we can select n segments, no two of
which share an endpoint.
3
On the other hand, n2 n + 1 is actually the best bound possible. Can you construct a counterexample
with n2 n?
4
Thanks to D. Grozev for a correction here
5
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
Lemma 3.2
For any positive integers n and k,
✓ ◆
n 1 ⇣ en ⌘k
< .
k e k
Proof. Do n
k < nk
k! and then use calculus to prove that k! e(k/e)k . Specifically,
Z k
ln 1 + ln 2 + · · · + ln k ln x dx = k ln k k + 1
x=1
Algebra isn’t much fun, but at least it’s easy. Let’s get back to the combinatorics.
Remark. In the language of Ramsey numbers, prove that R(k, k) > 2k/2 .
Solution. Again we just randomly color the edges and hope for the best. We use a coin
flip to determine the color of each of the n2 edges. Let’s call a collection of k vertices
bad if all k2 edges are the same color. The probability that any collection is bad is
✓ ◆( k ) 1
1 2
.
2
The number of collections in n
k , so the expected number of bad collections is
n
E[number of bad collections] = k
.
2( 2 )
k
1
We just want to show this is less than 1. You can check this fairly easily using Lemma 3.2;
in fact, we have a lot of room to spare.
6
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
Here, triangle-free just means there are no three vertices which are all adjacent to each
other.5 Another phrase for this is locally sparse.
Our first move is to try and replace the “average degree” d with “maximum degree”
. Here’s the trick: notice that at most half of the vertices have degree greater than 2d.
So if we throw away these vertices, we still have half the vertices and left, and now the
maximum degree is 2d. If we let n = N /2, then we just need an independent set of
size 0.04 n log in our new graph.
So now we have n vertices with maximum degree . Here’s the trick: consider all
possible independent sets, and pick one set S uniformly at random (!). For this set S, we
define a score X as follows:
+1
+1
+
+ +2
+1
Figure 2: Assigning scores. The elements of S are the large red vertices.
5
If you’re familiar with the notation R(m, n), here’s some food for thought: what’s the connection between
this and R(3, t)?
7
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
Neighbors
v ...
Suppose we’re selecting an independent set, and we’re done selecting everything aside
from v and its neighbors. We’ll prove that regardless of how the stuff outside is chosen,
E[Xv ] 0.08 log still holds. Assume that, not including v, there are m other vertices in
the neighborhood which we can still pick (i.e. they are not adjacent to anything outside
that has been selected).
There are a few ways we can pick the remaining set:
• We can pick v, but then we can no longer pick any of its neighbors.
• We can pick any nonempty subset of the m remaining vertices, but then we can no
longer pick v.
It remains to prove this is at least 0.08 log . You can check this, because if m 1
log2 ,
p 2
then 14 m is enough; otherwise, 2m which is certainly sufficient.
a1 a2 + a2 a3 + · · · + an a1 < 0.
Problem 3.7 (Russia 1996). In the Duma there are 1600 delegates, who have formed
16000 committees of 80 people each. Prove that one can find two committees having no
fewer than four common members.
8
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
§4 Heavy Machinery
Here are some really nice ideas used in modern theory. Unfortunately I couldn’t find
many olympiad problems that used them. If you know of any, please let me know!
§4.1 Alteration
In previous arguments we often proved a result by showing E[bad] < 1. A second method
is to select some things, find the expected value of the number of “bad” situations, and
subtract that off. An example will make this clear.
9
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
Proof. Consider each of the n2 intersection of two lines. One can check it is the vertex
of at most two triangles. Since each triangle has three vertices, this implies there are at
most 23 n2 < 13 n2 triangles.
12
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
Problem 6.2 (Romania 2004). Prove that for any complex numbers z1 , z2 , . . . , zn ,
satisfying |z1 |2 + |z2 |2 + · · · + |zn |2 = 1, one can select "1 , "2 , . . . , "n 2 { 1, 1} such that
n
X
"k zk 1.
k=1
Problem 6.3 (Shortlist 1999 C4). Let A be a set of N residues (mod N 2 ). Prove that
there exists a set B of of N residues (mod N 2 ) such that A + B = {a + b|a 2 A, b 2 B}
contains at least half of all the residues (mod N 2 ).
Problem 6.4 (Iran TST 2008/6). Suppose 799 teams participate in a round-robin
tournament. Prove that one can find two disjoint groups A and B of seven teams each
such that all teams in A defeated all teams in B.
Problem 6.5 (Caro-Wei Theorem). Consider a graph G with vertex set V . Prove that
one can find an independent set with size at least
X 1
.
deg v + 1
v2V
Remark. Note that, by applying Jensen’s inequality, our independent set has size at least
d+1 , where d is the average degree. This result is called Turán’s Theorem (or the
n
complement thereof).
(If A is the empty set, then SA = 0.) Prove that for any positive number , the number
of sets A satisfying SA is at most 2n 3 / 2 . For which choices of x1 , x2 , . . . , xn ,
does equality hold?
Problem 6.7 (Online Math Open, Ray Li). Kevin has 2n 1 cookies, each labeled with
a unique nonempty subset of {1, 2, . . . , n}. Each day, he chooses one cookie uniformly at
random out of the cookies not yet eaten. Then, he eats that cookie, and all remaining
cookies that are labeled with a subset of that cookie. Compute the expected value of the
number of days that Kevin eats a cookie before all cookies are gone.
Problem 6.8. Let n be a positive integer. Let ak denote the number of permutations of
n elements with k fixed points. Compute
a1 + 4a2 + 9a3 + · · · + n2 an .
Problem 6.9 (Russia 1999). In a certain school, every boy likes at least one girl. Prove
that we can find a set S of at least half the students in the school such that each boy in
S likes an odd number of girls in S.
Problem 6.10 (Sperner). Consider N distinct subsets S1 , S2 , . . . , SN of {1, 2, . . . , n}
such that no Si is a subset of any Sj . Prove that
✓ ◆
n
N ⌅1 ⇧ .
2n
15
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
Problem 6.11. Let n be a positive integer. Suppose 11n points are arranged in a circle,
colored with one of n colors, so that each color appears exactly 11 times. Prove that one
can select a point of every color such that no two are adjacent.
Problem 6.12 (Sweden 2010, adapted). In a town with n people, any two people either
know each other,por they both know someone in common. Prove that one can find a
group of at most n log n + 1 people, such that anyone else knows at least one person in
the group.
Problem 6.13 (Erdös). Prove that in any set S of n distinct positive integers we can
always find a subset T with 13 n or more elements with the property that a + b 6= c for
any a, b, c 2 T (not necessarily distinct).
Problem 6.14 (Korea 2016). Let U be a set of m triangles. Prove that there exists a
subset W ✓ U with at least 0.45m0.8 triangles, with the following property: there are no
points A, B, C, D, E, F for which ABC, BCD, CDE, DEF , EF A, F AB are all in W .
§7 Solution Sketches
2.4 Answer: 9.1. Make an indicator variable for each adjacent pair.
2.5 Answer: 360. Pick a, b, c randomly and compute E[0.abc]. Then multiply by |S|.
2.8 Answer: 1866. Show that one can replace + or - buttons with STOP. Show that one
can replace 1 and 3 buttons with 2. Let p = 35 . Compute 2(p + 10p2 + · · · + 104 p5 ).
3.5 Suppose there are n people, and decide each edge with a coin flip. Compute the
expected number of 1000-subsets for which there is no one better than all. Check that
this is less than 1 for very large n.
3.6 Show that a random permutations has expected value at most 0. Why are the
inequalities strict?
3.7 Let ni be the number of committees which the ith delegate is in. Pick two committees
randomly and find the expected value
P ofnithe number of common members. Use Jensen’s
inequality to get a lower bound on 2 .
16
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
6.1 Pick the contestants randomly. Find the expected number of problems both miss.
6.2 Select each of the "i randomly with a coin flip. Square the left-hand side and use
the fact that |z|2 = zz for any z.
6.3 Randomly selecting B works; you can even permit repeated elements in B. You may
need the inequality 1 n1 1e .
n
6.4 Let dk be the number of teams which defeat the kth team (here 1 k 799). Select
A randomly and compute the expected number of teams dominated by everyone in A.
You need Jensen on the function x7 .
6.5 Use the following greedy algorithm – pick a random vertex, then delete it and all its
neighbors. Repeat until everything is gone.
6.7 The number of days equals the number of times a cookie is chosen. Compute the
probability any particular cookie is chosen; i.e. the expected value of the number of times
the cookie is chosen. Sum up.
6.8 For a random permutation let X be the number of fixed points. We already know
E[X] = 1. Compute E[ X2 ]. Use this to obtain E[X 2 ].
6.9 Use a coin flip to decide whether to select each girl, then take as many boys as
possible. Show that any person, girl or boy, has exactly a 50% chance of being chosen.
; = T0 ⇢ T1 ⇢ T2 ⇢ · · · ⇢ Tn = {1, 2, . . . , n}.
6.12 If any vertex has small degree, p then its neighbors are already the desired set. So
assume all degrees are greater than n log n. Pick each person with probability p for
some well-chosen p; then we expect to pick np people. Show that the probability someone
fails is less than n1 and use a union bound. The inequality 1 p e p is helpful.
6.13 Work modulo a huge prime p = 3k + 2. Find a nice sum-free (mod p) set U of size
k + 1 first, and then consider Un = {nx | x 2 U } for a random choice of n. Compute
E[|S \ Un |].
6.14 Fix U and use alteration. Add a triangle to W with probability p, then for every
bad 6-tuple contained in W , delete one of the triangles from W .
17
Evan Chen《陳誼廷》 — 11 August 2014 Expected Uses of Probability
References
[1] pythag011 at http://www.aops.com/Forum/viewtopic.php?f=133&t=481300
[3] Problem 6 talk (c > 1) by Po-Shen Loh, USA leader, at the IMO 2014.
Thanks to all the sources above. Other nice reads that I went through while preparing
this, but eventually did not use:
1. Alon and Spencer’s The Probabilistic Method. The first four chapters are here:
http://cs.nyu.edu/cs/faculty/spencer/nogabook/.
2. A MathCamp lecture that gets the girth-chromatic number result:
http://math.ucsb.edu/~padraic/mathcamp_2010/class_graph_theory_probabilistic/
lecture2_girth_chromatic.pdf
18