Add a function to compute probabilities according to rank