bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _discrete_distns / geom_gen
class
scipy.stats._discrete_distns:geom_gen
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_discrete_distns.py:497
Signature
class geom_gen(a = 0, b = inf, name = None, badvalue = None, moment_tol = 1e-08, values = None, inc = 1, longname = None, shapes = None, seed = None)Members
Summary
A geometric discrete random variable.
Extended Summary
%(before_notes)s
Notes
The probability mass function for geom is:
for ,
geom takes as shape parameter, where is the probability of a single success and is the probability of a single failure.
Note that when drawing random samples, the probability of observations that exceed np.iinfo(np.int64).max increases rapidly as $p$ decreases below $10^{-17}$. For $p < 10^{-20}$, almost all observations would exceed the maximum int64; however, the output dtype is always int64, so these values are clipped to the maximum.
%(after_notes)s
%(example)s
See also
- planck
Aliases
scipy.stats._discrete_distns.geom_gen