Fitting binomial and Poisson distributionsEstimate parameters before calculating and grouping expected counts.