Binomial

The probability mass function of the binomial distribution is

\[  p(x) = \frac{n!}{x!(n - x)!}p^{x}(1 - p)^{n - x}  \]

for $x \in [0, 1, \dots , n]$.

Parameters:

$n$

is a positive integer that represents the number of independent Bernoulli trials.

$p \in [0, 1]$

is the probability of success on each trial.