approx_rank_relative function

Approximation of relative rank probabilities