Probability mass functions of Binomial and Poisson distributions respectively:
Where
of success of a single Bernoulli trial while
Poisson distribution.
If
remains fixed and equal to
approximated by the Poisson distribution with parameter
Reference:
Exploring University Mathematics with Python, Siri Chongchitnan, Springer, 2023, p. 393
In this Shiny app, the number of trials is controlled by a slider input which
takes values from 10 to 2000. Behind the scenes the value of
the product
number of trials grows larger the Binomial distribution converges to the Poisson
distribution, as shown in the interactive plot on the right. You can view an
animation of the convergence by pressing the play button below the slider.
Given that you have shiny, ggplot2, tibble, bslib and tidyr packages
installed, you can run the app by executing the following command in R / RStudio
console:
R> shiny::runGitHub(repo = "andrkoles/poisson_limit_theorem")A screenshot of the app:
