Poisson approximation of the binomial: Suppose X Binom(n, p). Write an R function compare(n,p,k) that computes

Question:

Poisson approximation of the binomial: Suppose X ∼ Binom(n, p). Write an R function compare(n,p,k) that computes (exactly) P(X = k) − P(Y = k), where Y ∼ Pois(np). Try your function on numbers where you expect the Poisson probability to be a good approximation of the binomial. Also try it on numbers where you expect the approximation to be poor.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: