Stay up to date with notifications from The Independent

Notifications can be managed in browser preferences.

Mathematicians have spoken: Monkeys will never be able to write Shakespeare

The universe will end long before the monkey can type ‘all but the most trivial of phrases’, mathematicians say of the famed Infinite Monkeys Theorem

Andy Gregory
Tuesday 05 November 2024 05:31 EST
Comments
Chances of a 200,000-strong population of monkeys typing until the heat death of the universe creating works of Shakespeare are vanishingly small
Chances of a 200,000-strong population of monkeys typing until the heat death of the universe creating works of Shakespeare are vanishingly small (Getty/iStock)

Your support helps us to tell the story

From reproductive rights to climate change to Big Tech, The Independent is on the ground when the story is developing. Whether it's investigating the financials of Elon Musk's pro-Trump PAC or producing our latest documentary, 'The A Word', which shines a light on the American women fighting for reproductive rights, we know how important it is to parse out the facts from the messaging.

At such a critical moment in US history, we need reporters on the ground. Your donation allows us to keep sending journalists to speak to both sides of the story.

The Independent is trusted by Americans across the entire political spectrum. And unlike many other quality news outlets, we choose not to lock Americans out of our reporting and analysis with paywalls. We believe quality journalism should be available to everyone, paid for by those who can afford it.

Your support makes all the difference.

As the old adage goes, a monkey left with a typewriter for an infinite amount of time would eventually write the complete works of William Shakespeare purely by chance.

The so-called Infinite Monkeys Theorem has long been used to demonstrate the principles of probability and randomness, having been widely referenced in pop culture from The Simpsons to A Hitchhiker’s Guide to the Galaxy, and believed by some to owe its conceptual origins to Aristotle.

But a new study suggests that the thought experiment is “potentially misleading” – because our universe would have ended long before the monkey was able to type “all but the most trivial of phrases”, let alone the nearly 900,000 words comprising the works of Shakespeare.

For their study, published in the peer-reviewed journal Franklin Open, mathematicians Professor Stephen Woodcock and Jay Falletta from the University of Technology Sydney based their calculations on the heat death hypothesis, in which the universe expands to the point that it can no longer sustain life.

“The Infinite Monkey Theorem only considers the infinite limit, with either an infinite number of monkeys or an infinite time period of monkey labour,” said Professor Woodcock.

“We decided to look at the probability of a given string of letters being typed by a finite number of monkeys within a finite time period consistent with estimates for the lifespan of our universe,” he said.

They assumed a typing speed of one key every second, on a keyboard containing 30 keys and with an average word length of 5.7 characters.

The researchers found that, over the course of a single monkey’s lifespan, it would have a 5 per cent chance of successfully typing the word “bananas”.

Over the course of a single monkey’s lifespan, it would have a 5 per cent chance of successfully typing the word ‘bananas’
Over the course of a single monkey’s lifespan, it would have a 5 per cent chance of successfully typing the word ‘bananas’ (Getty)

But the chances of a monkey succeeding in typing even a short phrase quickly become vanishingly small, with the phrase “I chimp, therefore I am” coming in at one in 10 million billion billion. Comparatively, the chance of winning the lottery is judged to be one in 45 million.

Even assuming that a global population of 200,000 monkeys is enlisted until the eventual heat death of the universe in an assumed googol of years – a one, followed by 100 zeroes – the chances of their population randomly reproducing the plays, poems and sonnets of Shakespeare remain extremely unlikely.

“It’s not even like one in a million,” Prof Woodcock told the New Scientist. “If every atom in the universe was a universe in itself, it still wouldn’t happen.”

Join our commenting forum

Join thought-provoking conversations, follow other Independent readers and see their replies

Comments

Thank you for registering

Please refresh the page or navigate to another page on the site to be automatically logged inPlease refresh your browser to be logged in