Little did Darwin realise, as he puzzled over the numerical data he collected, that he was laying the foundations of statistics. Kevin McConway tells the story.