where ith bin has events. Note estimated error comes from measurement itself.
where denotes (or maximum likelihood) estimate.