P(k Heads in n fair flips) = C(n,k)/2^n.
Arguments
- k
heads, >= 0.
- n
flips, >= 0.
Value
list(k, n, probability).
References
Morin, D. J. (2016). Probability: For the Enthusiastic
Beginner. Createspace. Eq (4.8).
Examples
CoinPmf(2, 4)$probability
#> [1] 0.375