Calculating probability of selection