ConceptPythonBeginner
Bayes' theorem: three counts above background, a rate that cannot be negative
- pmf = poisson.pmf(n, (s_c + b) * T)
- L = poisson.pmf(N, (s_l + b) * T)
- ax.plot([0, 0.2, 0.6], poisson.pmf(N, (np.array([0, 0.2, 0.6]) + b) * T), "o", ms=7, mew=1.5, mec="white", color=INK)
- print(f"share of the area beyond s = 2: {poisson.pmf(N, (np.linspace(2, 4, 20001) + b) * T).sum() * 1e-4 / (L.sum() * ds_l):.1e}")
- likelihood = poisson.pmf(N, (s + b) * T)
- p_now = poisson.pmf(n_now, (s + b) * t_now)
and 1 more line in this tutorial