Binomial distribution

A binomial random variable $X\sim B(n,p)$ of parameters $n\in\N$ and $p\in[0,1]$ has a distribution on $\set{0,1,2,\ldots,n}$ given by $$ p_k = \pmat{n\\k} p^k (1-p)^{n-k}, \quad k=0,1,\dots,n.$$

Use this to model the number of heads obtained on tossing a biased coin $n$ times.

Lemma (adding binomial random variables) open_in_new

If random variables $X\sim B(n,p)$ and $Y\sim B(m, p)$ are independent, then $X+Y\sim B(n+m, p)$.

Adding Bernoulli random variables on a product space