The yes-no distribution is used under these conditions:
For each trial, only 2 outcomes are possible, such as success or failure; the random variable can have only one of two values, for example, 0 and 1.
The mean is p, or probability (0 < p < 1).
Trials are independent. Probability is the same from trial to trial.
The Yes-No distribution is equivalent to the Binomial distribution with one trial.