A new study uses maths and behavioural science to understand how your actions during an epidemic influence the spread of the disease (and vice versa).