The Mathematics of Cooperation

Posted on 9th April 2008 by Ryan Somma in Ionian Enchantment

Bees Forsake Their Own Reproduction for the Benefit of the Hive

Bees Forsake Their Own Reproduction for the Benefit of the Hive
Photo by Todd Huffman

Humans are funny animals. We cooperate at a level of sophistication seen nowhere else on planet Earth. Teachers, food servicers, law enforcement, medical workers, farmers, entertainers, engineers, truck drivers, and a bazillion other specialized laborers make our survival in its present convenience possible. The majority of us would die in a few weeks without our worldwide social support network.

Homo Sapiens behave altruistically toward one another. Human altruism is so strong that it even goes beyond our own gene pool. We are so nurturing that we adopt and care for members of other species like cats, dogs, houseplants, ant farms, hamsters, snakes, lizards, and other pets. We undergo Herculean efforts to save beached, stranded, or wounded whales.

Homo Sapiens care a lot.

We aren’t alone in this regard. In nature, we see cooperation and self-sacrifice everywhere. Primates like Chimpanzees and Gorillas work in cooperative altruistic fashion, as do pack animals. My two pet cats will often spend quality time grooming one another’s fur on the couch, taking turns licking those hard to reach places like on top of the head and chin. Another cat was documented mothering orphaned skunks. It’s obviously natural for members of a species to care for one another, and sometimes even outside their species.

Drone bees work tirelessly to feed their hives, even though they have no hope of reproducing themselves. Their queen, however, shares their genes, and if she survives to reproduce, the drone’s genes will survive as well. Lacking higher brain functions, the altruistic behavior in bees must be instinctual, carried within their DNA. The success of bees is living proof of the success of altruistic genes.

British evolutionary biologist W.D. Hamilton figured out that when an animal’s genetic relatedness to another (r) multiplied by how much altruism would benefit the recipient’s survival chances (B) was greater than the personal cost to survival of the altruistic animal (C), then the genes for altruism would propagate. Expressed mathematically as rB>C, it is known as “Hamilton’s Rule,” and some consider it the E=mc2 of biology.


Hamilton's Rule

Hamilton’s Rule

The science of Game Theory provides an example of altruism’s strength in numbers. In each round of a game called the “Prisoner’s Dilemma,” two players have the option to either act altruistically or betray the other player. If they cooperate, they both get three points. If they betray one another, they only get one point each. If one betrays and the other acts altruistically, the betrayer gets five points and the altruistic player gets zero.

Scientists have devised all sorts of strategies for winning this game, and those strategies put into algorithms and put into competition on computers. Of all the strategies put into this virtual world, the “Tit-for-Tat” (TFT) comes out on top. This strategy’s first action is altruistic and after that it simply does what the other player did on the previous round, rewarding altruism with altruism and betrayal with betrayal. When TFTs exist in the community, the other more altruistic strategies succeed with them, forming a cooperative community.

Between the success of TFT’s and mounting support for Hamilton’s Rule, we are finding that being good to one another not only makes moral sense, but logical and mathematical sense as well.


Dawkins, Richard, The Selfish Gene, Oxford University Press, 1976.

See also my previous post Nice Guys Finish First exploring the math behind the Prisoner’s Dilema in further detail.

4 Comments

  1. That was extremely interesting. Thank you.

    Comment by ClintJCL — April 9, 2008 @ 7:33 pm

  2. Ryan sir, you should link where you found your info that TFT comes out on top. Based off my research on this last semester, I wasn’t able to find a single “best strategy”.

    Comment by Nick Hamden — April 9, 2008 @ 10:43 pm

  3. The always excellent Radiolab podcast did an episode about morality, and they talk about a series of thought experiments that highlight the difference between our “chimp brain” and sense of rationale, and how a sense of cooperation evolved in apes to benefit their survival.

    http://www.wnyc.org/shows/radiolab/episodes/2006/04/28

    Look for “Chimp Fights and Trolley Rides”.

    Sidenote: If you love science and you haven’t heard Radiolab, you are missing out on a seriously damned good podcast. It is one of the best-made science-related podcasts/shows I’ve ever heard. The hosts are such fantastic storytellers.

    Comment by doranchak — April 10, 2008 @ 5:21 am

  4. Nicko: The research was cited in Richard Dawkin’s The Selfish Gene. Computer programmers all came up with their own strategy and put it into a computer and let them duke it out. The math I cite in my original blogpost was pretty straightforward however. It should stand on its own, but as I show, only in certain environments.

    Oranchak: Thanks for the tip. I’ve flagged it to work into my listening schedule. I regularly download hours of Science Friday to listen to in my car. This show looks like they have downloadable MP3s, so I can do the same.

    Comment by ideonexus — April 10, 2008 @ 11:12 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.