Discrete Mathematics and Combinatorics

The Probabilistic Method, Proving Things Exist by Random Choice

Learn how flipping coins on paper proves that objects with special properties exist, even when nobody can point to one.

Key takeaways

  • If a randomly chosen object has a desired property with positive probability, then an object with that property exists.
  • The expected value of a quantity guarantees an outcome at least that large and an outcome at most that large.
  • Adding the probabilities of all bad events gives a simple test: if the sum is below 1, some choice avoids every one of them.
  • Altering a random object to repair a few flaws often beats insisting that it be perfect from the start.
  • The method proves existence without necessarily giving an efficient way to find the object.

The probabilistic method proves that something exists by choosing an object at random and showing that it has the property you want with probability greater than zero. If a random pick can succeed, at least one successful choice must be there. No construction is needed.

The conclusion is completely certain. Randomness is only a tool inside the argument, and the theorem at the end says flatly that such an object exists. Paul Erdős did more than anyone to turn this idea into a standard technique, starting in the 1940s.

Two basic principles

Positive probability. Say you pick an object from a finite collection at random. If the chance of getting a good one is more than zero, the collection contains a good one.

Averages. If the average score over all objects is 7, then some object scores at least 7 and some scores at most 7. In probability language the average is the expected value.

Expected values are especially convenient because they add. The expected value of a sum equals the sum of the expected values, whether or not the parts are independent. See expected value for the basics.

Cutting at least half the edges

Take any network with m edges. Can you split its points into two teams so that at least half the edges run between teams?

Flip a fair coin for each point to choose its team. A given edge runs between teams exactly when its two ends get different results, which happens with probability 1/2. By additivity, the expected number of crossing edges is m/2. So some assignment achieves at least m/2.

That is the entire proof, and it works for every network, however tangled.

Many winning lines in a tournament

In a round-robin tournament, a complete winning line orders all n players so that each beat the next. Decide every match by a coin flip. A particular ordering works if n − 1 specific matches all go the right way, with probability (1/2) raised to the power n − 1. There are n! orderings, so

expected number of complete lines = n! / 2^(n−1)
for n = 10:  3,628,800 / 512 = 7,087.5

So some 10-player tournament has at least 7,088 complete lines. T. Szele used this reasoning in the 1940s, in what is often cited as one of the first uses of the method. Background is in tournaments and directed graphs.

Avoiding every bad event

The union bound says the probability that at least one of several events happens is no more than the sum of their probabilities. If that sum is less than 1, there is a positive chance that none happens.

Erdős applied this to a coloring question in 1947. Color each line among n points red or blue by coin flip. Call a group of k points bad if all its lines match. A group has k(k − 1)/2 lines, so it is bad with probability 2 × (1/2) raised to that power. If

(number of groups of k points) × 2^(1 − k(k−1)/2) < 1

then some coloring has no one-color group of size k. Try k = 10. A group has 45 lines, so the condition reads C(n, 10) < 2⁴⁴, where C(n, 10) counts the groups. For n = 100, C(100, 10) is about 1.73 × 10¹³, while 2⁴⁴ is about 1.76 × 10¹³. The condition holds, though only just.

So there is a coloring of all the lines among 100 points with no one-color group of 10. Yet writing down an explicit rule that matches the strength of random colorings has proved very difficult. The setting is Ramsey theory.

A union bound worked to the end

Can there be a round-robin tournament in which every pair of players was beaten by some third player? Take n players and decide each match by a coin flip.

  1. Fix a pair. A particular outsider beats both with probability 1/4, so fails to with probability 3/4.
  2. The n − 2 outsiders involve separate matches, so the chance that all of them fail is (3/4) raised to the power n − 2.
  3. There are n(n − 1)/2 pairs. By the union bound, the chance that some pair is left unbeaten is at most the product of these two figures.
n = 20:  190 × (3/4)^18 ≈ 1.07     not below 1, no conclusion
n = 21:  210 × (3/4)^19 ≈ 0.89     below 1, so such a tournament exists

A hand-built example with only 7 players has the same property, so the random argument is far from sharp here. Its strength is that it carries over to groups of any size k with no new idea. Just replace 3/4 by 1 − 1/2ᵏ and count groups instead of pairs. Constructing explicit examples for large k takes much more work.

Notice what the failed line for n = 20 means. A bound above 1 does not show that no tournament exists. It only says this particular estimate is too weak to decide.

Repair after sampling

Sometimes a random object is almost right, and you fix it. This is called the alteration method.

An independent set is a group of points with no edges among them. Suppose a network has n points and average degree d, at least 1, so it has nd/2 edges. Keep each point with probability 1/d.

  1. The expected number of points kept is n/d.
  2. An edge survives only if both ends are kept, with probability 1/d². The expected number of surviving edges is (nd/2) × 1/d² = n/(2d).
  3. Delete one endpoint from each surviving edge. What remains has no edges.
  4. The expected size is at least n/d − n/(2d) = n/(2d).

Therefore every such network has an independent set of at least n/(2d) points. With 1,000 points of average degree 10, that guarantees 50.

The alteration method for independent sets
1 Sample Keep each point with probability 1/d. 2 Count in expectation About n/d points and n/(2d) edges remain. 3 Repair Remove one endpoint of each remaining edge. 4 Conclude Some choice leaves at least n/(2d) unlinked points. Sample Keep each point with probability 1/d. 1 Count in expectation About n/d points and n/(2d) edges remain. 2 Repair Remove one endpoint of each remaining edge. 3 Conclude Some choice leaves at least n/(2d) unlinked points. 4

Better methods give n/(d + 1), but the point is how little work this takes.

When bad events barely interact

The union bound fails if there are very many bad events, even if each is unlikely. The Lovász local lemma, published by Erdős and László Lovász in the mid-1970s, rescues many such cases. In its symmetric form: suppose each bad event has probability at most p and depends on at most d of the others. If e × p × (d + 1) ≤ 1, where e ≈ 2.718, then with positive probability no bad event occurs.

The total number of events does not appear. Only local interaction matters. A typical use shows that a logical formula can be satisfied when each clause is long and shares variables with only a limited number of other clauses.

Concentration: when the average is typical

Often you need more than existence. If a random quantity stays close to its expected value almost all the time, then a typical object, not just a rare one, behaves that way. Markov's and Chebyshev's inequalities are the first tools for showing this, and sharper bounds apply to sums of independent pieces.

Concentration drives the study of random graphs, where properties tend to appear sharply.

From existence to algorithms

If good objects are common, you can find one by sampling and checking, provided checking is fast. That is the idea behind many randomized algorithms.

Sometimes you can remove the randomness. In the team-splitting problem, place points one at a time, each on the side opposite the majority of its already placed neighbors. Each step cuts at least half of the new edges, so the final split cuts at least m/2. This is the method of conditional expectations in a simple form.

For the local lemma, good objects can be exponentially rare, so blind sampling fails. Robin Moser and Gábor Tardos showed around 2009 that a simple rule, repeatedly resampling the variables of some violated condition, finds a solution quickly under suitable hypotheses.

Common misconceptions

  • "The result is only probably true." The theorem is certain. This differs from probabilistic tests, which accept a small chance of error.
  • "A random example will always work." Positive probability can be tiny.
  • "Linearity needs independence." Expected values add in all cases. Probabilities of several events multiply only under independence.
  • "It works only on finite sets." Versions apply to infinite settings, with care over measure.

Writing your own argument

A short checklist covers most first proofs of this kind:

  • Say exactly what is chosen at random and with what probabilities.
  • Name the bad events, or the quantity whose average you will compute.
  • Break that quantity into simple yes-or-no counts, one per edge, pair or group, so that expected values can be added.
  • Find the final inequality and check that it points the right way.
  • Finish with the deterministic statement: "therefore there exists."

Common questions

How do I choose the random model?

Start with the simplest, usually independent fair coins. If the bound is weak, bias the coins and choose the probability that optimizes the final inequality, as the choice of 1/d did above.

Where else is it used?

Beyond combinatorics it appears in number theory, geometry, analysis, coding theory and computer science. Claude Shannon's proof that good error-correcting codes exist used random codes.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 45 articles in Discrete Mathematics and Combinatorics →

Latest news on this topic