Moden Infinite Monkey's standard deviation

AI Thread Summary
The discussion centers on a hypothetical scenario involving a mechanical chimpanzee typing randomly on a keyboard, with the goal of reproducing the King James Bible's text. The probability of the monkey hitting a specific character is calculated as 1/256, leading to an average of 5.6 x 10^36 key presses needed to duplicate the text. The standard deviation of this average is also explored, suggesting a geometric distribution for the first occurrence of the Bible. The analysis indicates that both the mean and standard deviation are approximately equal to 1/p, where p is a very small probability. The conversation also touches on the implications of this error function for varying string lengths, questioning its applicability beyond the specific case of the Bible.
Mr Peanut
Messages
30
Reaction score
0
Given an imaginary, mechanical chimpanzee that never wears out nor sleeps nor relents. Who is compelled to type constantly through eternity into an endless text file using a US standard keyboard... as fast as he can. That this monkey knows simply that he must hit only character keys and only one at a time. He has the additional random option of holding down dead keys (shift key & Alt key). He has no other faculties. He is purely random in nature. His access to each of the character keys is exactly equal except that striking the windows key, menu key, esc key, and control key are infinitely unlikely.
Given that he is limited by the design specifications of the best keyboard... made to support a typist that is twice as fast as the world record holder for typing (37,500 keys/50 min = 12.5 keys/sec). This design limit is 25 characters per second.
Given that he confines his speed to exactly the design limit and types 25 characters per second.
Given that the Guttenberg Project’s flat text file for the King James Bible (GPKJB) has 4,245, 026 characters in a specific sequence in the file.

then

1) The keyboard allows anyone of 256 characters to be typed per key press (ASCII 0 – 255). The probability of hitting a given key is 1/256 = ~0.004

2) The average number of keys that must be struck before he duplicates the file is:
(0.004)^4,245,026 = 5.6 X 10^36

What's the standard deviation of this average?
 
Mathematics news on Phys.org
Mr Peanut said:
(0.004)^4,245,026 = 5.6 X 10^36

Typo? Or does the a^b not mean a to the power of b in this case?
 
To the power of.


Some stuff in the premises will seem superfluous. For example, the typing rate. The reason it's there is; the next part of the idea is to determine expectations about how long it should take, then how long it will take multiple monkeys.

Thanks
 
(0.004)^4245026 is about {10}^{-{10}^7}

I think the probability distribution for the first occurrance of the king James bible is very close
to a geometric distribution P(X=k) = p (1-p)^(k-1) for k >=1 with

p = {10}^{-{10}^7}

both the mean and the standard deviation are equal to 1/p

This is only approximate because:

P(X<4,245,026) is 0 because you can't have a bible if you do not have at least 4,245,026 characters.
We can ignore this because 4,245,026 * p is so small compared to 1/p

If te last 4,245,026 characters were the King James bible, the next character couldn't be the end of the king james bible (unless the bible is aaaaa... ...aaaaaaa) so if the last 4,245,026 characters weren't the King James bible, the probability of that it's finished with the next character is slightly higher. This is also unimportant because it increases the probability that the last character finishes the KJB from p to 1/((1/p)-256)) about p + 256 p^2
(256 outcomes for the last 4,245,026c characters are no longer possible because the KJB didn't finish 1 character ago)
This can also be ignored because 256p^2 is so small compared to p
 
Thanks,

So, it looks like relative error= (256p^2)/p

Does this error function have this form for any size character string I try to match? That is; does it apply to a short string like " banana "?
 
You'd need a lot more "givens" than just that if you want to provide the entire premise.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Back
Top