compute hitting probabilities