Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Infinite monkey theorem
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Counterintuitive result in probability}} {{pp-semi-indef|small=yes}} [[File:Chimpanzee seated at typewriter.jpg|thumb|While a monkey is used as a mechanism for the thought experiment, it would be unlikely to ever write [[Hamlet]].]] The '''infinite monkey theorem''' states that a [[monkey]] hitting keys independently and at [[randomness|random]] on a [[typewriter]] keyboard for an [[infinity|infinite]] amount of time will [[almost surely]] type any given text, including the complete works of [[William Shakespeare]].{{efn|In practice, for any realistic ''finite'' attempt, the probability of a monkey generating even a small part of a Shakespeare work is negligible.}} More precisely, under the assumption of independence and randomness of each keystroke, the monkey would almost surely type every possible finite text an infinite number of times. The theorem can be generalized to state that any infinite sequence of independent events whose probabilities are uniformly bounded below by a positive number will almost surely have infinitely many occurrences. In this context, "almost surely" is a mathematical term meaning the event happens with probability 1, and the "monkey" is not an actual monkey, but a [[metaphor]] for an [[Abstract and concrete|abstract]] device that produces an endless [[random sequence]] of letters and symbols. Variants of the theorem include multiple and even infinitely many independent typists, and the target text varies between an entire library and a single sentence. One of the earliest instances of the use of the "monkey metaphor" is that of French mathematician [[Γmile Borel]] in 1913,<ref name=":0"></ref> but the first instance may have been even earlier. [[Jorge Luis Borges]] traced the history of this idea from [[Aristotle]]'s ''[[On Generation and Corruption]]'' and [[Cicero]]'s ''[[De Natura Deorum]]'' (On the Nature of the Gods), through [[Blaise Pascal]] and [[Jonathan Swift]], up to modern statements with their iconic simians and typewriters.<ref>[https://gwern.net/doc/borges/1939-borges-thetotallibrary.pdf Jorge Luis Borges, "The Total Library", 1939]. Anthologized in Selected Non-fictions (1999). Edited by Eliot Weinberger. New York: Viking</ref> In the early 20th century, Borel and [[Arthur Eddington]] used the theorem to illustrate the timescales implicit in the foundations of [[statistical mechanics]].{{Citation needed|date=March 2025}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)