Probability of success (1). Must be between 0 and 1.
The probability of success (1).
The probability of failure (0), defined as q = 1 - p.
Returns the cumulative distribution function value at x.
Outcome value.
Cumulative probability up to x.
Returns the mean (expected value) of the distribution.
The mean.
Returns the probability mass function value at x.
Outcome (0 or 1).
Probability of observing x.
Generates a random sample (0 or 1) from the distribution.
A sampled value from the distribution.
Returns the variance of the distribution.
The variance.
Class representing the Bernoulli distribution.