Skip to contents

(1 - x)^n against e^(-n x), the step that turns the binomial into the Poisson.

Usage

OneMExp(lam_eps, n)

Arguments

lam_eps

the per-slot probability lambda eps, in [0, 1).

n

number of slots, >= 1.

Value

list(exact, approx, rel_error).

References

Morin, D. J. (2016). Probability: For the Enthusiastic Beginner. Createspace. Eq (4.37).

Examples

OneMExp(0.001, 500)$rel_error
#> [1] 0.0002501981