Exercise

Sample from Poisson distribution

We have been provided with the average yearly number of assaults, robberies and batteries in a small city (150, 300 and 50, respectively). Given that the three types of crimes can be modeled as a multivariate Poisson distribution, you are told to create 10 different scenarios for the number of crimes in the next year.

Instructions

100 XP
  • Using the function rpois, create 10 observations for each type of crimes using their corresponding lambda.
  • Combine the simulated number of crimes into a multivariate Poisson distribution.
  • Check the values of your simulated scenarios.