e^(-x^2/n)/sqrt(pi n) beside the exact centred binomial.
Arguments
- x
deviation from n Heads.
- n
half the number of flips, >= 1.
Value
list(approx, exact, rel_error).
References
Morin, D. J. (2016). Probability: For the Enthusiastic
Beginner. Createspace. Eqs (5.4), (5.13).
Examples
GaussApx(2, 50)$rel_error
#> [1] 0.001727497