A Treatise on Probability: The Connection Between Philosophy and the History of Science