The Black Death
Epidemiology & Population Mathematics

The Black Death

The deadliest pandemic in history — epidemiology, bacterial biology, and the mathematics of how plagues spread.

Epidemiology & Population Mathematics12-Month Curriculum 14h

The Story

The Ships

In October 1347, twelve Genoese trading ships docked at the port of Messina, Sicily. The people who came to greet the ships found something horrifying: most of the sailors on board were dead. Those who were still alive were covered in black boils — swollen, oozing lumps the size of eggs on their necks, armpits, and groins, leaking blood and pus.

The Sicilian authorities ordered the ships out of the harbour. But it was too late. In the few hours the ships were docked, the rats on board had already scurried down the mooring ropes and into the city. And on the rats were fleas. And in the fleas was a bacterium: Yersinia pestis.

Within five years, the Black Death would kill between 75 and 200 million people — roughly 30-60% of Europe's population. It was the deadliest pandemic in human history — and it arrived by the same Silk Road trade routes that carried silk, spices, and ideas.

The Bacterium

Yersinia pestis is a gram-negative bacterium — a rod-shaped microorganism about 1-2 micrometres long. It normally lives in rodent populations (rats, marmots, ground squirrels), transmitted between them by fleas.

The flea is the critical vector. When a flea bites an infected rat, it ingests blood containing Y. pestis bacteria. The bacteria multiply in the flea's gut and form a biofilm — a sticky mass that eventually blocks the flea's digestive system. The flea, unable to feed properly, becomes ravenous. It bites more frequently and with greater desperation. With each bite, it regurgitates some of the bacterial biofilm into the wound, infecting the new host.

When the flea's host rat dies (as it will, because plague is lethal to rats too), the flea jumps to the nearest warm body — which, in a medieval city, was often a human.

Three Forms

Plague manifests in three forms, depending on how the bacteria spread through the body:

Bubonic plague (the most common form): bacteria enter through a flea bite and travel to the nearest lymph node, which swells into a painful, black-bruised mass called a bubo — hence the name. Fatality rate: 30-60% without treatment.

Septicaemic plague: bacteria enter the bloodstream, causing massive systemic infection. The blood clots in the small vessels, producing black patches of dead tissue under the skin. Fatality rate: nearly 100% without treatment.

Pneumonic plague: bacteria infect the lungs, causing severe pneumonia. This form is transmitted directly between humans via respiratory droplets — no flea needed. A person with pneumonic plague coughs bacteria into the air, and anyone who inhales them becomes infected. Fatality rate: nearly 100% without treatment, and death occurs within 24-72 hours of symptom onset.

The pneumonic form is what made the Black Death so catastrophic. Once it evolved from flea-borne (bubonic) to airborne (pneumonic) transmission in crowded medieval cities, the disease spread with terrifying speed.

The Mathematics of Pandemics

The spread of plague through a population can be modeled using the SIR model — one of the foundational tools of mathematical epidemiology, developed by Kermack and McKendrick in 1927.

The model divides a population into three compartments:

- S (Susceptible): people who haven't been infected and can catch the disease - I (Infected): people who are currently sick and can transmit the disease - R (Recovered/Removed): people who have recovered (and are immune) or died

The model is governed by two parameters:

β (beta): the transmission rate — how many susceptible people each infected person infects per day. For pneumonic plague, β was very high — the disease was extremely contagious in close quarters.

γ (gamma): the recovery rate — the rate at which infected people either recover or die. For plague, γ was high too — people died quickly (3-7 days for bubonic, 1-3 days for pneumonic).

The critical quantity is R₀ (R-nought) — the basic reproduction number: R₀ = β / γ. This is the average number of new infections produced by a single infected person in a fully susceptible population.

If R₀ > 1, the epidemic grows. If R₀ < 1, it dies out. For the Black Death, epidemiologists estimate R₀ was approximately 3-5 — each infected person, on average, infected 3-5 others before dying or (rarely) recovering.

For comparison: measles has an R₀ of 12-18. COVID-19 (original strain) had an R₀ of 2-3. The 1918 influenza had an R₀ of 2-3.

The Aftermath

The Black Death killed so many people that it fundamentally restructured European society.

Labor became scarce. With 30-60% of the population dead, the surviving workers could demand higher wages. Feudal lords who had relied on cheap, abundant serf labor found themselves competing for workers. This was the beginning of the end of feudalism in Western Europe.

The Church lost authority. Priests died at the same rate as everyone else — prayer did not protect them. Flagellant movements, pogroms against Jews (who were falsely blamed for poisoning wells), and a general crisis of faith weakened the institutional Church and contributed to the conditions that would produce the Protestant Reformation 170 years later.

Public health was born. Venice established the first quarantine system in 1377 — ships arriving from plague-affected areas had to anchor offshore for 40 days (quaranta giorni in Italian — hence "quarantine") before passengers could disembark. This was the first systematic attempt to control disease transmission through isolation — a measure still used today.

The Ongoing Threat

Yersinia pestis is still with us. There are approximately 1,000-2,000 cases of plague reported worldwide each year, mostly in Africa, Asia, and the Americas. Modern antibiotics (streptomycin, gentamicin) are effective if administered early, reducing the fatality rate to 10% for bubonic plague.

But antibiotic-resistant strains have been identified. And the bacterium's potential as a bioweapon — it was used by Japan's Unit 731 in World War II and was part of both the US and Soviet biological weapons programs — means that plague research remains an active area of military and public health concern.

The Black Death teaches us that pandemics are not just medical events — they are mathematical events. They follow predictable curves, governed by transmission rates, recovery rates, and population structure. Understanding the mathematics doesn't prevent pandemics, but it tells us what to expect — and what interventions (quarantine, social distancing, treatment) will change the curve.

The end.

Try It Yourself

Choose your level. Everyone starts with the story — the code gets deeper as you go.

Story Progress

0%

Ready to Start Coding?

Here is a taste of what Level 1 looks like for this lesson:

Level 1: Explorer — Python
import numpy as np
import matplotlib.pyplot as plt

# Your first data analysis with Python
data = [45, 52, 38, 67, 41, 55, 48]  # measurements
mean = np.mean(data)

plt.bar(range(len(data)), data)
plt.axhline(mean, color='red', linestyle='--', label=f'Mean: {mean:.1f}')
plt.xlabel("Sample")
plt.ylabel("Value")
plt.title("Epidemiology & Population Mathematics — Sample Data")
plt.legend()
plt.show()

This is just the first of 6 coding exercises in Level 1. By Level 4, you will build: Build a Pandemic Simulator.

Free

Level 0: Listener

Stories, science concepts, diagrams, quizzes. No coding.

You are here

Enrolled

Levels 1-4

Python, NumPy, Matplotlib, real projects, mentorship.

Sign Up Free

Stay Updated

Join Waitlist

Get notified when enrollment opens for your area.

Notify Me

Level 0 is always free. Coding levels (1-4) are part of our 12-Month Curriculum.