Like us on Facebook
Follow us on Instagram
 

Infinite monkey theorem – a monkey hitting keys at random on a typewriter keyboard will almost surely write the complete works of William Shakespeare

Tijana Radeska
Given an infinite length of time, a chimpanzee punching at random on a typewriter would almost surely type out all of Shakespeare's plays.
Given an infinite length of time, a chimpanzee punching at random on a typewriter would almost surely type out all of Shakespeare's plays.

The Infinite Monkey Theorem is a proposition that an unlimited number of monkeys, given enough typewriters and an infinite amount time, will eventually produce a particular text, such as Hamlet or even the complete works of Shakespeare.

Given an infinite length of time, a chimpanzee punching at random on a typewriter would almost surely type out all of Shakespeare's plays.
Given an infinite length of time, a chimpanzee punching at random on a typewriter would almost surely type out all of Shakespeare’s plays. Wikipedia/Public Domain

In fact, the monkey would almost surely type every possible finite text an infinite number of times. However, the probability of a universe full of monkeys typing a complete work, such as Shakespeare’s Hamlet, is so tiny that the chance of it occurring during a period of time hundreds of thousands of orders of magnitude longer than the age of the universe is extremely low (but technically not zero).

Title page of the 1605 printing (Q2) of Hamlet. Wikipedia/Public Domain
Title page of the 1605 printing (Q2) of Hamlet. Wikipedia/Public Domain

In this context, “almost surely” is a mathematical term with a precise meaning, and the “monkey” is not an actual monkey, but a metaphor for an abstract device that produces an endless random sequence of letters and symbols. One of the earliest instances of the use of the “monkey metaphor” is that of French mathematician Émile Borel in 1913, but the first instance may be even earlier.

Émile Borel was a French mathematician and politician. As a mathematician, he was known for his founding work in the areas of measure theory and probability.
Émile Borel was a French mathematician and politician. As a mathematician, he was known for his founding work in the areas of measure theory and probability. Wikipedia/Public Domain

The reasoning behind that supposition is that, given infinite time, random input should produce all possible outputs. The Infinite Monkey Theorem translates to the idea that any problem can be solved, with the input of sufficient resources and time. That idea has been applied in various contexts, including software development and testing, commodity computing, project management and the SETI (the Search for Extraterrestrial Intelligence) project to support a greater allocation of resources – often, more specifically, a greater allocation of low-end resources – to solve a given problem. The theorem is also used to illustrate basic concepts in probability.

Sir Arthur Stanley Eddington OM FRS was an English astronomer, physicist, and mathematician of the early 20th century who did his greatest work in astrophysics. He was also a philosopher of science and a populariser of science. The Eddington limit, the natural limit to the luminosity of stars, or the radiation generated by accretion onto a compact object, is named in his honour. He is famous for his work concerning the theory of relativity. Eddington wrote a number of articles that announced and explained Einstein's theory of general relativity to the English-speaking world. Wikipedia/Public Domain
Sir Arthur Stanley Eddington OM FRS was an English astronomer, physicist, and mathematician of the early 20th century who did his greatest work in astrophysics. He was also a philosopher of science and a populariser of science. The Eddington limit, the natural limit to the luminosity of stars, or the radiation generated by accretion onto a compact object, is named in his honour.
He is famous for his work concerning the theory of relativity. Eddington wrote a number of articles that announced and explained Einstein’s theory of general relativity to the English-speaking world. Wikipedia/Public Domain

Variants of the theorem include multiple or even an infinite number of typists, and the target text varies between an entire library and a single sentence. The history of these statements can be traced back to Aristotle’s On Generation and Corruption and Cicero’s De natura deorum (On the Nature of the Gods), through Blaise Pascal and Jonathan Swift, and finally to modern statements with their iconic simians and typewriters. In the early 20th century, Borel and Arthur Eddington used the theorem to illustrate the timescales implicit in the foundations of statistical mechanics.

Tijana Radeska

Tijana Radeska is one of the authors writing for The Vintage News