Skip to main content

bdtrik

Function bdtrik 

Source
pub fn bdtrik(y: f64, n: f64, p: f64) -> f64
Expand description

Inverse of bdtr with respect to k

Corresponds to scipy.special.bdtrik.

The CDF $\I_{1-p}(n - k, k + 1)$ is continuous in k, so that k is real. If y lies below the CDF at $k = 0$, i.e. $(1 - p)^n$, 0 is returned.

ยงSee also

  • bdtr: Binomial distribution function
  • bdtri: Inverse of bdtr with respect to p
  • bdtrin: Inverse of bdtr with respect to n