08-Jan-2022 08:54:54 poisson_simulation_test(): MATLAB/Octave version 9.8.0.1380330 (R2020a) Update 2 Test poisson_simulation(). poisson_fixed_events_test(): POISSON_FIXED_EVENTS simulates a Poisson process until a given number of events have occurred. Simulate a Poisson process, for which, on average, LAMBDA events occur per unit time. Run until you have observed EVENT_NUM events. LAMBDA = 0.5 EVENT_NUM = 1000 Minimum wait = 0.00101702 Average wait = 2.00515 Maximum wait = 15.1142 Count Time Wait 0 0 0 1 0.409813 0.409813 2 0.607704 0.197891 3 4.73505 4.12734 4 4.91626 0.181216 5 5.83286 0.916595 .... .............. .............. 995 1996.61 1.36387 996 1997.51 0.906179 997 1997.61 0.100704 998 1999.24 1.62402 999 2004.86 5.62619 1000 2005.15 0.28601 Plot file saved as "poisson_timeline.png" Plot file saved as "poisson_times.png" POISSON_FIXED_TIME_TEST: POISSON_FIXED_TIME simulates a Poisson process counting the number of events that occur during a given time. Simulate a Poisson process, for which, on average, LAMBDA events occur per unit time. Run for a total of 1000 time units. LAMBDA = 0.5 Mean number of events = 501.019 Variance = 501.465, STD = 22.3934 Plot file saved as "poisson_events.png" POISSON_NEXT_EVENT_TEST: POISSON_NEXT_EVENT simulates a Poisson process until a single event has occurred. Simulate a Poisson process, for which, on average, LAMBDA events occur per unit time. LAMBDA = 0.5 Event #1 occurs at time 1.12588, after waiting 1.12588 Event #2 occurs at time 1.72762, after waiting 0.601736 Event #3 occurs at time 2.16094, after waiting 0.433319 Event #4 occurs at time 6.84759, after waiting 4.68666 Event #5 occurs at time 12.7159, after waiting 5.86828 poisson_simulation_test(): Normal end of execution. 08-Jan-2022 08:55:02