Skip to main content

Module geometric

Module geometric 

Source

Functions§

geometric_distribution
The number of failures before the first success in independent trials of probability p (P(k) = (1 − p)ᵏ p), by inversion of the exponential: ⌊ln(1 − u) / ln(1 − p)⌋.