HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Communication, Social Life and Courtship
  1. 1Signals and the dance of the honeybee
  2. 2Living in groups, dominance and altruism
  3. 3Courtship, mating systems and sexual selection
  1. Biology
  2. /Communication, Social Life and Courtship
  3. /Living in groups, dominance and altruism

Course 36.2·Lesson 2 of 3

Living in groups, dominance and altruism

A flock of starlings swirls in the evening sky, and worker bees die defending a hive that is not theirs to breed in. This lesson weighs the costs and benefits of living in groups, explains dominance and territory, and shows how kin selection and reciprocal help can explain altruism.

about 30 min1 simulation1 practice question
Lesson 2 of 3Show all lessonsHide
Communication, Social Life and Courtship
  1. 1Signals and the dance of the honeybee
  2. 2Living in groups, dominance and altruism
  3. 3Courtship, mating systems and sexual selection

Try the code and the simulations beside the lesson.

Why live in a group?

A pigeon feeding alone must keep looking up for hawks. In a flock it can feed more and look up less. Groups bring benefits, but also costs.

Benefits.

  • Many eyes: someone in the group is likely to spot a predator early.
  • Dilution: when a predator catches one animal, the chance that it is you is smaller in a large group.
  • The selfish herd: each animal tries to get to the middle, where it is shielded by others. W. D. Hamilton suggested this in 1971.
  • Finding and taking food: wolves and lions hunt large prey together.

Costs.

  • More competition for food and mates.
  • Disease and parasites spread more easily.
  • A large group is easy for predators to see.

So a group is favoured only when its benefits outweigh its costs. Many birds feed in flocks in winter but hold territories in spring.

How likely is it that at least one bird is alert? If each bird looks up at a given moment with chance ppp, the chance that none of nnn birds is looking up is (1−p)n(1 - p)^n(1−p)n. So the chance PPP that at least one bird is alert is

P=1−(1−p)n\displaystyle P = 1 - (1 - p)^nP=1−(1−p)n

Notice how the curve flattens. Each extra bird helps less, while competition for food keeps growing.

Dominance and territory

Thorleif Schjelderup-Ebbe watched hens in 1922. Hen A pecked hen B, B pecked C, and so on. Each hen knew its place. This pecking order is a dominance hierarchy. Fights are rare once it is set up, because each animal gives way to those above it. Dominant animals get first choice of food and mates.

A territory is an area that an animal defends against others of its species. It is worth defending only when its gain (food, a nest site, mates) is larger than the cost in time, energy and risk.

The puzzle of altruism

A worker honeybee stings an intruder and dies. A female ground squirrel calls when a hawk appears, and the call makes her easier to catch. Altruism is behaviour that helps another animal at a cost to the helper. How can natural selection keep it?

Kin selection. Relatives share genes. A gene that makes an animal help its relatives can spread through the offspring of those relatives. The relatedness rrr is the chance that two animals share a gene through common descent. Parent and offspring have r=0.5r = 0.5r=0.5. Full siblings have r=0.5r = 0.5r=0.5, half siblings 0.250.250.25, first cousins 0.1250.1250.125.

W. D. Hamilton put this as a rule in 1964. Helping is favoured when

rB>C\displaystyle rB > CrB>C

where BBB is the extra offspring the relative raises and CCC is the offspring the helper gives up.

Belding's ground squirrels fit the rule. Females stay near where they were born, so their neighbours are often kin. Males move away. Females give alarm calls far more often than males.

Haplodiploidy. In bees, ants and wasps, females come from fertilised eggs and have two sets of chromosomes. Males come from unfertilised eggs and have one set.

A family diagram of a honeybee colony. The queen is diploid, with two sets of chromosomes, drawn as one blue and one green bar. The male, the drone, is haploid, with one set drawn as a single orange bar. Each daughter gets one of the queen's two sets and the whole of the father's set. Two sister workers are shown side by side: they always share the father's half, and on average half of the mother's half, so they share three quarters of their genes. A side note gives the relatedness of a worker: to a sister 0.75, to her own daughter 0.5, to a brother 0.25.

Sisters with the same father share all of his genes and half of their mother's, on average. So two full sisters have r=0.75r = 0.75r=0.75. A worker is more closely related to her sisters than she would be to her own daughters (r=0.5r = 0.5r=0.5). This may help to explain why workers raise sisters instead of breeding. It is not the whole story: termites are not haplodiploid, yet they are just as social.

Colonies like these, with a breeding queen, sterile workers that care for the young, and generations that overlap, are called eusocial. The naked mole-rat is a eusocial mammal.

Reciprocal altruism. Vampire bats feed on blood at night. A bat that fails to feed for two or three nights in a row can starve. A bat that has fed well often brings up blood for a hungry roost-mate, sometimes one that is not related. Bats tend to feed those that fed them before. Help like this works only when animals meet again and again and can recognise one another, so that cheats can be refused.

Try it in Python

The program tests Hamilton's rule for four kinds of relative.

Read it first. Then run it. For which relatives is helping favoured?

1. Change benefit = 3.0 to benefit = 9.0. Is helping a first cousin favoured now?

Practise with new numbers

Common mistakes

  • Saying animals help "for the good of the species". Kin selection works through shared genes.
  • Forgetting the cost of groups. Competition and disease grow with group size.
  • Giving full sisters r=0.5r = 0.5r=0.5 in a bee hive. In haplodiploid insects full sisters have r=0.75r = 0.75r=0.75.
  • Mixing up kin selection and reciprocal altruism. Reciprocal help can go to non-relatives who return it.
  • Thinking a dominance hierarchy means constant fighting. Once it is set, fights are rare.

Remember these

  • Groups: many eyes, dilution, selfish herd; costs are competition, disease, being seen.
  • Chance that at least one bird is alert: P=1−(1−p)nP = 1 - (1 - p)^nP=1−(1−p)n.
  • Dominance hierarchy (pecking order); territory defended when gain exceeds cost.
  • Hamilton's rule rB>CrB > CrB>C; r=0.5r = 0.5r=0.5 for offspring and full siblings, 0.250.250.25 for half siblings.
  • Haplodiploid full sisters r=0.75r = 0.75r=0.75; eusocial: queen, sterile workers, overlapping generations.
  • Reciprocal altruism needs repeated meetings and recognition (vampire bats).

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Why might a small bird feed in a flock in winter but defend a territory in spring?
  1. Each of 3 birds is alert with chance 0.50.50.5. What is the chance that at least one is alert?
  1. Helping a full brother costs 1 offspring. How many extra offspring must he gain for the help to be favoured?
  1. Why are worker bees more closely related to their sisters than to their own daughters?
  1. Why does reciprocal altruism need animals that live together for a long time?

References

  • Alcock, J. Animal Behavior: An Evolutionary Approach, chapters on social behaviour and the evolution of helpful behaviour.
  • OpenStax Biology 2e, chapter 45, section 45.7 Behavioral Biology (altruism and kin selection).

Enroll free in Communication, Social Life and Courtship

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (4)

A female ground squirrel sees a hawk. If she gives an alarm call, her own risk rises…Hard · High School (11–12) · by StemPy Lab
In a honeybee colony, the queen is diploid and the males (drones) are haploid…Advanced · High School (11–12) · by StemPy Lab
Ducks on a pond feed with their heads under water…Hard · High School (11–12) · by StemPy Lab
Next: lesson 3Courtship, mating systems and sexual selection
← Communication, Social Life and Courtship
← Signals and the dance of the honeybeeCourtship, mating systems and sexual selection →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Vampire bats roost in groups of the same females for many years…Hard · High School (11–12) · by StemPy Lab

Python Labs (1)

The kin and flock calculatorPython Lab · by StemPy Lab