how can I simulate poisson random process ?

how can to simulate a single realization of the Poisson counting process as described above. Such that the discrete-amplitude random process counts the number of packets arriving in the time interval [0,t). Take your simulation total time to be 10 hours, time sampling step size to be 1 sec.
where the average number of packets arriving per minute in a certain cell is lamda equal 10 .
how can I compute the interval times between the arrival of each two successive packets ?

4 Kommentare

David Goodmanson
David Goodmanson am 5 Jan. 2021
Bearbeitet: David Goodmanson am 5 Jan. 2021
Hi M^2,
MODIFIED per comment below
see the poissrnd function, where lambda is the expected number of events in the sample time interval.
John D'Errico
John D'Errico am 5 Jan. 2021
Bearbeitet: John D'Errico am 5 Jan. 2021
MATLAB does not have a function named randp. You may be thinking about something from the file exchange. However, MATLAB does have poissrnd, found in the stats toolbox.
To the point of the question asked, that is how to simulate inter-arrival times, as I recall, the inter-arrival times for a Poisson process will be exponentially distributed.
mai ahmed
mai ahmed am 5 Jan. 2021
T = 10;
lambda = 1/6;
Rand=randi([1,10], 36000);
prob = (lambda.^Rand) .* exp(-lambda) ./ factorial(Rand);
summation = sum(prob);
disp(summation);
hist(summation)
p=rand(1,36000);
t = -6 *log(1-p);
is that correct ?
Star Strider
Star Strider am 5 Jan. 2021
See if exprnd will do what you want.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Gefragt:

am 4 Jan. 2021

Bearbeitet:

am 5 Jan. 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by