Skip to main content

CAN A MONKEY TYPEOUT SHAKESPERIAN EPIC?

   

     Can a monkey type out a meaningful sentence.  Let us explore using statistics. 
    First, let us learn "multiplication rule".  What is the chance of getting three heads consecutively (coin toss).  We know, probability of getting a head is 1/2.  The 'three coin throws" are independent events.  That is, one out come in a throw does not influence the next throw.  In this case, we can use multiplication rule.  The total probability is obtained by multiplying the individual probabilities.  Hence the chance of getting 3 heads in a row is 1/2*1/2*1/2 = (1/2)^3 = 1/8.  If you do 'the three tosses' eight times, one set may be successful and yield three heads.  Hence multiplication plays vital role in statistics.

    Now Shakespeare's Romeo and Juliet.
"Two households, both alike in dignity In fair Verona, where we lay our scene".  It has 77 letters.
     We know a monkey can type randomly.  By any chance, can it type the above two sentences.  How many tries it has to make?
     To get the first letter right, the chance is 1/26.  If we take comma and space into account, the chance is 1/28.  The chance or probability for getting all the 77 characters right by monkey is 1/26*1/28*...1/28 = (1/28)^77 = 4 * 10^-112.
A ridiculously small chance.  Even if the monkey is able to complete one quadrillion tries per millisecond, it would likely take longer than the estimated age of the universe to produce these two sentences.
     Forget about the two poetic lines.  Will he type the first word "two" correctly?  What is the chance?  It has only three letters.  Hence the chance of typing the word 'two' randomly is 1/26*1/26*1/26 +(1/26)^3 = 5.7*10^-5 (comma, space,dropped)
5.7*10^-5 = 0.000057 =1/17500
That is, if the monkey makes 17500 tries, it will get 'two' correctly in one of the tries.  But, it may take a year.  That is why, we employ human typists.
    A clock which is not 'ticking' is correct twice a day.  A lot of random events produce a few correct actions.  
-----------------------------------------------------------------------------------------------      

Comments

Popular posts from this blog

Your heart -you do not know

  Size and Location: The human heart is roughly the size of a clenched fist and is located slightly to the left of the center of the chest. Despite its relatively small size, the heart plays a crucial role in pumping blood throughout the entire body. Heartbeat Variability: The heart does not beat at a constant rate. The interval between heartbeats can vary, and this variability is considered a sign of a healthy heart. Factors such as breathing, emotions, and physical activity influence the heartbeat. Electrical Conduction: The heart's contractions are controlled by electrical impulses. The sinoatrial (SA) node, often called the "natural pacemaker," generates electrical signals that regulate the heartbeat and coordinate the pumping of blood. Blood Pumping Capacity: On average, the human heart pumps about 2,000 gallons (or 7,570 liters) of blood each day. Over a lifetime, this amounts to pumping enough blood to fill several Olympic-sized swimming pools. Heart Chambers and V...

THE WORK HORSE "="

    One cannot think of  a mathematical step without 'is equal to ' .  It balances right hand side and left hand side.  It aids simplification and manipulation of a mathematical expression. example: 2(A+B)  = C 2A+2B  = C         2A = C-2B           A = C-2B/ 2   In an electronic calculator,  the pressing of ' = " sign executes an asthmatic expression  or simply calculates.       In computer languages, it plays very important role.                                                                 A = B   When a computer looks at this expression, the value stored in the location named B is just transferred to the storage named A .  After execution both A and B will have the same value an...

How does your smart phone detect motion, steps, rotation, and location?

 How it works-1  An accelerometer in a smartphone is a microelectromechanical system (MEMS) device that measures acceleration and tilt. It works by detecting changes in motion by measuring the vibration or acceleration of the device. The accelerometer consists of a small mass suspended on a spring inside a sealed chamber. When the device is subjected to acceleration, the mass moves relative to the device, causing a change in capacitance that can be measured and processed by the smartphone's hardware. The accelerometer measures acceleration in three dimensions (x, y, and z) and provides data that the smartphone's software can use to determine the device's orientation, detect motion, and track changes in velocity and acceleration. The accelerometer is used for a variety of purposes in a smartphone, including screen rotation, motion tracking for games and fitness apps, and detecting the position of the device for navigation and location services. Additionally, it can be used t...