bundles / scipy 1.17.1 / scipy / stats / _discrete_distns / bernoulli_gen
class
scipy.stats._discrete_distns:bernoulli_gen
Signature
class bernoulli_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 Bernoulli discrete random variable.
Extended Summary
%(before_notes)s
Notes
The probability mass function for bernoulli is:
for in ,
bernoulli takes as shape parameter, where is the probability of a single success and is the probability of a single failure.
%(after_notes)s
%(example)s
Aliases
-
scipy.stats._discrete_distns.bernoulli_gen