Generating Poisson Distributions for a Fixed Number of Events
Show older comments
I'm wondering if there's a straight forward way to generate a poisson distribution for a distribution for a fixed number of events. For example, I have a vector of means for a poisson distribution; something like this: B=[3, 5, 7, 9, 10] Each element in B is the mean number of events I can expect to observe in that bin when I model the data in each bin as a poisson distribution. If I want to simulate observations of this distribution I can use the command poissrnd: poissrnd(B) Which generates a random vector. I now want to generate observations but I'd like to have control over the total number of events that are observed. Is there a straight forward way to do that?
Accepted Answer
More Answers (0)
Categories
Find more on Poisson Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!