Using R, plot the probability function for the following Poisson distributions using a line plot. Use plot(...,
Question:
Using R, plot the probability function for the following Poisson distributions using a line plot.
Use plot(..., type="o") to get a line plot with plotted points highlighted. For each Poisson plot, pick a large value of n and an appropriate value of p, and superimpose a binomial probability distribution you expect to be a close match to the Poisson distribution.
Use lines(..., col="red") to superimpose a red line over the current plot.
a. Poisson(λ = 10).
b. Poisson(λ = 27.5)
ercises 789 For each plot, write down the R commands used and comment on whether the binomial probabilities match the Poisson ones.
Step by Step Answer:
Related Book For
Mathematics And Statistics For Science
ISBN: 9783031053177
1st Edition
Authors: James Sneyd, Rachel M. Fewster, Duncan McGillivray
Question Posted: