Calculate probabilities from PDF (#859)