Could A Monkey Randomly Pounding Keys Type Out Shakespeare?

Excited for the August 21 eclipse? Visit our Eclipse 2017 page to explore the science, history, and myths of the event. The Curiosity team will be viewing the eclipse alongside NASA in Carbondale, Illinois. Follow us on Facebook for live videos, trivia, and interviews on the big day.

Put one million monkeys with typewriters inside a spaceship that travels for 10 billion years. By the end of the trip, the monkeys will have typed a Shakespearean sonnet. Sound far-fetched? This monkey problem defends the possibility of life arising by chance.

The Problem

You take a trip to New York City from your southern hometown. With roughly 8.4 million people on the island, what are the chances you'll run into someone from home? It probably feels like chances are slim to none, so running into your grade school math teacher at the Statue of Liberty will seem like a major coincidence. As it turns out, chance doesn't always work the way we expect it to.

The monkey problem is thought to have originated in 1913 with mathematician Emile Borel. His goal was to answer the question: "Could totally random events amount to something meaningful?" or, "Could a monkey randomly hitting the keys of a keyboard type out a Shakespearean sonnet?" It's technically not impossible.

Smart Graphic

The Answer

In a 2003 study at the University of Plymouth, researchers studied real monkeys at a zoo in England for one month. The monkeys produced five pages of letters (which you can see here), but they were unable to type even a single-letter word ('I' or 'a'). However, the monkeys did prove to be more complex than "random generators." If we had infinite monkeys typing for an infinite period of time, then hey, it's possible!

This monkey theorem introduced the statistical law of very large numbers. For example, the likelihood of the monkeys even getting a one-letter word (that is, a letter with a space on either side) is 1 in 27,000: with 30 possible characters, there's a 1 in 30 chance of getting each space and the letter in the middle, so that's 30x30x30. For full words, not to mention an entire sonnet, those numbers get much, much bigger. Uncover more of the math behind this problem in the video below, then ask yourself: is it really a strange coincidence when you run into a friend in a large city?

Is there something you're curious about? Email us at editors (at) And follow Curiosity on Facebook, Instagram and Twitter.

Discover More Puzzling Chance Theories Below

Behind The Monkey With Typewriters Theorem

The likelihood of getting a one letter word is 30 x 30 x 30.

Statistics 101: Door Chance Problem

Starting in 1963, a game show called "Let's Make A Deal" was centered around the door puzzle that still stumps statisticians to this day.

Share the knowledge!

If you liked this you'll love our podcast! Check it out on iTunes, Stitcher, Google Play Music, SoundCloud, search 'curiosity' on your favorite podcast app or add the RSS Feed URL.