Atomic mass unit: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>Gsparky
m Corrected link for NIST website.
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{distinguish|Hundredth monkey effect}}
I'm Lincoln (25) from Arceto, Italy. <br>I'm learning Portuguese literature at a local high school and I'm just about to graduate.<br>I have a part time job in a backery.<br><br>my web page; [http://www.counterbalance.co.za/?attachment_id=1545m88 FIFA 15 Coin Hack]
{{refimprove|date=January 2012}}
[[Image:monkey-typing.jpg|thumb|A [[chimpanzee]] (rather than the usual monkey) sitting at a typewriter. Given enough time, a hypothetical monkey (or in this case ape) typing at random would, as part of its output, [[almost surely]] produce all of [[William Shakespeare|Shakespeare's]] plays.]]
 
The '''infinite monkey theorem''' states that a monkey hitting keys at [[randomness|random]] on a [[typewriter keyboard]] for an infinite amount of time will [[almost surely]] type a given text, such as the complete works of [[William Shakespeare]].
 
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,<ref name=":0" /> but the earliest instance may be even earlier. The relevance of the theorem is [[#Applications and criticisms|questionable]]—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).
 
Variants of the theorem include multiple and even infinitely many 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, [[Émile Borel]] and [[Arthur Eddington]] used the theorem to illustrate the timescales implicit in the foundations of [[statistical mechanics]].
 
==Solution==
 
===Direct proof===
There is a straightforward proof of this theorem. As an introduction, recall that if two events are [[statistically independent]], then the probability of both happening equals the product of the probabilities of each one happening independently. For example, if the chance of rain in [[Moscow]] on a particular day in the future is 0.4 and the chance of an [[earthquake]] in [[San Francisco]] on that same day is 0.00003, then the chance of both happening on that day is {{nowrap|1=0.4 × 0.00003 = 0.000012}}, assuming that they are indeed independent.
 
Suppose the typewriter has 50 keys, and the word to be typed is ''banana''. If the keys are pressed randomly and independently, it means that each key has an equal chance of being pressed. Then, the chance that the first letter typed is 'b' is 1/50, and the chance that the second letter typed is ''a'' is also 1/50, and so on. Therefore, the chance of the first six letters spelling ''banana'' is
:(1/50) × (1/50) × (1/50) × (1/50) × (1/50) × (1/50) = (1/50)<sup>6</sup> = 1/15&nbsp;625&nbsp;000&nbsp;000&nbsp;,
less than one in 15 billion, but not zero, hence a possible outcome.
 
From the above, the chance of ''not'' typing ''banana'' in a given block of 6 letters is 1&nbsp;−&nbsp;(1/50)<sup>6</sup>. Because each block is typed independently, the chance ''X''<sub>''n''</sub> of not typing ''banana'' in any of the first ''n'' blocks of 6 letters is
 
:<math>X_n=\left(1-\frac{1}{50^6}\right)^n.</math>
 
As ''n'' grows, ''X''<sub>''n''</sub> gets smaller. For an ''n'' of a million, ''X''<sub>''n''</sub> is roughly 0.9999, but for an ''n'' of 10 billion ''X''<sub>''n''</sub> is roughly 0.53 and for an ''n'' of 100 billion it is roughly 0.0017. As ''n'' approaches infinity, the probability ''X''<sub>''n''</sub> [[limit of a function|approaches]] zero; that is, by making ''n'' large enough, ''X''<sub>''n''</sub> can be made as small as is desired,<ref name="Isaac1995">{{cite book |last=Isaac |first=Richard E. |title=The Pleasures of Probability |year=1995 |publisher=Springer | isbn = 0-387-94415-X |pages=48–50}} Isaac generalizes this argument immediately to variable text and alphabet size; the common main conclusion is on p.50.</ref><ref group="note">This shows that the probability of typing "banana" in one of the predefined non-overlapping blocks of six letters tends to 1. In addition the word may appear across two blocks, so the estimate given is conservative.</ref> and the chance of typing ''banana'' approaches 100%.
 
The same argument shows why at least one of infinitely many monkeys will produce a text as quickly as it would be produced by a perfectly accurate human typist copying it from the original. In this case ''X''<sub>''n''</sub> = (1&nbsp;−&nbsp;(1/50)<sup>6</sup>)<sup>''n''</sup> where ''X''<sub>''n''</sub> represents the probability that none of the first ''n'' monkeys types ''banana'' correctly on their first try. When we consider 100 billion monkeys, the probability falls to 0.17%, and as the number of monkeys ''n'' increases, the value of ''X''<sub>''n''</sub> – the probability of the monkeys failing to reproduce the given text – approaches zero arbitrarily closely. The limit, for ''n'' going to infinity, is zero.
 
However, for physically meaningful numbers of monkeys typing for physically meaningful lengths of time the results are reversed. If there are as many monkeys as there are atoms in the [[observable universe]] typing extremely fast for trillions of times the life of the universe, the probability of the monkeys replicating even a ''single page'' of Shakespeare is effectively zero. See [[#Probabilities|Probabilities]], below.
 
===Infinite strings===
The two statements above can be stated more generally and compactly in terms of [[string (computer science)|strings]], which are sequences of characters chosen from some finite alphabet:
* Given an infinite string where each character is chosen [[Uniform distribution (discrete)|uniformly at random]], any given finite string almost surely occurs as a substring at some position.
* Given an infinite sequence of infinite strings, where each character of each string is chosen uniformly at random, any given finite string almost surely occurs as a prefix of one of these strings.
 
Both follow easily from the second [[Borel–Cantelli lemma]]. For the second theorem, let ''E''<sub>''k''</sub> be the [[event (probability theory)|event]] that the ''k''th string begins with the given text. Because this has some fixed nonzero probability ''p'' of occurring, the ''E''<sub>''k''</sub> are independent, and the below sum diverges,
:<math>\sum_{k=1}^\infty P(E_k) = \sum_{k=1}^\infty p = \infty,</math>
the probability that infinitely many of the ''E''<sub>''k''</sub> occur is 1. The first theorem is shown similarly; one can divide the random string into nonoverlapping blocks matching the size of the desired text, and make ''E''<sub>''k''</sub> the event where the ''k''th block equals the desired string.<ref group="note">The first theorem is proven by a similar if more indirect route in {{cite book |last=Gut |first=Allan |title=Probability: A Graduate Course |year=2005 |publisher=Springer |isbn=0-387-22833-0 |pages=97–100}}</ref>
 
===Probabilities===
Ignoring punctuation, spacing, and capitalization, a monkey typing letters uniformly at random has a chance of one in 26 of correctly typing the first letter of ''[[Hamlet]].'' It has a chance of one in 676 (26&nbsp;×&nbsp;26) of typing the first two letters. Because the probability shrinks [[exponential growth|exponentially]], at 20 letters it already has only a chance of one in 26<sup>20</sup> = 19,928,148,895,209,409,152,340,197,376 (almost 2&nbsp;×&nbsp;10<sup>28</sup>). In the case of the entire text of ''Hamlet'', the probabilities are so vanishingly small they can barely be conceived in human terms. The text of Hamlet contains approximately 130,000 letters.<ref group="note">Using the Hamlet text [http://www.gutenberg.org/dirs/etext99/1ws2611.txt from gutenberg], there are 132680 alphabetical letters and 199749 characters overall</ref> Thus there is a probability of one in 3.4&nbsp;×&nbsp;10<sup>183,946</sup> to get the text right at the first trial. The average number of letters that needs to be typed until the text appears is also 3.4&nbsp;×&nbsp;10<sup>183,946</sup>,<ref group="note">For any required string of 130,000 letters from the set a-z, the average number of letters that needs to be typed until the string appears is (rounded) 3.4&nbsp;×&nbsp;10<sup>183,946</sup>, except in the case that all letters of the required string are equal, in which case the value is about 4% more, 3.6&nbsp;×&nbsp;10<sup>183,946</sup>. In that case failure to have the correct string starting from a particular position reduces with about 4% the probability of a correct string starting from the next position (i.e., for overlapping positions the events of having the correct string are not independent; in this case there is a positive correlation between the two successes, so the chance of success after a failure is smaller than the chance of success in general). The figure 3.4&nbsp;×&nbsp;10<sup>183,946</sup> is derived from ''n'' =&nbsp;26<sup>130000</sup> by taking the logarithm of both sides: log<sub>10</sub>(''n'') = 1300000×log<sub>10</sub>(26) =&nbsp;183946.5352, therefore ''n'' =&nbsp;10<sup>0.5352</sup>&nbsp;×&nbsp;10<sup>183946</sup> =&nbsp;3.429&nbsp;×&nbsp;10<sup>183946</sup>.</ref> or including punctuation, 4.4&nbsp;×&nbsp;10<sup>360,783</sup>.<ref group="note">26 letters ×2 for capitalisation, 12 for punctuation characters = 64, 199749×log<sub>10</sub>(64) =&nbsp;4.4&nbsp;×&nbsp;10<sup>360,783</sup> (assuming capital letters are separate keys, as opposed to a key combination, which would make the problem vastly harder).</ref>
 
Even if every atom in the observable universe were a monkey with a typewriter, typing from the [[Big Bang]] until the [[end of the universe]], they would still need a ridiculously longer time - more than three hundred and sixty thousand ''orders of magnitude'' longer - to have even a 1 in 10<sup>500</sup> chance of success. To put it another way, for a one in a trillion chance of success, there would need to be 10<sup>360,641</sup> universes full of atomic monkeys.<ref group="note">Assume all atoms are hydrogen, there are ~10<sup>80</sup> [[Observable universe#Matter content - number of atoms|atoms in the universe]] (the actual number would be lower since only 74% of atoms are hydrogen). Assume the monkeys write for 10<sup>38</sup> years (10<sup>20</sup> years is when [[Future of an expanding universe#Stellar remnants escape galaxies or fall into black holes|all stellar remnants will have either been ejected from their galaxies or fallen into black holes]], 10<sup>38</sup> years is when all but 0.1% of [[Future of an expanding universe#All nucleons decay|protons have decayed]]). Assuming the monkeys type non-stop at a blisteringly fast 400 words per minute, that's about 2000 characters per minute (Shakespeare's average word length is a bit under 5 letters). There are about half a million minutes in a year, this means each monkey types a billion characters per year. This gives a total of 10<sup>80</sup>×10<sup>38</sup>×10<sup>9</sup>=10<sup>127</sup> letters typed - which is still zero in comparison to 10<sup>360,783</sup>. For a one in a trillion chance, multiply the letters typed by a trillion: 10<sup>127</sup>×10<sup>15</sup>=10<sup>145</sup>. 10<sup>360,783</sup>/10<sup>145</sup>=10<sup>360,641</sup>.</ref> As [[Charles Kittel|Kittel]] and [[Herbert Kroemer|Kroemer]] put it, "The probability of ''Hamlet'' is therefore zero in any operational sense of an event...", and the statement that the monkeys must eventually succeed "gives a misleading conclusion about very, very large numbers." This is from their textbook on [[thermodynamics]], the field whose statistical foundations motivated the first known expositions of typing monkeys.<ref name="KK">{{cite book | author=[[Charles Kittel|Kittel, Charles]] and [[Herbert Kroemer]] | title=Thermal Physics (2nd ed.) | publisher=W. H. Freeman Company | year=1980 | isbn=0-7167-1088-9 |page=53}}</ref>
 
In fact there is less than a one in a trillion chance of success that such a universe full of monkeys could type any particular document a mere 79 characters long.<ref group="note">As explained at http://www.nutters.org/docs/more-monkeys, the problem can be approximated further. 10<sup>145</sup>/log<sub>10</sub>(64)=78.9 characters.</ref>
 
===Almost surely===
{{See also|Almost surely}}
 
The probability that an infinite randomly generated string of text will contain a particular finite substring is 1. However, this does not mean the substring's absence is "impossible", despite the absence having a prior probability of 0. For example, the immortal monkey ''could'' randomly type G as its first letter, G as its second, and G as every single letter thereafter, producing an infinite string of Gs; at no point must the monkey be "compelled" to type anything else. (To assume otherwise implies the [[gambler's fallacy]].) However long a randomly generated finite string is, there is a small but nonzero chance that it will turn out to consist of the same character repeated throughout; this chance approaches zero as the string's length approaches infinity. There is nothing special about such a monotonous sequence except that it is easy to describe; the same fact applies to any nameable specific sequence, such as "RGRGRG" repeated forever, or "a-b-aa-bb-aaa-bbb-...", or "Three, Six, Nine, Twelve…".
 
If the hypothetical monkey has a typewriter with 90 equally likely keys that include numerals and punctuation, then the first typed keys might be "3.14" (the first three [[digits of pi]]) with a probability of (1/90)<sup>4</sup>, which is 1/65,610,000. Equally probable is any other string of four characters allowed by the typewriter, such as "GGGG", "mATh", or "q%8e". The probability that 100 randomly typed keys will consist of the first 99 digits of pi (including the separator key), or any other ''particular'' sequence of that length, is much lower: (1/90)<sup>100</sup>. If the monkey's allotted length of text is infinite, the chance of typing only the digits of pi is 0, which is just as ''possible'' as typing nothing but Gs (also probability 0).
 
The same applies to the event of typing a particular version of ''Hamlet'' followed by endless copies of itself; or ''Hamlet'' immediately followed by all the digits of pi; these specific strings are [[infinite set|equally infinite]] in length, they are not prohibited by the terms of the thought problem, and they each have a prior probability of 0. In fact, ''any'' particular infinite sequence the immortal monkey types will have ''had'' a prior probability of 0, even though the monkey must type something.
 
This is an extension of the principle that a finite string of random text has a lower and lower probability of ''being'' a particular string the longer it is (though all specific strings are equally unlikely). This probability approaches 0 as the string approaches infinity. Thus, the probability of the monkey typing an endlessly long string, such as all of the digits of pi in order, on a 90-key keyboard is (1/90)<sup>∞</sup> which equals (1/∞) which is essentially 0. At the same time, the probability that the sequence ''contains'' a particular subsequence (such as the word MONKEY, or the 12th through 999th digits of pi, or a version of the King James Bible) increases as the total string increases. This probability approaches 1 as the total string approaches infinity, and thus the original theorem is correct.
 
=== Correspondence between strings and numbers ===
In a simplification of the thought experiment, the monkey could have a typewriter with just two keys: 1 and 0. The infinitely long string thusly produced would correspond to the [[Binary numeral system|binary]] digits of a particular [[real number]] between 0 and 1. A countably infinite set of possible strings end in infinite repetitions, which means the corresponding real number is [[rational number|rational]]. Examples include the strings corresponding to one-third (010101…), five-sixths (11010101…) and five-eighths (1100000…).  Only a subset of such strings (albeit a countably infinite subset) contains the entirety of ''Hamlet'' (if the text is translated from [[ASCII]] to binary).
 
Meanwhile, there is an ''[[uncountably]]'' infinite set of strings which do not end in such repetition; these correspond to the [[irrational numbers]]. These can be sorted into two uncountably infinite subsets: those which contain ''Hamlet'' and those which do not. However, the "largest" subset of all the real numbers are those which not only contain ''Hamlet'', but which contain every other possible string of any length, and with equal distribution of such strings. These irrational numbers are called [[normal number|normal]]. Because almost all numbers are normal, almost all possible strings contain all possible finite substrings. Hence, the probability of the monkey typing a normal number is 1. The same principles apply regardless of the number of keys from which the monkey can choose; a 90-key keyboard can be seen as a generator of numbers written in base 90.
 
==History==
 
===Statistical mechanics===
In one of the forms in which probabilists now know this theorem, with its "dactylographic" [i.e., typewriting] monkeys ({{lang-fr|singes dactylographes}}; the French word ''singe'' covers both the monkeys and the apes), appeared in [[Émile Borel]]'s 1913 article "''Mécanique Statistique et Irréversibilité''" (''[[Statistical mechanics]] and irreversibility''),<ref name=":0">{{cite journal | author=Émile Borel | title=Mécanique Statistique et Irréversibilité | journal=J. Phys. 5e série | volume=3 | year=1913 | pages=189–196}}</ref> and in his book "Le Hasard" in 1914. His "monkeys" are not actual monkeys; rather, they are a metaphor for an imaginary way to produce a large, [[random sequence]] of letters. Borel said that if a million monkeys typed ten hours a day, it was extremely unlikely that their output would exactly equal all the books of the richest libraries of the world; and yet, in comparison, it was even more unlikely that the laws of statistical mechanics would ever be violated, even briefly.
 
The physicist [[Arthur Eddington]] drew on Borel's image further in ''The Nature of the Physical World'' (1928), writing:
 
{{quote|If I let my fingers wander idly over the keys of a typewriter it might happen that my screed made an intelligible sentence. If an army of monkeys were strumming on typewriters they might write all the books in the British Museum. The chance of their doing so is decidedly more favourable than the chance of the molecules returning to one half of the vessel.<ref name="Arthur1928">{{cite book | author=Arthur Eddington | title=The Nature of the Physical World: The [[Gifford Lectures]] | publisher=Macmillan | location=New York | year=1928 | page=72 | isbn=0-8414-3885-4}}</ref><ref name='Arthur1927'>{{cite web | url = http://www.giffordlectures.org/Browse.asp?PubID=TPNOPW&Volume=0&Issue=0&ArticleID=6 | title = Chapter IV: The Running-Down of the Universe | accessdate = 2012-01-22 | last = Eddington | first = Arthur | work = The Nature of the Physical World 1926–1927: The [[Gifford Lectures]]}}</ref>}}
 
These images invite the reader to consider the incredible improbability of a large but finite number of monkeys working for a large but finite amount of time producing a significant work, and compare this with the even greater improbability of certain physical events. Any physical process that is even less likely than such monkeys' success is effectively impossible, and it may safely be said that such a process will never happen.<ref name="KK" />
 
===Origins and "The Total Library"===
In a 1939 essay entitled "The Total Library", Argentine writer [[Jorge Luis Borges]] traced the infinite-monkey concept back to [[Aristotle]]'s ''Metaphysics.'' Explaining the views of [[Leucippus]], who held that the world arose through the random combination of [[atom]]s, Aristotle notes that the atoms themselves are homogeneous and their possible arrangements only differ in shape, position and ordering. In ''[[On Generation and Corruption]]'', the Greek philosopher compares this to the way that a tragedy and a comedy consist of the same "atoms", ''i.e.'', alphabetic characters.<ref>Aristotle, ''Περὶ γενέσεως καὶ φθορᾶς'' (''On Generation and Corruption''), 315b14.</ref> Three centuries later, [[Cicero]]'s ''De natura deorum'' (''On the Nature of the Gods'') argued against the atomist worldview:
 
{{quote|He who believes this may as well believe that if a great quantity of the one-and-twenty letters, composed either of gold or any other matter, were thrown upon the ground, they would fall into such order as legibly to form the ''Annals'' of Ennius. I doubt whether fortune could make a single verse of them.<ref>Marcus Tullius Cicero, ''De natura deorum'', 2.37. Translation from ''Cicero's Tusculan Disputations; Also, Treatises On The Nature Of The Gods, And On The Commonwealth'', C. D. Yonge, principal translator, New York, Harper & Brothers Publishers, Franklin Square. (1877). [http://www.gutenberg.org/etext/14988 Downloadable text].</ref>}}
 
Borges follows the history of this argument through [[Blaise Pascal]] and [[Jonathan Swift]],<ref>The English translation of "The Total Library" lists the title of Swift's essay as "Trivial Essay on the Faculties of the Soul."  The appropriate reference is, instead: Swift, Jonathan, Temple Scott et al. "A Tritical Essay upon the Faculties of the Mind." The Prose Works of Jonathan Swift, Volume 1. London: G. Bell, 1897, pp. 291-296. [http://books.google.com/books?id=FctEAAAAYAAJ&printsec=frontcover&dq=The+Prose+Works+of+Jonathan+Swift&hl=en&ei=JdyDTb-yM8u3tweNmcy8BA&sa=X&oi=book_result&ct=result&resnum=1&ved=0CC4Q6AEwAA#v=onepage&q&f=false Google Books]</ref> then observes that in his own time, the vocabulary had changed. By 1939, the idiom was "that a half-dozen monkeys provided with typewriters would, in a few eternities, produce all the books in the British Museum." (To which Borges adds, "Strictly speaking, one immortal monkey would suffice.") Borges then imagines the contents of the Total Library which this enterprise would produce if carried to its fullest extreme:
 
{{quote|Everything would be in its blind volumes. Everything: the detailed history of the future, [[Aeschylus]]' ''The Egyptians'', the exact number of times that the waters of the Ganges have reflected the flight of a falcon, the secret and true nature of Rome, the encyclopedia Novalis would have constructed, my dreams and half-dreams at dawn on August 14, 1934, the proof of [[Pierre Fermat]]'s [[Fermat's last theorem|theorem]], the unwritten chapters of ''[[Edwin Drood]]'', those same chapters translated into the language spoken by the [[Garamantes]], the paradoxes Berkeley invented concerning Time but didn't publish, Urizen's books of iron, the premature epiphanies of [[Stephen Dedalus]], which would be meaningless before a cycle of a thousand years, the Gnostic [[Gospel of Basilides]], the song the sirens sang, the complete catalog of the Library, the proof of the inaccuracy of that catalog. Everything: but for every sensible line or accurate fact there would be millions of meaningless cacophonies, verbal farragoes, and babblings. Everything: but all the generations of mankind could pass before the dizzying shelves—shelves that obliterate the day and on which chaos lies—ever reward them with a tolerable page.<ref>[[Jorge Luis Borges|Borges, Jorge Luis]]. "''La biblioteca total''" (The Total Library), ''Sur'' No. 59, August 1939. Trans. by [[Eliot Weinberger]]. In ''Selected Non-Fictions'' (Penguin: 1999), ISBN 0-670-84947-2.</ref>}}
 
Borges' total library concept was the main theme of his widely read 1941 short story "[[The Library of Babel]]", which describes an unimaginably vast library consisting of interlocking hexagonal chambers, together containing every possible volume that could be composed from the letters of the alphabet and some punctuation characters.
 
==Real monkeys==
In 2003, lecturers and students from the [[University of Plymouth]] MediaLab Arts course used a £2,000 grant from the [[Arts Council]] to study the literary output of real monkeys. They left a computer keyboard in the enclosure of six [[Celebes Crested Macaque]]s in [[Paignton Zoo]] in [[Devon]] in [[England]] for a month, with a radio link to broadcast the results on a website.<ref name="BBC News">{{cite news | title= No words to describe monkeys' play | date= 2003-05-09 | publisher= BBC News | url= http://news.bbc.co.uk/2/hi/3013959.stm | accessdate = 2009-07-25}} {{Dead link|date=March 2013}}</ref>
 
Not only did the monkeys produce nothing but five pages<ref>{{cite web | title = Notes Towards the Complete Works of Shakespeare | url= http://www.vivaria.net/experiments/notes/publication/NOTES_EN.pdf | format = PDF | publisher = vivaria.net | year= 2002 | accessdate = 2006-06-13}}{{dead link|date=September 2013}}</ref> consisting largely of the letter [[S]], the lead male began by bashing the keyboard with a stone, and the monkeys continued by urinating and defecating on it. Phillips said that the artist-funded project was primarily performance art, and they had learned "an awful lot" from it. He concluded that monkeys "are not random generators. They're more complex than that. ... They were quite interested in the screen, and they saw that when they typed a letter, something happened. There was a level of intention there."<ref name="BBC News" /><ref name="Associated2003">{{cite news |url=http://www.wired.com/news/culture/0,1284,58790,00.html |title=Monkeys Don't Write Shakespeare |agency=Associated Press |publisher=Wired News |date= 2003-05-09| accessdate = 2007-03-02}}</ref>
 
==Applications and criticisms==
 
===Evolution===
[[Image:Thomas Henry Huxley - Project Gutenberg eText 16935.jpg|thumb|upright|[[Thomas Huxley]] is sometimes misattributed with proposing a variant of the theory in his debates with [[Samuel Wilberforce]].]]
In his 1931 book ''The Mysterious Universe'', Eddington's rival [[James Hopwood Jeans|James Jeans]] attributed the monkey parable to a "Huxley", presumably meaning [[Thomas Henry Huxley]]. This attribution is incorrect.<ref name="Padmanabhan2005">{{cite journal |first=Thanu |last=Padmanabhan |title=The dark side of astronomy |journal=Nature |volume=435 |pages=20–21 |year=2005 |doi=10.1038/435020a |issue=7038}} {{cite book |author=Platt, Suzy; Library of Congress Congressional Research Service |title=Respectfully quoted: a dictionary of quotations |year=1993 |publisher=Barnes & Noble |isbn=0-88029-768-9|pages=388–389}}</ref> Today, it is sometimes further reported that Huxley applied the example in a [[1860 Oxford evolution debate|now-legendary debate]] over [[Charles Darwin]]'s ''[[On the Origin of Species]]'' with the Anglican Bishop of Oxford, [[Samuel Wilberforce]], held at a meeting of the [[British Association for the Advancement of Science]] at Oxford on June 30, 1860. This story suffers not only from a lack of evidence, but the fact that in 1860 the typewriter itself had yet to emerge.<ref name="Rescher2006">{{cite book |first=Nicholas |last=Rescher |title=Studies in the Philosophy of Science |year=2006 |publisher=ontos verlag |isbn=3-938793-20-1 |page=103}}</ref>
 
Despite the original mix-up, monkey-and-typewriter arguments are now common in arguments over evolution. For example, Doug Powell argues as a [[Christian apologist]] that even if a monkey accidentally types the letters of ''Hamlet'', it has failed to produce ''Hamlet'' because it lacked the intention to communicate. His parallel implication is that natural laws could not produce the information content in [[DNA]].<ref name="Powell2006">{{cite book |last=Powell |first=Doug |title=Holman Quicksource Guide to Christian Apologetics |year=2006 |publisher=Broadman & Holman | isbn = 0-8054-9460-X |pages=60, 63}}</ref> A more common argument is represented by Reverend [[John F. MacArthur]], who claims that the genetic mutations necessary to produce a tapeworm from an amoeba are as unlikely as a monkey typing Hamlet's soliloquy, and hence the odds against the evolution of all life are impossible to overcome.<ref name="MacArthur2003">{{cite book |first=John |last=MacArthur |title=Think Biblically!: Recovering a Christian Worldview |year=2003 |publisher=Crossway Books |isbn=1-58134-412-0 |pages=78–79}}</ref>
 
[[Evolutionary biology|Evolutionary biologist]] [[Richard Dawkins]] employs the typing monkey concept in his book ''[[The Blind Watchmaker]]'' to demonstrate the ability of [[natural selection]] to produce biological [[complexity]] out of random [[mutation]]s. In a simulation experiment Dawkins has his [[weasel program]] produce the Hamlet phrase ''METHINKS IT IS LIKE A WEASEL'', starting from a randomly typed parent, by "breeding" subsequent generations and always choosing the closest match from progeny that are copies of the parent, with random mutations. The chance of the target phrase appearing in a single step is extremely small, yet Dawkins showed that it could be produced rapidly (in about 40 generations) using cumulative selection of phrases.  The random choices furnish raw material, while cumulative selection imparts information.  As Dawkins acknowledges, however, the weasel program is an imperfect analogy for evolution, as "offspring" phrases were selected "according to the criterion of resemblance to a ''distant ideal'' target."  In contrast, Dawkins affirms, evolution has no long-term plans and does not progress toward some distant goal (such as humans).  The weasel program is instead meant to illustrate the difference between [[non-random]] cumulative selection, and [[random]] single-step selection.<ref name="Dawkins1996">{{cite book |last=Dawkins |first=Richard |year=1996 |title=The Blind Watchmaker |publisher=W.W. Norton & Co. |isbn=0-393-31570-3  |pages=46–50}}</ref>  In terms of the typing monkey analogy, this means that ''Romeo and Juliet'' could be produced relatively quickly if placed under the constraints of a nonrandom, Darwinian-type selection, by freezing in place any letters that happened to match the target text, and making that the template for the next generation of typing monkeys.
 
A different avenue for exploring the analogy between evolution and an unconstrained monkey lies in the problem that the monkey types only one letter at a time, independently of the other letters. Hugh Petrie argues that a more sophisticated setup is required, in his case not for biological evolution but the evolution of ideas:
 
{{quote|In order to get the proper analogy, we would have to equip the monkey with a more complex typewriter. It would have to include whole Elizabethan sentences and thoughts. It would have to include Elizabethan beliefs about human action patterns and the causes, Elizabethan morality and science, and linguistic patterns for expressing these. It would probably even have to include an account of the sorts of experiences which shaped Shakespeare's belief structure as a particular example of an Elizabethan. Then, perhaps, we might allow the monkey to play with such a typewriter and produce variants, but the impossibility of obtaining a Shakespearean play is no longer obvious. What is varied really does encapsulate a great deal of already-achieved knowledge.<ref name="Blachowicz1998">As quoted in {{cite book |first=James |last=Blachowicz |title=Of Two Minds: Nature of Inquiry |year=1998 |publisher=SUNY Press |isbn=0-7914-3641-1 |page=109}}</ref>}}
 
[[James W. Valentine]], while admitting that the classic monkey's task is impossible, finds that there is a worthwhile analogy between written English and the [[metazoa]]n genome in this other sense: both have "combinatorial, hierarchical structures" that greatly constrain the immense number of combinations at the alphabet level.<ref name="Valentine2004">{{cite book |first=James |last=Valentine |title=On the Origin of Phyla |year=2004 |publisher=University of Chicago Press |isbn=0-226-84548-6 |pages=77–80}}</ref>
 
===Literary theory===
[[R. G. Collingwood]] argued in 1938 that art cannot be produced by accident, and wrote as a sarcastic aside to his critics,
 
{{quote|...some ... have denied this proposition, pointing out that if a monkey played with a typewriter ... he would produce ... the complete text of Shakespeare. Any reader who has nothing to do can amuse himself by calculating how long it would take for the probability to be worth betting on. But the interest of the suggestion lies in the revelation of the mental state of a person who can identify the 'works' of Shakespeare with the series of letters printed on the pages of a book...<ref name="Sclafani1975">p.126 of ''The Principles of Art'', as summarized and quoted by {{cite journal |first=Richard J. |last=Sclafani |title=The logical primitiveness of the concept of a work of art |journal=British Journal of Aesthetics |year=1975 |volume=15 |issue=1 |doi=10.1093/bjaesthetics/15.1.14 |page=14}}</ref>}}
 
[[Nelson Goodman]] took the contrary position, illustrating his point along with Catherine Elgin by the example of Borges' "[[Pierre Menard, Author of the Quixote]]",
 
{{quote|What Menard wrote is simply another inscription of the text. Any of us can do the same, as can printing presses and photocopiers. Indeed, we are told, if infinitely many monkeys ... one would eventually produce a replica of the text. That replica, we maintain, would be as much an instance of the work, ''Don Quixote'', as Cervantes' manuscript, Menard's manuscript, and each copy of the book that ever has been or will be printed.<ref name="John2004">{{cite book |author=John, Eileen and Dominic Lopes, editors |title=The Philosophy of Literature: Contemporary and Classic Readings: An Anthology |year=2004 |publisher=Blackwell |isbn=1-4051-1208-5 |page=96}}</ref>}}
 
In another writing, Goodman elaborates, "That the monkey may be supposed to have produced his copy randomly makes no difference. It is the same text, and it is open to all the same interpretations...." [[Gérard Genette]] dismisses Goodman's argument as [[begging the question]].<ref name="Genette1997">{{cite book |first=Gérard |last= Genette |title=The Work of Art: Immanence and Transcendence |year=1997 |publisher=Cornell UP |isbn=0-8014-8272-0}}</ref>
 
For [[Jorge J. E. Gracia]], the question of the identity of texts leads to a different question, that of author. If a monkey is capable of typing ''Hamlet'', despite having no intention of meaning and therefore disqualifying itself as an author, then it appears that texts do not require authors. Possible solutions include saying that whoever finds the text and identifies it as ''Hamlet'' is the author; or that Shakespeare is the author, the monkey his agent, and the finder merely a user of the text. These solutions have their own difficulties, in that the text appears to have a meaning separate from the other agents: what if the monkey operates before Shakespeare is born, or if Shakespeare is never born, or if no one ever finds the monkey's typescript?<ref name="Gracia1996">{{cite book |last=Gracia |first=Jorge |title=Texts: Ontological Status, Identity, Author, Audience |year=1996 |publisher=SUNY Press |isbn=0-7914-2901-6 |pages=1–2, 122–125}}</ref>
 
===Random document generation===
The theorem concerns a [[thought experiment]] which cannot be fully carried out in practice, since it is predicted to require prohibitive amounts of time and resources. Nonetheless, it has inspired efforts in finite random text generation.
 
One computer program run by Dan Oliver of Scottsdale, Arizona, according to an article in ''[[The New Yorker]]'', came up with a result on August 4, 2004: After the group had worked for 42,162,500,000 billion billion monkey-years, one of the "monkeys" typed, "<tt>VALENTINE. Cease toIdor:eFLP0FRjWK78aXzVOwm)-‘;8.t</tt>" The first 19 letters of this sequence can be found in "The Two Gentlemen of Verona". Other teams have reproduced 18 characters from "Timon of Athens", 17 from "Troilus and Cressida", and 16 from "Richard II".<ref name="ja">[http://www.newyorker.com/arts/critics/books/2007/04/09/070409crbo_books_acocella?currentPage=all Newyorker.com] Acocella, Joan "The Typing Life: How writers used to write" ''[[The New Yorker]]'' April 9, 2007, a review of ''The Iron Whim: A Fragmented History of Typewriting'' (Cornell) 2007, by Darren Wershler-Henry</ref>
 
A website entitled ''The Monkey Shakespeare Simulator'', launched on July 1, 2003, contained a [[Java applet]] that simulates a large population of monkeys typing randomly, with the stated intention of seeing how long it takes the virtual monkeys to produce a complete Shakespearean play from beginning to end. For example, it produced this partial line from ''[[Henry IV, Part 2]]'', reporting that it took "2,737,850 million billion billion billion monkey-years" to reach 24 matching characters:
:<tt>RUMOUR. Open your ears; 9r"5j5&?OWTY Z0d</tt>...''
 
Due to processing power limitations, the program uses a probabilistic model (by using a [[random number generator]] or RNG) instead of actually generating random text and comparing it to Shakespeare. When the simulator "detects a match" (that is, the RNG generates a certain value or a value within a certain range), the simulator simulates the match by generating matched text.
 
More sophisticated methods are used in practice for [[natural language generation]]. If instead of simply generating random characters one restricts the generator to a meaningful vocabulary and conservatively following grammar rules, like using a [[context-free grammar]], then a random document generated this way can even fool some humans (at least on a cursory reading) as shown in the experiments with [[SCIgen]], [[snarXiv]], and the [[Postmodernism Generator]].
 
===Testing of random number generators===
{{main|Diehard tests}}
Questions about the statistics describing how often an ideal monkey is [[expected value|expected]] to type certain strings translate into [[Randomness tests|practical tests for random number generators]]; these range from the simple to the "quite sophisticated". Computer science professors [[George Marsaglia]] and [[Arif Zaman]] report that they used to call one such category of tests "overlapping m-[[tuple]] tests" in lecture, since they concern overlapping m-tuples of successive elements in a random sequence. But they found that calling them "monkey tests" helped to motivate the idea with students. They published a report on the class of tests and their results for various RNGs in 1993.<ref name="Marsaglia1993">{{Cite journal | title = Monkey tests for random number generators | journal = Computers & mathematics with applications | issn = 0898-1221 | year = 1993 | volume = 26 | pages = 1–10 | publisher = Elsevier, Oxford | author = Marsaglia G. and Zaman A. | doi = 10.1016/0898-1221(93)90001-C | postscript = [http://stat.fsu.edu/pub/diehard/cdrom/pscript/monkey.ps PostScript version] | issue = 9}}</ref>
 
==Popular culture==
{{Main|Infinite monkey theorem in popular culture}}
The infinite monkey theorem and its associated imagery is considered a popular and proverbial illustration of the mathematics of probability, widely known to the general public because of its transmission through popular culture rather than through formal education.<ref group="note">Examples of the theorem being referred to as proverbial include: Why Creativity Is Not like the Proverbial Typing Monkey. Jonathan W. Schooler, Sonya Dougal, ''Psychological Inquiry'', Vol. 10, No. 4 (1999); and ''The Case of the Midwife Toad'' ([[Arthur Koestler]], New York, 1972, page 30): ''"Neo-Darwinism does indeed carry the nineteenth-century brand of materialism to its extreme limits—to the proverbial monkey at the typewriter, hitting by pure chance on the proper keys to produce a Shakespeare sonnet."'' The latter is sourced from [http://www.angelfire.com/in/hypnosonic/Parable_of_the_Monkeys.html Parable of the Monkeys], a collection of historical references to the theorem in various formats.</ref>
 
In his 1978 radio play, ''[[The Hitchhiker's Guide to the Galaxy]]'', [[Douglas Adams]] invoked the theorem to illustrate the power of the ‘Infinite Improbability Drive’ that powered a spaceship. From Episode 2: ''"[[Ford Prefect (character)|Ford]], there’s an infinite number of monkeys outside who want to talk to us about this script for [[Hamlet (play)|Hamlet]] they’ve worked out."''
 
A quotation attributed <ref>{{cite web|author=Robert Wilensky, speech at a 1996 conference |url=http://www.quotationspage.com/quote/27695.html |title=Quote Details: Robert Wilensky: We've heard that a... |publisher=The Quotations Page |date= |accessdate=2012-01-18}}{{Verify credibility|date=August 2012}}</ref> to a 1996 speech by Robert Wilensky stated, ''"We’ve heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true."''
 
The enduring, widespread popularity of the theorem was noted in the introduction to a 2001 paper, ''"Monkeys, Typewriters and Networks: The Internet in the Light of the Theory of Accidental Excellence"'' (Hoffmann & Hofmann, 2001).<ref>[http://skylla.wz-berlin.de/pdf/2002/ii02-101.pdf Monkeys, Typewriters and Networks], Ute Hoffmann & Jeanette Hofmann, Wissenschaftszentrum Berlin für Sozialforschung gGmbH (WZB), 2001.</ref> In 2002, an article in the [[Washington Post]] said, ''"Plenty of people have had fun with the famous notion that an infinite number of monkeys with an infinite number of typewriters and an infinite amount of time could eventually write the works of Shakespeare."''
<ref>[http://www.washingtonpost.com/ac2/wp-dyn/A28521-2002Oct27?language=printer "Hello? This is Bob"], Ken Ringle, ''Washington Post'', 28 October 2002, page C01.</ref> In 2003, the previously mentioned [[Arts Council England|Arts Council]] funded experiment involving real monkeys and a computer keyboard received widespread press coverage.<ref>[http://www.vivaria.net/experiments/notes/documentation/press/ Notes Towards the Complete Works of Shakespeare] – some press clippings.</ref> In 2007, the theorem was listed by ''[[Wired (magazine)|Wired]]'' magazine in a list of eight classic [[thought experiment]]s.<ref>[http://www.wired.com/science/discoveries/magazine/15-06/st_best The Best Thought Experiments: Schrödinger's Cat, Borel’s Monkeys], Greta Lorge, Wired Magazine: Issue 15.06, May 2007.</ref>
 
==See also==
* [[Normal number]]
* [[Hilbert's paradox of the Grand Hotel]], another thought experiment involving infinity
* ''[[The Hidden Reality: Parallel Universes and the Deep Laws of the Cosmos]]'', explains the multiverse in which every possible event will occur an infinite amount of times
* [[The Engine]]
* [[Infinite Monkeys]]
 
==Notes==
{{Reflist|30em|group="note"}}
 
==References==
{{Reflist|35em}}
 
==External links==
* [http://mathforum.org/library/drmath/view/55871.html Ask Dr. Math article], August 1998, Adam Bridge
* [http://www.angelfire.com/in/hypnosonic/Parable_of_the_Monkeys.html The Parable of the Monkeys], a bibliography with quotations
* [http://azureworld.blogspot.com/2007/04/planck-monkeys.html Planck Monkeys], on populating the cosmos with monkey particles
* [http://www.pixelmonkeys.org/ PixelMonkeys.org] - Artist, Matt Kane's application of the Infinite Monkey Theorem on pixels to create images.
* [http://tools.ietf.org/html/rfc2795 RFC 2795] - Humorous RFC on the implementation of the Infinite monkey theorem.
 
{{DEFAULTSORT:Infinite Monkey Theorem}}
[[Category:Articles containing proofs]]
[[Category:Fictional monkeys]]
[[Category:Infinity]]
[[Category:Literary theory]]
[[Category:Metaphors referring to animals]]
[[Category:Probability theory]]
[[Category:Randomness]]
[[Category:Random text generation]]
[[Category:Thought experiments]]
 
{{Link GA|de}}
{{Link FA|pl}}
{{Link FA|tr}}

Latest revision as of 20:04, 3 January 2015

I'm Lincoln (25) from Arceto, Italy.
I'm learning Portuguese literature at a local high school and I'm just about to graduate.
I have a part time job in a backery.

my web page; FIFA 15 Coin Hack