A classmate sent me this question:
A high school student had the option to attend 5 AP classes. If we assume the probability of signing up for each class is constant, then the amount of AP courses a student would take is a random variable distributed as:
X ~ Binomial(n=5, p)
.
If we have a sample of 120 high school students denoted $X_1, ..., X_{120}$, what would be the maximum likelihood estimate of $p$?
We have this formula from our notes:
$L(p)=∏^n_{i=1}p^{x_i}(1−p)^{1−x_i}$.
However, he suggested maximizing the function $p^{x}(1−p)^{n−x}$ [here $x = \sum \limits_{i=1}^n x_i$], with $n=5$. Then we simply obtain that the maximum likelihood estimate as $p=\frac{x}{5}$. I feel that either I or the problem is missing some key information. Is this correct?