compute probabilities with data