IN THE mid-1990s, an algorithm trained on hospital admission data made a surprising prediction. It said that people who presented with pneumonia were more likely to survive if they also had asthma.