Statistics & Probability / Geometric & Negative Binomial
FREE TO EXPLORE
LABORATORY 14 · STATISTICS & PROBABILITY

Geometric & Negative Binomial theory

Understand geometric & negative binomial: probability distributions, theorems, estimation laws, and hypothesis tests.

Probabilistic foundations of Geometric & Negative Binomial.

The Geometric and Negative Binomial distributions govern stopping times and waiting intervals in sequential Bernoulli trials. Characterized by the discrete memoryless property in the geometric case and generalized to multi-success quotas under the Negative Binomial model, these distributions form the theoretical core of reliability testing, sequential clinical trials, and overdispersed count modeling. In this laboratory, we simulate stopping-time sequences, verify memorylessness, evaluate quota scaling, and confirm the linear expectation gradient m = 2.000. In mathematical statistics, empirical data science, and modern computational engineering, understanding the asymptotic sampling properties and theoretical behavior of Geometric Distribution, Memoryless Property, and Negative Binomial Stopping Times provides crucial guarantees. Rigorous experimental validation connects foundational probability laws with observable empirical phenomena, ensuring that statistical inference remains valid under finite sample sizes and real-world data collection constraints.

y = 2.0000 · x

Viva voce questions & analytical theory

How is the Geometric distribution defined under the total-trials versus failures parameterizations?

The Geometric distribution exists in two standard formulations: (1) Total trials until first success: X ∈ {1, 2, 3, ...} with PMF P(X = k) = (1 - p)^(k - 1) p, having expectation E[X] = 1/p and variance Var(X) = (1 - p)/p^2. (2) Number of failures before first success: Y = X - 1 ∈ {0, 1, 2, ...} with PMF P(Y = k) = (1 - p)^k p, having expectation E[Y] = (1 - p)/p and variance Var(Y) = (1 - p)/p^2. Clarity regarding the chosen parameterization is essential in statistical inference.

Why is the Geometric distribution the unique discrete memoryless distribution?

The discrete memoryless property requires P(X > m + n | X > m) = P(X > n) for non-negative integers m and n. In terms of survival probabilities G(n) = P(X > n), this is equivalent to the Cauchy functional equation G(m + n) = G(m) G(n). The only non-trivial monotonically decreasing solution on integers is G(n) = c^n where 0 < c < 1. Setting c = 1 - p yields the Geometric survival function P(X > n) = (1 - p)^n, proving uniqueness.

How is the Negative Binomial distribution formulated as a sum of Geometric random variables?

Let X be the total number of independent Bernoulli(p) trials needed to observe exactly r successes. The waiting time between the (k - 1)-th and k-th success is an independent Geometric(p) random variable W_k. Therefore, X can be decomposed as X = ∑_{k=1}^r W_k. By linearity of expectation, E[X] = ∑_{k=1}^r E[W_k] = r (1/p) = r/p. Because the intervals W_k are mutually independent, Var(X) = ∑_{k=1}^r Var(W_k) = r(1 - p)/p^2.

What is the combinatorial derivation of the Negative Binomial PMF?

For the r-th success to occur on the k-th trial (where k ≥ r), two independent events must occur simultaneously: (1) Exactly r - 1 successes must occur in the preceding k - 1 trials, which has binomial probability (k - 1 choose r - 1) p^(r - 1) (1 - p)^(k - r); and (2) The k-th trial must be a success, occurring with probability p. Multiplying these probabilities yields P(X = k) = (k - 1 choose r - 1) p^r (1 - p)^(k - r).

How does the Negative Binomial distribution model overdispersed Poisson count data?

The Negative Binomial distribution can be derived as a continuous gamma mixture of Poisson distributions. If count N ~ Poisson(Λ) where the rate parameter Λ is itself random and follows Gamma(r, (1 - p)/p), the marginal distribution of N is Negative Binomial. Its variance is Var(N) = E[N] + E[N]^2 / r > E[N], making it the standard statistical model for overdispersed biological, ecological, and insurance claim counts.

What is the relationship between the Negative Binomial distribution and the Banach Matchbox Problem?

The Banach matchbox problem, posed by Hugo Steinhaus, asks for the probability that when one of two matchboxes (each initially containing N matches) is found to be empty, the other contains exactly k matches. The underlying stochastic process is governed directly by the Negative Binomial distribution with r = N + 1 successes and p = 0.5.

How is the probability generating function (PGF) of the Negative Binomial distribution derived?

The PGF of a single geometric variable W is G_W(s) = E[s^W] = ps / (1 - (1 - p)s). Because the Negative Binomial variable X is the sum of r independent geometric variables, its PGF is the product of the individual PGFs: G_X(s) = [G_W(s)]^r = [ps / (1 - (1 - p)s)]^r. Evaluating derivatives at s = 1 recovers the factorial moments of the distribution.

Experimental precautions and statistical checks

  • Ensure the termination condition is checked after every single trial to avoid over-counting stopping times.
  • Maintain separate accumulator registers for successful trials and failure trials to avoid parameter confusion.
  • Verify that p is strictly bounded in (0, 1) to prevent infinite loops (at p = 0) or degenerate single-step trials (at p = 1).
  • Use sufficiently large Monte Carlo sample sizes (N ≥ 10,000) when estimating higher-order Negative Binomial moments.

Theoretical assumptions & limitations

  • The memoryless property fails if the success probability p shifts or drifts across sequential trials.
  • Geometric models assume infinite potential trial capacity, which is violated in truncated or finite-horizon systems.
↳
Connect theory to empirical data.

The empirical regression of expected trial count against success quota r yields a gradient of m = 2.0000, confirming theoretical waiting time scaling with R² = 1.000000.