The doctrine of chances. Or, a method for calculating the probabilities of events in play