Generate LOQ0 Poisson random numbers with sample:
49, and plot bar chart of the resulting
a-rpois(1000 , lambda-1.9) barplot (table (a) )
Calculate the mean and variance of your sample: Compare with their theoretical values. Generate 200 Poisson random numbers with lambda=27, and plot bar chart of the resulting sample. Use plot (dpois(x=0:20, lambda=2.7), type="b") to plot theoretical probabilities from 0 to 20 and compare with your bar chart. Using your sample to estimate the mean of X, where X ~ Pois(2.7). It can be shown that the theoretical value of E(X) is 2.7. Compare this theoretical mean with your sample estimate.
Q4.2.12: Midwestern Skies books ten COIter Hlights each week. Passenger totals are much the same from week to week, as are the numbers of pieces of luggage that are checked. Listed in the following table are the numbers of bags that were lost during each of the first forty weeks. Do these figures support the presumption that the number of bags lost by Midwestern during a typical week is a Poisson random variable?
Week Bag Lost Week Bag Lost Week Bag Lost
2
42
Estimate a suitable Poisson model for these data and complete the table below.