sf

open override fun sf(k: Int): Double(source)

Returns the survival function value at k for this beta-binomial distribution.

Gives the probability of observing strictly more than k successes. Computed directly by summing PMF values from k + 1 to trials using the log-sum-exp technique, rather than 1 - cdf(k), for better numerical accuracy in the upper tail.

Return

the probability of more than k successes, in the range [0, 1].

Parameters

k

the number of successes at which to evaluate the survival probability.