# Probability theory

## Binomial distribution

I flip $n$ times a coin with a probability $p$ of getting heads, what is the probability to get exactly $k$ heads?

$\binom{n}{k} p^{k} (1 - p)^{n-k}$