Have you heard about the monkey who called 911? Two weeks ago the San Luis Obispo County sheriff's office received a 911 call, but there was no voice on the other end. Deputies were dispatched to the source — a local zoo — but they found no humans in distress. Instead, they realized that a capuchin monkey named Route had grabbed a mislaid cellphone and randomly banged at the keypad until she called the emergency number.

Everyone laughed it off. The news stories said things such as "that's bananas" and dismissed it as "monkey business." But the story got me wondering. What were the chances she would hit a 9, a 1, another 1 and then the green "connect" button all in a row?

So I did some research. Very little, because I'm not mathematically minded. But here's what I learned.

If there were 13 buttons on the phone keypad (10 numbers, plus an *, a # and the connect button), Route had a 1 in 13 chance of hitting the 9 randomly. The chance of hitting the 1 next was also 1 in 13, as was the chance of hitting a third 1 and the same for "connect." The chance of hitting the full four-button combination was 1 in 13 X 13 X 13 X 13. Or 1 in 28,561.

Advertise with us

Route's story brought to mind the old thought experiment that an infinite number of monkeys typing for an infinite amount of time would eventually produce "Hamlet." It even has a name: the "infinite monkey theorem." Scientists have used it in debates over how evolution could have occurred from random mutations.

Apparently many non-mathematicians don't believe the infinite monkey theorem is true when they first hear it. That's because humans have a difficult time with the concept of infinity.

Infinite time is not just a long time. It's forever.

Given that there are a limited number of keys on a typewriter and that the monkeys have an unlimited amount of time to type, it stands to reason that eventually every possible combination of keys will be struck. So the monkeys will almost certainly type "Hamlet" sooner or later.

"In infinite time, even things that are extremely unlikely will happen," says Deanna Needell, a professor of applied mathematics at UCLA. "They seem unfathomable because we live finite lives and think in finite terms. But in infinite time all those unthinkable things? They happen."

Advertise with us

Now let's imagine that the monkeys don't have infinite time. In 2003, professors and students at Plymouth University in England put a computer into a cage with six crested macaques for a month. This did not result in "Hamlet."

Instead the monkeys typed about five pages of gibberish, mostly using the letter S. They also hit the keyboard repeatedly with a rock. And they "soiled" it, apparently by urinating on it.

Thus proving the statement attributed to MIT mathematician Gian-Carlo Rota: "Giving monkeys typewriters is not a practical method for writing plays."

Ian Stewart, an emeritus professor of math at the University of Warwick, told the BBC that it would actually take "longer than the age of the universe" for a monkey to randomly type a flawless re-creation of Shakespeare's works.

To understand that, remember that there are 26 characters on a typewriter (counting just the letters). The likelihood of typing just the first 20 letters correctly of "Hamlet" would be 1 in 26-raised-to-the-20th-power, or 1 in 19,928,148,895,209,409,152,340,197,376, according to Wikipedia. (That's ignoring punctuation, spaces, capitals and apostrophes.)

Advertise with us

And that's just the first 20 letters. "Hamlet" has more than 130,000 characters.

Of course, just as interesting as how long it would take is what it would mean were it to happen. Would "Hamlet" still be "Hamlet" if it was typed by random chance? If the monkey that typed it lacked the intention to communicate but was driven entirely by luck and happenstance, has it really created a play? Is the monkey another Shakespeare?

Some philosophers seem to think so.

But I think that's bananas.

Nicholas Goldberg is an associate editor and Op-Ed columnist for the Los Angeles Times. His previous article was “The creepy battle over Charles Manson's estate and the creepy love of 'murderabilia'.”