You observe n independent Bernoulli trials with unknown success probability p, and you record k successes (so K ~ Binomial(n, p)).
(a) Derive the maximum likelihood estimator (MLE) of p and its asymptotic variance.
(b) Assume a Beta(alpha, beta) prior on p. Derive the posterior distribution of p and the posterior predictive probability that the next trial is a success.
(c) Compute a 95% confidence interval (CI) for p using the normal approximation, and a 95% credible interval from the posterior in (b).
(d) Explain when each interval (Wald CI vs. Bayesian credible interval) is reliable and how sample size affects the inference.
Login required