Sun Nov 27 10:48:58 2022 poisson_simulation_test(): Python version: 3.6.9 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.0015259644776232264 Average wait = 1.9601591992360299 Maximum wait = 16.383480979772283 Count Time Wait 0 0 0 1 2.03579 2.03579 2 2.63554 0.599749 3 6.04124 3.40569 4 8.08784 2.0466 5 10.5242 2.4364 .... .............. .............. 995 1955.65 0.0547061 996 1955.68 0.0266395 997 1956.3 0.617081 998 1958.4 2.098 999 1958.95 0.557817 1000 1960.16 1.20573 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 = 500.97665 Variance = 496.19260477750004 STD = 22.275381136526036 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 1.8930562742005197 , after waiting 1.8930562742005197 Event # 2 at time 3.7228210648063276 , after waiting 1.8297647906058079 Event # 3 at time 6.382943818189075 , after waiting 2.6601227533827476 Event # 4 at time 10.453554098568727 , after waiting 4.070610280379653 poisson_simulation_test(): Normal end of execution. Sun Nov 27 10:49:14 2022