13.6 Poisson Variables (Optional)

Another discrete distribution that you may learn is called the Poisson distribution that is used to predict counts of some event that occur within a given time interval. For example, recording the number of car accidents that you have in a year.

As you would guess, there is a R function for simulating this random variable. Here in addition to the number of values to simulate, we just need the parameter for the mean (called lambda).

rpois(n = 6, lambda = 20)