Generate a Poisson random variable
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ABUL HASNAT
am 9 Mär. 2020
Beantwortet: the cyclist
am 9 Mär. 2020
The problem I need to solve is as below:
To generate a Poisson random variable with parameter λ use the following:
X=min ∑Ui exp(-λ) ; i=1,2...n
where Ui are i.i.d samples from the uniform distribution.
Show that X is Poisson (λ). Plot them.
How to solve this?
2 Kommentare
Akzeptierte Antwort
the cyclist
am 9 Mär. 2020
Use
histogram(S)
instead of
bar(S)
and move that line out of the for loop, so you don't have to draw it 10,000 times. :-)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!