rank.probability function

Calculating rank-probabilities