Mathematicians have long been interested in how epidemics spread, and use tools such as the SIR model to understand what drives an outbreak. As well as showing how an idea grows, such a theory can also provide clues about how problems spread during a financial crisis.