Infinite Monkeys and Typewriters: Why the Most Famous Math Metaphor is Technically Wrong

Infinite Monkeys and Typewriters: Why the Most Famous Math Metaphor is Technically Wrong

You’ve heard the one about the monkey with a typewriter, right? If you put a primate in a room with a keyboard and gave it enough time—we’re talking billions of years here—it would eventually peck out the complete works of William Shakespeare. It sounds poetic. It’s a staple of pop culture, referenced in everything from The Simpsons to The Hitchhiker's Guide to the Galaxy. But honestly, if you look at the actual math and the few times people tried to do this for real, the whole "Infinite Monkey Theorem" starts to fall apart in some pretty hilarious ways.

The idea is basically a lesson in probability. It tells us that something with a non-zero chance of happening becomes a certainty if you have enough trials. Math. That's all it is. But people treat it like a philosophy.

Where did the monkey with a typewriter actually come from?

Most people think this is some ancient proverb, but it’s relatively modern. The French mathematician Émile Borel popularized the concept in 1913 in his book Mécanique Statistique. He wasn't actually talking about animals or literature. He was trying to illustrate how incredibly unlikely it is for certain physical laws to be violated on a macroscopic scale. He used the "typing monkeys" as a metaphor for "extreme improbability."

He called them "he-monkeys." Oddly specific.

Later, the concept got tied to the heat death of the universe and the laws of thermodynamics. The core thought experiment relies on the idea of infinity. If you have infinite time, even the most absurdly low-probability event—like a monkey hitting the keys $s, h, a, k, e, s, p, e, a, r, e$ in that exact order—has to happen.

The math is more terrifying than you think

Let's get real for a second. The odds are bad. Like, "worse than you can possibly imagine" bad. A standard typewriter has about 44 keys. If a monkey is just hitting keys at random, the chance of it typing the first word of Hamlet ("Who's") is already astronomical.

To type just the word "Hamlet"—six letters—the probability is $1$ in $44^6$. That’s about $1$ in $7.26$ billion.

That’s just one word.

Hamlet has about 30,000 words. When you start calculating the odds of an entire play, the number of zeros in the probability is so large that it exceeds the number of atoms in the observable universe. In fact, if every atom in the universe was a monkey, and they all typed from the Big Bang until today, they wouldn’t have even finished the first page.

That time scientists actually tried it (it went poorly)

In 2003, researchers from the University of Plymouth actually put this to the test. They didn't have infinite monkeys, obviously. They had six. Celebes crested macaques. They left a computer keyboard in their enclosure at Paignton Zoo in Devon, England, for a month.

What happened?

They didn't write Shakespeare. They didn't even write a sentence. Mostly, the lead male (named Elmo) took a rock and started bashing the keyboard. After that, the other monkeys mostly just used it as a bathroom. When the "data" was eventually recovered, the monkeys had produced about five pages consisting almost entirely of the letter "S."

🔗 Read more: Uber is On the Way: How Real-Time Tracking Changed the Way We Move

They also hated the letter "A" for some reason.

This experiment proved a vital point that the math forgets: monkeys aren't random number generators. They have preferences. They get bored. They poop on things. Real-world biology ruins the "perfect randomness" required for the theorem to work.

Recent research says it's officially impossible

In late 2024, two Australian mathematicians, Stephen Woodcock and Jay Falletta, published a study that basically killed the dream. They decided to look at the theorem through the lens of the actual lifespan of our universe, rather than "infinity."

Infinity is a long time. The universe, however, has a deadline.

They calculated that even if we recruited every single chimpanzee on Earth and had them type at a rate of one key per second until the heat death of the universe, the chance of them typing even a single book is effectively zero. They wouldn't even get through The Cat in the Hat.

We usually use the "monkey with a typewriter" to explain how anything is possible. These researchers proved that, within the constraints of our reality, almost nothing is.

Why this still matters for AI and Technology

You might wonder why we’re still talking about this. Well, look at Large Language Models (LLMs) like the ones we use today. In a way, they are the "infinite monkeys" realized.

But there's a catch.

An AI doesn't type randomly. It uses "weighted" probabilities. It knows that after the word "To," the word "be" is much more likely than "xyzzy." This is why AI can write a sonnet in three seconds while a room full of macaques just breaks the equipment.

The "monkey with a typewriter" illustrates the difference between randomness and intelligence.

  • Randomness: Takes trillions of years to produce a coherent sentence.
  • Weighted Probability (AI): Produces "human-like" text by predicting the next logical step.
  • Creativity: Actually understands why the words matter.

The Actionable Takeaway

If you're using the monkey metaphor in a business meeting or a paper, stop using it to mean "anything can happen." Start using it to explain the scale of complexity.

  1. Acknowledge the Scale: Understand that "unlikely" and "impossible" are different in math, but often the same in practice.
  2. Focus on Intent: If you want a specific outcome (like a great piece of writing or a successful project), don't rely on "enough trials." Randomness is a terrible strategy.
  3. Check your "Infinities": When someone says "given enough time, we’ll solve this," ask them if they mean "Borel's Monkey" time or "Human" time. The distinction matters.

The universe isn't long enough for a monkey to write Macbeth. If you want something done, you're going to have to actually write it yourself. No shortcuts, no primates, just work.