Parameter estimation by optimization
nohitter_times
is an array with length of 251. array([ 843, 1613, 1101, 215, 684, 814,..])
# Seed random number generator
np.random.seed(42)
# Compute mean no-hitter time: tau
tau = np.mean(nohitter_times)
# Draw out of an exponential distribution with parame*ter tau: inter_nohitter_time
inter_nohitter_time = np.random …