Tue May 20 22:23:16 2025 poisson_simulation_test(): python version: 3.10.12 numpy version: 1.26.4 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, lam events occur per unit time. Run until you have observed EVENT_NUM events. lam = 0.5 EVENT_NUM = 1000 Minimum wait = 0.0029145680375216284 Average wait = 1.962655235611319 Maximum wait = 17.41962620476338 Count Time Wait 0 0 0 1 2.76451 2.76451 2 6.02528 3.26077 3 7.04802 1.02274 4 8.68011 1.6321 5 10.6519 1.97177 .... .............. .............. 995 1956.3 0.261901 996 1958.56 2.25759 997 1958.81 0.251146 998 1961.77 2.96422 999 1962.15 0.373299 1000 1962.66 0.509145 Graphics saved as "poisson_timeline.png" Graphics 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, lam events occur per unit time. Run for a total of 1000.0 time units. lam = 0.5 Mean number of events = 501.0647 Variance = 506.69111390999996 STD = 22.509800396938218 Graphics 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, lam events occur per unit time. lam = 0.5 Event # 1 at time 4.060692776909708 , after waiting 4.060692776909708 Event # 2 at time 4.112232557541153 , after waiting 0.05153978063144543 Event # 3 at time 5.968976597002525 , after waiting 1.8567440394613717 Event # 4 at time 8.41284945482325 , after waiting 2.443872857820725 Event # 5 at time 9.692492687739668 , after waiting 1.2796432329164174 Event # 6 at time 10.449040636786386 , after waiting 0.7565479490467176 poisson_simulation_test(): Normal end of execution. Tue May 20 22:23:29 2025