Derive the maximum likelihood estimator for the parameter p of a Bernoulli or binomial distribution.

Quick Overview

Derive the maximum likelihood estimator of the success probability for Bernoulli and binomial data, step by step from the likelihood. Tests whether you can set up and differentiate a log-likelihood, confirm a maximum, handle the boundary cases and state the estimator's bias and variance.

Derive the maximum likelihood estimator for the parameter p of a Bernoulli or binomial distribution.

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

Derive the maximum likelihood estimator for the parameter $p$ of a Bernoulli or binomial distribution. ```hint Take logs first A product of probabilities is awkward to differentiate. Its logarithm turns it into a sum, and it peaks at the same $p$. ``` ### What a Strong Answer Covers - The likelihood of $n$ i.i.d. Bernoulli trials written in terms of the number of successes - The log-likelihood, its derivative, and the solution of the first-order condition - A check that the stationary point is a maximum, and what happens with zero or $n$ successes - Why the binomial coefficient does not change the estimator - Properties of the estimator, such as its bias and variance ### Follow-up Questions - What is the variance of $\hat p$, and how would you build a confidence interval from it? - With 0 successes in 10 trials the MLE is 0. Why is that a problem, and how would a Beta prior change the estimate? - Is the MLE of the Bernoulli variance $p(1 - p)$ unbiased? - How does the derivation change for a geometric distribution?

Overview: Derive the maximum likelihood estimator of the success probability for Bernoulli and binomial data, step by step from the likelihood. Tests whether you can set up and differentiate a log-likelihood, confirm a maximum, handle the boundary cases and state the estimator's bias and variance.

Nov 25, 2026
easyData ScientistOtherStatistics & Math
0
0

Derive the maximum likelihood estimator for the parameter pp of a Bernoulli or binomial distribution.

What a Strong Answer Covers Guidance

  • The likelihood of nn i.i.d. Bernoulli trials written in terms of the number of successes
  • The log-likelihood, its derivative, and the solution of the first-order condition
  • A check that the stationary point is a maximum, and what happens with zero or nn successes
  • Why the binomial coefficient does not change the estimator
  • Properties of the estimator, such as its bias and variance

Follow-up Questions Guidance

  • What is the variance of p^\hat p , and how would you build a confidence interval from it?
  • With 0 successes in 10 trials the MLE is 0. Why is that a problem, and how would a Beta prior change the estimate?
  • Is the MLE of the Bernoulli variance p(1−p)p(1 - p) unbiased?
  • How does the derivation change for a geometric distribution?