The emergence of probability: A philosophical study of early ideas about probability, induction and statistical inference