Returns the prob of getting x failures before the rth success where r is the desired number of successes parameter
the probability
the value to evaluate