How are epidemics studied?