Get all your news in one place.
100’s of premium titles.
One app.
Start reading
The Independent UK
The Independent UK
Science
Andy Gregory

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

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)

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’ (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.”

Sign up to read this article
Read news from 100’s of titles, curated specifically for you.
Already a member? Sign in here
Related Stories
Top stories on inkl right now
Our Picks
Fourteen days free
Download the app
One app. One membership.
100+ trusted global sources.