The number of attempts K until the first success has P(K=k)=(1−p)k−1p, for k=1,2,…. You observe 4 independent runs needing 3, 1, 4 and 2 attempts. How do you derive the MLE of p, and what is its value?

Probability and statistics, Maximum likelihood
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.

What's being asked

MLE for a discrete distribution other than the Bernoulli, and reading the pmf correctly.

Key idea

ℓ(p)=nlog⁡p+(∑iki−n)log⁡(1−p), which gives p^=n/∑iki=1/kˉ.

Steps

  1. Write the likelihood: L(p)=∏i=1n(1−p)ki−1p=pn(1−p)∑ki−n.
  2. Take logs: ℓ(p)=nlog⁡p+(∑iki−n)log⁡(1−p).
  3. Differentiate and set to zero: np−∑ki−n1−p=0.
  4. Cross-multiply: n(1−p)=p(∑ki−n), so n=p∑ki and p^=n/∑iki.
  5. Plug in: n=4, ∑ki=3+1+4+2=10, so p^=4/10=0.4.
  6. Interpret: p^ is "successes divided by total trials". There were 4 successes in 10 attempts.

Common mistakes

How long your answer should be

Half a page; 4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: Counts x1,…,xn are independent Poisson(λ) samples. Derive the MLE of λ. For the counts 2,0,3,1,4, what is λ^ and the probability that the next count is zero?
Next in Probability and statistics: A website gets N∼Poisson(λ) visitors per hour. Each visitor independently spends an amount Xi with mean μ and variance σ2. Using the laws of total expectation and total variance, what are the mean and variance of the hourly revenue Y=∑i=1NXi? What are the values for λ=10, μ=3, σ2=4?