1. Mediaite
  2. Gossip Cop
  3. Geekosystem
  4. Styleite
  5. SportsGrid
  6. The Mary Sue
  7. The Jane Dough
  8. The Braiser

Imagine What You'll Know Tomorrow

That Experiment Involving Monkeys Writing Shakespeare Was Almost Successful (Kind Of)

Share on Tumblr

If you have never heard of the infinite monkey theorem, here is a crash course: if an infinite amount of monkeys are given an infinite amount of time and typewriters, they will eventually type an entire written work, such as something by William Shakespeare. Someone actually ran this experiment and came up with approximately 99.99 percent of the Bard’s poem, “A Lover’s Complaint.” There is a catch, however — the monkeys were only virtual. I’m calling shenanigans. I will only accept an infinite amount of actual monkeys, thankyouverymuch. But let’s take a look at what happened with the virtual monkeys, shall we?

The programmer who ran this experiment, Jesse Anderson, simulated monkeys randomly hitting keys on a standard QWERTY keyboard by turning the monkeys into computer programs that were then uploaded onto Amazon servers. Each of these programs would churn out “random sequences of text.” So you could (and Anderson did) call them “Amazonian Map Monkeys.”

Each sequence is nine characters long and each is checked to see if that string of characters appears anywhere in the works of Shakespeare. If not, it is discarded. If it does match then progress has been made towards re-creating the works of the Bard.

And that is how the Amazonian Map Monkeys came up with a near-perfect version of “A Lover’s Complaint” over the course of about one month. (More statistics: “over 5 trillion character groups have been randomly generated and checked out of the 5.5 trillion possible combinations.”) But without the constraints of sequence length, mathematicians say that the infinite monkey experiment would take, well, an infinite amount of time. Because they are monkeys, typing random letters. Honestly, I would have preferred to read about an experiment with actual monkeys who actually are given actual typewriters or word processors (remember those?), perhaps not an infinite amount of them, but I can see why Anderson chose virtual ones. (The smell, obviously.)

This experiment is pretty close to my heart because there is a one-act play about it by David Ives called Words, Words, Words, and I was in it my senior year of high school. Humblebrag: I was the monkey who ended up typing Hamlet. Oh, yes. And now I must give props to my fellow “monkeys,” Terence and Josh, our director Anselm, and our drama teacher Mrs. Glynn. Because I’m not gonna lie, we were awesome. And I got to fly off of a tire swing.

(Jesse Anderson via Gizmodo)

TAGS: | | | | |


  • Kath

    So, a scientist was just monkeying around with software then?

  • Justin Hilyard

    They did do the experiment with actual monkeys, about 8 years ago.

    “In 2003, scientists at Paignton Zoo and the University of Plymouth, in Devon in England reported that they had left a computer keyboard in the enclosure of six Sulawesi Crested Macaques for a month; not only did the monkeys produce nothing but five pages consisting largely of the letter S, they started by attacking the keyboard with a stone, and continued by urinating and defecating on it.”

    From the Wikipedia article linked at the very start of your article. :P

  • Anonymous

    tinyurl.com/2df4ccp

  • Anonymous

    tinyurl.com/2df4ccp