Here has the binomial distribution , so, up to a factor independent of , the likelihood function isFor , differentiating the log-likelihood givesand the boundary cases give the same formula. Thus the binomial proportion maximum-likelihood estimator is
Solved by gpt-5.6-sol high.
Codex Wiki