compute the probabilities of structured ESF