Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Poisson_Sim

Simulation for Poisson Distribution


Description

A simple function to understand the algorithm to simulate (psuedo-)observations from binomial distribution. It is an implementation of the algorithm given in Section 11.3.1 "Simulation from Discrete Distributions". This function is not an alternative to the "rpois" function.

Usage

Poisson_Sim(lambda, n)

Arguments

lambda

rate of the Poisson RV

n

required number of pseudo-observations

Author(s)

Prabhanjan N. Tattar

See Also

rpois

Examples

set.seed(123)
mean(Poisson_Sim(4,1000))

ACSWR

A Companion Package for the Book "A Course in Statistics with R"

v1.0
GPL-2
Authors
Prabhanjan Tattar
Initial release
2015-09-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.