Counting & Binomial Distribution

Counting
n is any non-negative integer and 0≤k≤n
✔️ Combinations
- A collection of the elements where the order doesn’t matter

>>> AB AC AD BC BD CD
✔️ Combinations with Replacement
- This method takes under consideration the combination of a number with itself as well.

>>> AA AB AC AD BB BC BD CC CD DD
✔️ Permutations
- An arrangement of a set where the order does matter.

>>> AB AC AD BA BC BD CA CB CD DA DB DC
✔️ Product
- Cartesian product of input iterables

>>> AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD
Binomial Distribution
Let X be the random variable counting the number of hits in a Bernoulli scheme at n repetitions.
The law of X is the binomial law of parameters n and p and we have:
- p(X=k)=(kn)pk(1−p)n−k
Where n is any non-negative integer and 0≤k≤n
.
✔️ Mean
✔️ Variance
- n×p×(1−p)
✔️ Standard Deviation
- n×p×(1−p)