For example I have following dataset of number of boys in families that have 5 kids:
- 0 boy - 34 (number of such families)
- 1 boy - 128 families
- 2 boys - 233 families
- 3 boys - 267 families
- 4 boys - 144 families
- 5 boys - 55 families
I want to test if this distribution fits to the binomial. For this procedure I will use chi-squared test.
But first of all I need to estimate the the parameter $p$ of binomial distribution. Other parameter $n$ is given (which is 5, of course). We know, that the mle of binomial distribution is $ \frac{x}{n}$ or $ \sum_{i=0}^n \frac{x_i}{n}$
But I can't understand how can we get the precise mle of binomial distribution (in number), in order to calculate the expected number of boys in $n$ families (by the binomial distribution)
P.S The probability of born the boy is equal to all families

And more important, the procedure in general.
– Daniil Yefimov Jun 16 '16 at 15:36