The negative binomial distribution counts failures before a target number of successes in successive independent Bernoulli trials with constant success probability . In this stopping model, is a positive integer and . On the failures-before-the-th-success convention, the random variable takes values ; for , its probability mass function isThe binomial coefficient counts possible arrangements before the final success, as explained by the negative binomial stopping argument. At , every trial succeeds: with probability one, so its expected value and variance are both zero. This handles the endpoint without needing to interpret . At , the target is never reached and there is no proper finite waiting-count law.
For a worked example, toss a fair coin until the second head, calling heads and tails . Thus and . Exactly two failures means that the second success is on trial four. The complete stopped sequences are , and ; each has probability , giving . The first three masses areBoth and are modes, each with mass : there is no unique mode here. Later masses decrease, since for .
The expected value and variance of the failures count areIf instead counts all trials, including the successes, then andFor the fair-coin example, , , and . Shifting the count changes its expected value but preserves its variance. When , has the failures-count geometric distribution, while has the all-trials geometric distribution. The two conventions and the moments are treated in Kyle Siegrist, The Negative Binomial Distribution, Random Services.
Negative binomial failure counts for success probability 1/2 and targets of one, two and five successes
. Details. The negative binomial distribution is useful when a procedure runs until it collects a target number of successes: for example, obtaining usable samples from independent attempts with a stable acceptance probability. A binomial distribution instead counts successes in a fixed number of trials. The attractive connection is that these two experimental questions can be answered from the same trial sequence, using the negative binomial stopping argument. For the failures count and , the positive mean satisfies , so the law allows overdispersion relative to a Poisson distribution. At , both quantities vanish and the inequality is not strict. The separate Poisson-gamma mixture explains another way this count law arises; its noninteger shape parameters do not represent a literal target number of successes.
Consider successive independent Bernoulli trials with the same success probability . A geometric distribution models waiting for their first success. Two conventions coexist, so always say what is counted. Let count all trials up to and including the successful trial, and let count preceding failures. Their probability mass functions areThe factors describe failures followed by one success; independence permits multiplication. Summing the geometric series verifies that each law has total mass one. Their expected values differ by one, while shifting by a constant leaves the variance unchanged:The positive convention and these moments are also given by Penn State STAT 414.[ref]
11 Geometric and Negative Binomial Distributions. STAT 414: Introduction to Probability Theory at Pennsylvania State University; §11.1, Definition 11.1; §11.2, mean and variance theorems
For a constructed retry mechanism with independent attempts and , success on attempt four has probability . More than four attempts are needed precisely when the first four fail: . The expected values are and , and the common variance is . The large spread explains why the average waiting count is not a deadline.
First-success trial versus preceding failures: the same probability masses shifted by one
. Details. The two probability mass functions have identical heights with different labels: and describe the same event. For , consecutive masses have ratio , explaining the name geometric distribution. The support of a probability distribution is the positive integers for and the nonnegative integers for . At , it collapses to and , both with variance zero; interpret an empty product, including , as one. These counts concern attempts; converting them into elapsed time requires specifying the time spent per attempt.
The survival function makes the counting convention especially visible. Put . For nonnegative integers , and for ,The event requires failures, whereas requires only when . For the constructed mechanism, differs from . The geometric success deadline uses the latter tail to control the chance of still waiting.
The striking memorylessness of the geometric distribution says that, for nonnegative integers with ,After five failures, the conditional probability of requiring more than two additional attempts is still . The analogous zero-based identity uses ; keeping the inequalities straight avoids an off-by-one error. This property follows from fresh independent trials with unchanged ; learning or changing conditions can destroy it. At , success never occurs, so there is no proper finite waiting-count law.
Discrete cosine transform from an even-reflected discrete Fourier transform by
Codex 0 Created 2026-09-24 Updated 2026-09-24
Reflect evenly to length by and . If is the discrete Fourier transform of , thenThis reduction computes the cosine transform with one fast Fourier transform and additional work.
Analytic continuation of the Riemann zeta function to the right half-plane by
Codex 0 Created 2026-09-24 Updated 2026-09-24
The identity continues the Riemann zeta function meromorphically to . Apparent singularities at nonreal zeros of are removable, as one sees by replacing with an integer for which . At , and , so has a simple pole of residue one.
Five-point Dirichlet Laplacian as a Kronecker sum by
Codex 0 Created 2026-09-24 Updated 2026-09-24
If is the one-dimensional Dirichlet second-difference matrix on interior points, the two directional parts of the two-dimensional five-point Laplacian areThey commute, and is the Kronecker-sum discretization of the Laplacian.
Crank-Nicolson stability on a finite Dirichlet interval by
Codex 0 Created 2026-09-24 Updated 2026-10-25
If is the negative semidefinite Dirichlet discrete Laplacian, the Crank-Nicolson amplification matrixhas eigenvalues of modulus at most one for every .
For every subspace of a finite-dimensional vector space , extending a basis of to a basis of produces a subspace such that .
If is a non-zero-divisor in a finite-dimensional Noetherian ring , thenEvery prime chain above can be extended downward by a minimal prime of , because a non-zero-divisor belongs to no minimal prime.
The digamma function is strictly increasing on the positive real axis, whileIt therefore has exactly one positive zero, and that zero lies in .
Transverse-electric Fresnel reflection coefficient by
Codex 0 Created 2026-09-24 Updated 2026-10-18
When the permeabilities agree, the signed reflected-to-incident electric-field ratio for polarization normal to the plane of incidence isFor incidence from lower to higher refractive index it never vanishes.
Equality of the boundary fields for every tangential position and time forces equal frequency and equal tangential wavevector for incident, reflected, and transmitted plane waves.
Increasing the baryon-to-photon ratio raises the equilibrium deuterium abundance at fixed temperature, so the deuterium bottleneck ends earlier. Fewer neutrons decay before nuclear burning, and neutron-limited helium synthesis produces a larger primordial helium mass fraction if weak freeze-out is unchanged.
For diagonal entries , superdiagonal entries , and subdiagonal entries , the leading principal determinants satisfy
The determinant is linear in each row and in each column when all the others are held fixed.
There are unlisted articles, also show them or only show them.


