Bernoulli distribution: A discrete probability distribution for a random variable that takes the value of 1 with probability p (success) and the value 0 with probability 1-p (failure).
p
1-p
Create a Bernoulli distribution.
The probability of a success.
The mean of the distribution.
The proability of a success.
The proability of a failure.
The standard deviation of the distribution.
The variance of the distribution.
Get the probability of a success or failure.
The value. (0: failure, 1: success)
Return P(X=x).
P(X=x)
Get the probability of a value greater than or equal to x.
x
Return P(X>=x).
P(X>=x)
Get the probability of a value less than or equal to x.
Return P(X<=x).
P(X<=x)
Bernoulli distribution: A discrete probability distribution for a random variable that takes the value of 1 with probability
p
(success) and the value 0 with probability1-p
(failure).