The Chance That Random Points Fit in a Semicircle
A classic circle puzzle: scatter n points at random on a circle's edge, and find the probability all of them fall within some semicircle — solved with a clean 'pick each point as the pivot' symmetry argument.
Prerequisites: Geometric Probability Puzzles
Scatter points independently and uniformly at random on the circumference of a circle. What's the probability that all points lie within some semicircle (a half-circle arc doesn't have to be fixed in advance — any half-circle that happens to contain everyone counts)? For this is a well-known interview question, and the clean way to solve it generalizes instantly to any .
The pivot trick
Instead of trying to describe "some semicircle contains all the points" directly — which is awkward because the semicircle's position is itself unknown — flip the question around: for each point, ask whether the semicircle starting at that point and going clockwise contains all the other points. If all points fit in some semicircle, exactly one of them must be the "leading edge" — the point such that going clockwise a half-turn from it sweeps up every other point. This reframes the event in terms of each point taking a turn as the pivot.
For a fixed point acting as the pivot, the other points each independently need to land within the clockwise half-circle starting at the pivot — each has probability of doing so, independently, since the points are uniform and a semicircle is exactly half the circumference. So the chance that a specific point is a valid pivot (all others clockwise-following it within a half turn) is .
Why you can just add the probabilities
Here's the key structural fact: for any given random configuration of points on a circle, at most one point can be a valid pivot — if the whole set already fits in a semicircle, there's a unique "first" point at the counterclockwise edge of that arc, and no other point can also be a valid clockwise-starting pivot for the same fit. Because these events (point 1 is the pivot, point 2 is the pivot, ..., point is the pivot) are mutually exclusive, the probability that some point is a valid pivot is just their sum:
In plain English: there are candidates for "the point that starts the arc," each with an independent chance of actually working, and since only one can ever work at a time, you just add up the chances.
Worked example: points
. So three random points on a circle land within some semicircle 75% of the time — higher than most people's gut guess, because "some semicircle, wherever it happens to be" is a much easier target than "a fixed semicircle chosen in advance."
Worked example: points
. As grows, cramming every point into a shrinking effective target gets harder fast: the probability decays exponentially in (the in the denominator dominates the linear in the numerator), so by the chance is already down to .
What this means in practice
The pivot trick — reframe a "does some arrangement exist" probability as "exactly one of n candidates succeeds," then sum mutually exclusive probabilities — is a reusable move for circular or cyclic interview questions (seating arrangements, coverage problems, "is there a majority direction" questions), and it avoids the much messier direct approach of integrating over the semicircle's unknown starting angle.
For points scattered uniformly on a circle, the probability all of them fit within some semicircle is , derived by noting exactly one point can be the "pivot" that starts the containing arc, so the per-point probabilities of are mutually exclusive and simply add.
Related concepts
Practice in interviews
Further reading
- Feller, An Introduction to Probability Theory, vol. 1, ch. 1