NOTACAL logo

It's Not a Coincidence: The Probability of the Improbable and the Formulas of the Impossible

Why do impossible coincidences keep happening? The birthday paradox, the law of truly large numbers, lottery odds, and the formulas behind luck — with worked probabilities.

Introduction

In 1989, two statisticians published a paper with a provocative title: Methods for Studying Coincidences. One of them, Persi Diaconis, had spent a decade as a professional magician before earning his doctorate in mathematics — a rare combination that let him see chance from both sides of the table. As a magician he manufactured "impossible" events on stage; as a mathematician he set out to explain why genuinely impossible events keep happening to all of us without any help. The paper's conclusion was calm and revolutionary: once you set aside coincidences that have an obvious cause, almost every remaining one can be accounted for by a handful of principles, all of them quantifiable[diaconis-mosteller].

This guide is about those principles. You probably have a favorite coincidence — the time you thought of an old friend and they called that same evening, or the stranger at a party who shares your birthday. It felt loaded with meaning, and that is precisely the point. Coincidences feel like messages because we estimate their probability wrong. We ask "what are the odds that this exact thing happened to me, today?" when the correct question is "what are the odds that some striking thing happened to someone, somewhere, at some point — and then got remembered?" The two questions have very different answers, and the difference is the whole subject of this guide.

The tools are simple and already exist on this site. The Probability Calculator turns an event into a number between zero and one; the Permutation and Combination Calculator counts how many outcomes a lottery ticket or a room full of people really contains; and the Percent Calculator converts those tiny numbers into percentages you can actually feel. Armed with those three tools, you can predict the unpredictable — or at least understand why it keeps happening.

What a Coincidence Really Is

Start with a definition precise enough to compute with. A coincidence is two or more events that feel related but are not connected by any cause we can identify. The key word is feel. The events are just events; the "coincidence" is an experience of the person who notices them. Two people meeting in a foreign city is not a magical event in the world — it is a factual event with a small but real probability. Calling it a miracle is a judgment about how surprised we should be, and that judgment is where our intuition goes wrong[diaconis-mosteller].

The mathematician's move is to replace the vague word "miracle" with a number: the probability that the event occurred by chance alone. Once you do that, a strange thing happens. The most "meaningful" coincidences — the ones that feel like destiny — turn out to be exactly the ones you cannot predict in advance. If you had been asked beforehand to guess which stranger at the party would share your birthday, you would have had one chance in 365. But you were not asked to guess anyone in particular; you were asked to notice any match at all, out of every pair in the room. The count of opportunities is the engine that drives nearly all apparent miracles, and it is the first thing this guide will make quantitative.

The crucial distinction — the one that explains most coincidence stories — is specific versus any. A specific coincidence has a fixed, named target: "I will meet John, whom I have not seen in ten years, in this airport at noon." An "any" coincidence has no target: "I will meet someone I have not seen in years, somewhere in the world, within the next month." The first may be vanishingly rare. The second is practically guaranteed. Every story that begins with "you'll never believe this happened" is, almost by definition, a story about the second kind — because the first kind is not a story anyone would think to tell.

The Birthday Paradox: The Most Famous Coincidence

The cleanest demonstration that "specific" and "any" are different is the birthday problem, a favorite of Diaconis's and the gateway to almost everything in this guide[mathworld-birthday]. The question: how many people need to be in a room before the chance that some pair of them share a birthday passes fifty percent? Most people guess a number near 183, because their intuition starts from themselves — "the chance that someone matches my birthday is one in 365, so I need a third of the year's worth of people." The actual answer is 23[wiki-birthday].

Why so low? Because the problem counts pairs, not people. With 23 people there are 253 pairs, and each pair is a separate chance of a match. The correct computation does not ask about your birthday at all; it asks about the chance that no pair matches, and then subtracts from one. The probability that a specific pair does not match is 364/365. For all 253 pairs to avoid a match, that fraction must be multiplied by itself 253 times — and repeated multiplication is far crueler than it looks. The general formula, for n people, is:

P(shared birthday)=1365364363(365n+1)365nP(\text{shared birthday}) = 1 - \frac{365 \cdot 364 \cdot 363 \cdots (365 - n + 1)}{365^n}

The table shows how fast the probability climbs as the room fills. Notice where the fifty-percent line falls.

People in the roomProbability of a shared birthday
1011.7%
2041.1%
2350.7%
3070.6%
4089.1%
5097.0%
6099.4%
The probability is already past half at just 23 people and nearly certain at 50 — because the room contains 253 pairs, not 50 individuals. Intuition anchored on a single birthday badly underestimates the chance of any birthday match.

If you want to check this against a real celebration, count the people at the next wedding or conference you attend. Past 40 attendees, a shared birthday is more likely than not, and nobody present is surprised by the coincidence when it surfaces — they are merely delighted, which is exactly what a well-behaved 89% probability looks like in the wild.

The Product Rule: Specific Versus Any

The birthday paradox is one instance of a general rule that should be carved over the door of every statistics class: the probability that at least one of several independent events occurs is one minus the probability that none of them occur. If each opportunity has a small probability p of succeeding, and there are N opportunities, then:

P(at least one)=1(1p)NP(\text{at least one}) = 1 - (1 - p)^N

This single formula is the universal coincidence generator. It explains why the specific version of your story is a miracle and the "any" version is a certainty. Consider the classic example from Diaconis and Mosteller's paper: a woman who reported dreaming about a plane crash and then reading about a real one the next day. She (and the newspapers) treated it as prophecy. The statisticians asked a different question: how many people have dreams, how many planes crash, and how many of the vast product of those two counts would be expected to line up by chance alone? The answer is not "never." It is "often enough that someone will notice and remember it every few years"[diaconis-mosteller].

The Product Rule also explains the difference between your birthday example and the room of 23. If you stand in a room of 22 strangers and ask "does anyone share my birthday?", each of the 22 is an opportunity with p = 1/365, and the chance of at least one match is about 5.9% — a memorable but unremarkable event. But if the question is "does any pair share a birthday?", the number of opportunities is no longer 22 but the count of all pairs, 253, and the probability jumps to over fifty percent. Same room, same people, two different answers — separated entirely by how you count the opportunities. Counting a space's opportunities is the same skill as counting its directions: the All the Ds guide shows how the number of coordinates in a space grows, and the Product Rule shows how the number of chances in a space grows — together they explain why both the geometry and the luck of large spaces feel so strange. This is why the Probability Calculator and the Permutation and Combination Calculator matter: they force you to state which probability you mean before you compute it.

QuestionOpportunities countedResult
Does someone share your birthday?22 (one per person)≈ 5.9%
Does any pair share a birthday?253 (all pairs)50.7%
Do you win one specific lottery draw?1 (your ticket)~1 in 292 million
Does someone, somewhere win that draw?~292 million ticketsEffectively certain
The same underlying event — a match, a win — has completely different probabilities depending on how many opportunities you count. A single ticket is nearly hopeless; a lottery with millions of tickets is a near-certainty that someone wins. The 'miracle' lives in the difference between the two questions.

The Law of Truly Large Numbers

The Product Rule becomes a philosophical hammer in the hands of Diaconis and Mosteller, who formalized what they called the law of truly large numbers: when enormous numbers of events, people, and interactions accumulate over time, almost any outrageous event is bound to occur — no hidden cause required[diaconis-mosteller]. The phrase is worth sitting with. It does not say outrageous events can occur. It says they must, given enough chances.

The mechanism is the Product Rule with N enormous. The population of the planet is about 8 billion, and each person experiences thousands of "events" a day — a glance, a memory, a phone call, a coincidence of word and circumstance. Multiply the people by the events and you are no longer in the tens, or even millions, of opportunities. You are in the hundreds of trillions per day. Feed that N into the formula with even a microscopic p and the "at least one" probability rounds to effectively one. A 1-in-a-million event is not rare when the world offers a trillion opportunities a day — it is happening thousands of times right now[wiki-truly-large]. The people generating those opportunities are themselves connected: every one of the eight billion sits inside a network of acquaintances, and the geometry of that network — a world only a few handshakes wide, where the same habit of multiplying counts keeps shrinking the distance — is the subject of the Six Degrees of Separation guide.

The table makes the mechanism visible. Each row is the chance that a fixed 1-in-a-million event occurs at least once, as the number of opportunities grows.

Opportunities (N)Chance the 1-in-a-million event occurs at least once
1,0000.1%
10,0001.0%
100,0009.5%
500,00039.3%
1,000,00063.2%
5,000,00099.3%
One million opportunities turn a 1-in-a-million event into a coin flip; five million make it a near-certainty. Multiply a small probability by a large count and the outcome is predictable. This curve is the whole argument of the law of truly large numbers.

The classic example of the law in action is the Bulgarian lottery draw of 2009, in which the same six numbers were drawn in two consecutive weeks — an event widely reported as supernatural. It was not. The probability that some lottery somewhere in the world draws the same numbers twice within a short window, given how many lotteries exist and how often they draw, is far larger than the probability attached to that specific draw. Reports of the "miracle" collapsed the two questions into one: they described the specific event, then felt the shock appropriate to it, while the relevant probability belonged to the "any" version[wiki-lottery].

Littlewood's Law: One Miracle a Month

If the law of truly large numbers is the engine, Littlewood's law is its famous corollary — an everyday estimate that makes the same point personal. The Cambridge mathematician J. E. Littlewood proposed that a "miracle" be defined as a genuinely remarkable event with odds of about one in a million, and then asked a simple question: how many events does an ordinary person experience in a day? His rough count — each of us perceives roughly one event per second during waking hours — yields about a million events per month. One in a million, a million times a month, gives an expectation of about one miracle per month, per person[wiki-littlewood].

The formula is the Product Rule again, with the units swapped. If events arrive at a rate r and each has probability p of being "miracle-class," then the expected number of miracles in time t is simply:

expected miracles=rpt\text{expected miracles} = r \cdot p \cdot t

Plug in Littlewood's numbers: a million events per month at one-in-a-million odds means the expectation is one miracle per month. That is a statement about averages, not about fate — some months will deliver several, others none, and over a long life the distribution ensures that a few extraordinary stories accumulate. When a colleague insists that "miracles happen to some people," the statistical reply is that miracles happen to everyone, at roughly the rate arithmetic demands[wiki-littlewood].

The subtlety — and the part that feeds the sensation of the supernatural — is that we do not experience the whole distribution. We remember the miracles and forget the thousands of ordinary events surrounding them. Your life produces a steady drip of one-in-a-million moments; the rest of the million are forgettable, so you file only the exceptional ones. This asymmetry is the psychological half of the coincidence machine, and it is exactly the piece that the Percent Calculator can rescue: state the probability as a number, and the emotional fog lifts.

The Lottery: When "Impossible" Is Literal

Lotteries are the commercial exploitation of the difference between "specific" and "any." A lottery ticket is a bet on a specific outcome: your exact set of numbers, at one exact draw. The probability of winning the Powerball jackpot is about 1 in 292 million — computed by counting the combinations of 5 balls from 69, multiplied by the 26 possible Powerballs:

P(jackpot)=1(695)261292,201,338P(\text{jackpot}) = \frac{1}{\binom{69}{5} \cdot 26} \approx \frac{1}{292{,}201{,}338}

To feel how small that is, compare it against events people routinely call rare. Being dealt a royal flush, being struck by lightning in a lifetime, or making a hole-in-one are each thousands of times more likely than winning the jackpot. The table puts them side by side.

EventApproximate odds
Four of a kind in five-card poker1 in 4,165
Hole in one (amateur, lifetime)1 in 12,000
Struck by lightning (lifetime, US)1 in 15,300
Royal flush in five-card poker1 in 649,740
Powerball jackpot1 in 292,201,338
Even a royal flush — itself a lifetime rarity — is 450 times more likely than a Powerball jackpot. The chart's scale breaks because the jackpot is a different universe of odds; that break is the point. Lottery odds are not 'very unlikely,' they are effectively impossible for any single ticket.

Yet here is the paradox that keeps lottery advertising alive: the probability that someone wins is nearly one. When a jackpot is won, the news treats it as proof that the impossible happens. In fact it is proof of the law of truly large numbers — tens of millions of tickets, each a separate opportunity, collectively guarantee a winner[wiki-lottery]. The Permutation and Combination Calculator will happily count the combinations for you; the arithmetic does not care how badly you want the numbers to favor you.

Why We Notice: Confirmation Bias and the Frequency Illusion

The statistics explain how often coincidences should occur. A second, psychological layer explains why the ones that do occur feel so meaningful — and why we systematically overcount them. The first force is confirmation bias: we preferentially notice and remember evidence that fits what we already suspect. If you believe your friend's call was a sign, you catalog the calls that land on the day you thought of them and discard the dozens that did not[wiki-confirmation-bias]. The memory is not dishonest — it is just selective, and selection is the statistical equivalent of counting only the successful opportunities.

The second force is the frequency illusion (sometimes called the Baader–Meinhof phenomenon): once you learn a new word, or a new fact, you start seeing it everywhere, and interpret the sudden abundance as a coincidence. Diaconis and Mosteller gave this a mathematical home, modeling how a newly learned word appears with increasing frequency in the pages you read — and showing that the rate of "coincidental" encounters is exactly what the model predicts, with no hidden agency[diaconis-mosteller].

The third is the gambler's fallacy, the belief that chance "corrects" itself — that after a string of reds, black is due. It is the mirror image of the coincidence intuition: one assumes the universe keeps score in specific outcomes, the other assumes it sends messages in them. Both share the same root error, a confusion between the aggregate law (which reliably produces predictable totals over millions of trials) and the individual trial (which is memoryless). The next coin flip has the same probability regardless of the ten before it[wiki-gamblers-fallacy].

None of this diminishes the experience of a coincidence. The point of studying the machinery is not to make the world dull — it is to make it legible. A shared birthday at a party, a dream that seems to foretell the news, a friend's call out of nowhere: each is a genuine, real, human event. What probability gives you is the ability to enjoy them without misreading them as evidence of hidden forces, and to estimate correctly how surprised you are entitled to be.

Common Misconceptions

  • "That coincidence is one in a million, so it can't happen." It can, and repeatedly does — a one-in-a-million event occurs, on average, once per million opportunities, and your life contains far more than a million opportunities.
  • "The odds of the lottery jackpot and the odds of 'someone winning' are the same." They are not. A single ticket is ~1 in 292 million; a nationwide draw with millions of tickets is near-certain to produce a winner. The news reports the second while you feel the first.
  • "Chance has a memory and owes me a win." It does not. Each draw, each coin flip, is independent; the gambler's fallacy treats the average of millions of trials as if it were a promise to the next single trial.
  • "A coincidence I noticed proves a connection." It proves only that an unlikely-but-possible event occurred and you noticed it. Every coincidence story is, by construction, a story about the one event that matched, not the thousands that did not.
  • "Miracles only happen to lucky people." Littlewood's arithmetic assigns everyone about one miracle-class event per month. What differs is attention and memory, not the underlying rate.
  • "If I compute the odds and they're tiny, it must be supernatural." The correct computation for a specific event is tiny; the correct computation for any event of that kind, anywhere, among everyone, is usually large. Using the wrong one manufactures mystery.

Frequently Asked Questions

Why do 23 people give a 50% chance of a shared birthday?
Because the problem counts pairs, not people. Twenty-three people form 253 pairs, and each pair has a 1/365 chance of matching. The chance no pair matches is 364/365 multiplied by itself 253 times, which leaves a 50.7% chance that at least one pair shares a birthday.
What is the difference between a specific and an any coincidence?
A specific coincidence has a fixed target ('this exact person, this exact place'), so its probability is tiny. An 'any' coincidence has no target ('some surprising thing, somewhere'), so its probability is huge because it counts every opportunity. Most coincidence stories are 'any' stories told with the shock of the 'specific' version.
What is the law of truly large numbers?
The principle, formalized by Diaconis and Mosteller, that when enormous numbers of events accumulate, almost any outrageous event is bound to occur by chance alone. With trillions of daily opportunities worldwide, even one-in-a-million events happen constantly.
What is Littlewood's law?
The Cambridge mathematician J. E. Littlewood argued that if a miracle is a one-in-a-million event, and an ordinary person experiences about a million events per month, then everyone should expect about one miracle per month — with no supernatural cause required.
What are the real odds of winning the Powerball jackpot?
About 1 in 292,201,338, computed as 1 divided by (69 choose 5, times 26). It is roughly 450 times harder than being dealt a royal flush in poker, yet someone wins almost every time because millions of tickets create millions of independent opportunities.
Why do coincidences feel so meaningful?
Because of confirmation bias (we remember the matches and forget the misses) and the frequency illusion (newly noticed things seem to appear everywhere). The events are real, but their perceived frequency is inflated by selective attention.
Does a coincidence prove a hidden connection?
No. A coincidence is an event with a small but real probability that occurred and was noticed. Unless there is independent evidence of a causal link, probability theory explains it with no hidden forces.
Is the gambler's fallacy the same as a lucky streak?
No. A lucky streak is a run of outcomes that happens to match your prediction; the gambler's fallacy is the false belief that the streak must reverse to 'balance' the odds. Independent trials have no memory, so past results never change the next trial's probability.
How can I stop being fooled by coincidences?
State the probability explicitly and ask which question you are really asking: this exact event, or any event of this kind? Use the Probability Calculator to make the number concrete, and remember to count all the opportunities, not just the ones that matched.
Are coincidences ever genuinely impossible?
No. Any event with a nonzero probability can occur. The interesting question is always how many opportunities existed. When the number of opportunities is large, events with astronomically small individual probabilities become, in aggregate, expected.

References

  1. [1]Wikipedia. (2026). Birthday problem.
  2. [2]Weisstein, E. W. (n.d.). Birthday Problem. Wolfram MathWorld.
  3. [3]Diaconis, P., & Mosteller, F. (1989). Methods for Studying Coincidences. Journal of the American Statistical Association, 84(408), 853–861.
  4. [4]Wikipedia. (2026). Law of truly large numbers.
  5. [5]Wikipedia. (2026). Littlewood's law.
  6. [6]Wikipedia. (2026). Lottery mathematics.
  7. [7]Wikipedia. (2026). Confirmation bias.
  8. [8]Wikipedia. (2026). Gambler's fallacy.
  9. [9]Hand, D. J. (2014). The Improbability Principle: Why Coincidences, Miracles, and Rare Events Happen Every Day. Scientific American / Farrar, Straus and Giroux.Buy on Amazon
Give us your feedback! Was this useful?
1b

UnByte — Independent Software Engineering

All reference data cites its sources — Editorial policy