Coins
Probability of {{ kkGeometricFailures }} tail(s) before a head: {{ geometricPMF(pp, kkGeometricFailures) | percent4 }}
Probability of {{ rrNegBinFailures + kkNegBinSuccesses }} coin tosses before {{ kkNegBinSuccesses }} heads: {{ negativeBinomialPMF(pp,rrNegBinFailures,kkNegBinSuccesses) | percent4 }}
Probability of {{ kkBinomialSuccesses }} successes in {{ nnBinomialTrials }} coin tosses: {{ binomialPMF(pp, nnBinomialTrials, kkBinomialSuccesses) | percent4 }}.
Probability of taking r red objects from a mixed bag of red and green objects: {{ hypergeometricPMF(pp, nnHyperGeometricTotal, mmHyperGeometricSuccesses, nnHyperGeometricDraws) | percent4 }}.
A fair coin has an odds of 1:1 or a probability of ½ but a biased coin could have any value from 0 to 1.
I think of this as the coin toss distribution.
It models the probability of a outcomes that are binary such as yes-no or true-false questions.
The random variable \(X \in \{0,1\}\).
$$P(X=1) = p \text{ and } P(X=0) = q = (1-p)$$
Math
The Bernoulli probability distribution