Skip to main content
QUICK REVIEW

[Paper Review] Estimating Bernoulli trial probability from a small sample

Norman D. Megill, Mladen Pavičić|arXiv (Cornell University)|May 8, 2011
Advanced Statistical Methods and ModelsMathematics1 references7 citations
TL;DR

This paper presents an exact Bayesian method for estimating the probability of a Bernoulli trial from small samples, replacing the standard textbook approach that fails when sample sizes are small or proportions are near 0 or 1. It derives the posterior mean as (m+1)/(n+2) and computes exact confidence intervals using the inverse regularized incomplete beta function, providing accurate results even with zero successes or tiny samples.

ABSTRACT

The standard textbook method for estimating the probability of a biased coin from finite tosses implicitly assumes the sample sizes are large and gives incorrect results for small samples. We describe the exact solution, which is correct for any sample size.

Motivation & Objective

  • To address the failure of the standard textbook method in estimating Bernoulli trial probabilities when sample sizes are small or proportions are extreme (e.g., zero successes).
  • To provide a rigorous, exact solution based on Bayesian inference with a uniform prior on the success probability p.
  • To demonstrate that the standard method's use of normal approximation and bootstrapping is mathematically questionable and inaccurate for small samples.
  • To show that the exact method yields meaningful confidence intervals even when the observed proportion is 0 or 1, unlike the standard method which gives zero-width intervals.
  • To advocate for the adoption of the exact method in scientific and medical research where small samples are common and incorrect estimates may lead to flawed decisions.

Proposed method

  • Uses a uniform prior over p ∈ [0,1] to represent lack of prior knowledge, leading to a beta posterior distribution.
  • Derives the posterior probability density function as e(x) = x^m(1−x)^{n−m} / B(m+1,n−m+1), where B is the beta function.
  • Computes the exact posterior mean as (m+1)/(n+2), correcting the standard estimate m/n.
  • Determines the 100c% confidence interval by solving I_x₁(m+1,n−m+1) = (1−c)/2 and I_x₂(m+1,n−m+1) = (1+c)/2 using the inverse regularized incomplete beta function.
  • Validates the method through limiting cases of discrete p-values and takes the continuous limit as k→∞ to derive the exact solution.
  • Employs computational tools to evaluate the inverse regularized incomplete beta function for practical implementation.

Experimental results

Research questions

  • RQ1What is the correct Bayesian estimate of a Bernoulli success probability when the sample size is small and the number of successes is zero?
  • RQ2How can a confidence interval be constructed that remains valid even when the observed proportion is 0 or 1?
  • RQ3Why does the standard textbook method fail in small-sample Bernoulli estimation, and what are the specific errors it introduces?
  • RQ4How does the exact Bayesian method compare to the standard method in terms of accuracy and reliability across varying sample sizes and success frequencies?
  • RQ5What is the theoretical justification for using the posterior mean (m+1)/(n+2) instead of m/n in small-sample estimation?

Key findings

  • For a sample of 5 tosses with 0 heads, the exact method yields a posterior mean of 1/7 ≈ 0.143 and an 80% confidence interval from approximately 0.017 to 0.319, in contrast to the standard method’s incorrect zero mean and zero interval.
  • The exact posterior mean is (m+1)/(n+2), which is a simple, closed-form correction to the standard estimate m/n, and approaches it as n increases.
  • For the voting example with m=917 and n=1600, the exact 95% confidence interval is [0.549, 0.597], closely matching the standard method’s [0.548, 0.598], showing agreement for large samples.
  • The exact method avoids the use of asymptotic normal approximations and bootstrapping, which are mathematically unjustified for small samples and can produce misleading results.
  • The method is universally applicable to any small-sample Bernoulli process, including rare event estimation in large populations, where standard methods fail catastrophically.
  • The paper concludes that the exact method is not only more accurate but also more logically sound and should be preferred over the standard textbook approach.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.