Why Negative Binomial Conventions Need Translation
A negative binomial random variable can count either the total number of trials needed to obtain a fixed number of successes or the number of failures before that final success. Both variables describe the same sequence of Bernoulli trials, but their possible values and probability formulas use different indices. Confusing the two can shift an event by the target number of successes.
Assume throughout that trials are independent, each trial has the same success probability \(p\), and \(0<p<1\). Fix a positive integer \(r\), the required number of successes, and write \(q=1-p\). The trials-count variable includes the final success; the failures-count variable does not.
The parameter \(r\) is the same in both conventions, as is the success probability \(p\). Only the quantity being counted changes. Some references use the name “negative binomial” for one convention, others for the other, and software parameterizations may differ. Always identify the variable from its support and definition rather than relying on the distribution name alone.
Translating the Probability Mass Function
For \(T=t\), the final trial must be a success. Among the preceding \(t-1\) trials, exactly \(r-1\) must be successes and \(t-r\) must be failures. Therefore
For \(K=k\), there are \(r+k-1\) trials before the final success. Exactly \(r-1\) of those are successes and \(k\) are failures. Substituting \(t=k+r\) in the trials-count formula gives
The binomial coefficients agree under the substitution because \(\binom{(k+r)-1}{r-1}=\binom{k+r-1}{r-1}\). The powers agree as well: \(t-r=k\). These equalities are the direct reason that the two formulas describe the same probability for corresponding values.
Worked Example: Convert an Exact Completion Probability
A laboratory test is repeated independently, with probability \(p=0.4\) of a positive result on each test. The process stops at the third positive result. Find the probability that the third positive occurs on test 7, and express the same event using the failures-count variable.
Method. Set \(r=3\), \(p=0.4\), and \(q=1-p=0.6\). The trials-count event is \(T=7\). Since \(K=T-r\), the matching failures-count event is \(K=7-3=4\).
Using trials-count notation, there must be two positive results among the first six tests, followed by a positive result on test 7. Thus
Using failures-count notation gives the same calculation:
The two expressions agree, as required. The probability is \(0.1244\) to four decimal places. Common mistake avoided: \(T=7\) does not correspond to \(K=7\); it corresponds to four failures because the three positive tests are also included in the total of seven tests.
Translating Means and Variances
The count relationship also translates moments. For a negative binomial model with \(r\) required successes and success probability \(p\), the standard moments are
and, because \(T=K+r\),
These are two descriptions of the same model, not two different sources of variability. Adding the fixed number \(r\) changes the mean by \(r\), but does not change the variance.
Write \(T=K+r\). The shift is the fixed number of successes required, not a random quantity.
Linearity of expectation gives \(E[T]=E[K+r]=E[K]+r=rq/p+r=r(q+p)/p=r/p\), since \(q+p=1\).
Adding a constant does not change variance: \(\operatorname{Var}(T)=\operatorname{Var}(K+r)=\operatorname{Var}(K)=rq/p^2\).
The equal variances are a useful check on a conversion. A proposed trials-count mean smaller than \(r\) is impossible, because at least \(r\) trials are needed. In contrast, the failures-count mean can be less than \(r\), since it counts only failures.
Worked Example: Translate Moments From Failures to Trials
A claims-audit process independently flags each reviewed file with probability \(p=0.25\). The audit stops when four files have been flagged. Find the mean and variance of the number of failures before stopping, then convert the mean to the expected total number of files reviewed.
Method. Here \(r=4\), \(p=0.25\), and \(q=0.75\). The failures-count mean is
Its variance is
The total number of files is \(T=K+r\), so
The expected total is also \(r/p=4/0.25=16\), which checks the translation. The mean number of failures is 12 files, while the mean number of reviewed files is 16; the variance is 48 under either convention. Common mistake avoided: reporting 12 as the expected total confuses failures with all trials.
Translating Events, Not Just Formulas
An event must be shifted consistently along with the variable. For any integer \(t\), the relationship \(T=K+r\) gives
The inequalities keep their direction because the conversion adds or subtracts a constant. Their bounds change, however. For example, “no more than 8 trials” when \(r=3\) means \(K\le 5\), not \(K\le 8\). Any translated bound outside the support must also be interpreted carefully: \(K\) cannot be negative, and \(T\) cannot be less than \(r\).
Worked Example: Translate a Cumulative Event
A sensor independently records a successful calibration with probability \(p=0.2\) on each attempt. Calibration ends at the second success. Find the probability that calibration is complete by attempt 4, first using trials-count notation and then failures-count notation.
Method. Let \(r=2\), \(p=0.2\), and \(q=0.8\). The trials-count event \(T\le4\) is equivalent to \(K\le4-2=2\). Thus sum the masses for \(K=0,1,2\), or equivalently for \(T=2,3,4\).
In failures-count notation,
The corresponding trials-count terms are \(P(T=2)=0.04\), \(P(T=3)=0.064\), and \(P(T=4)=0.0768\); their sum is also \(0.1808\). The answer is \(0.1808\) to four decimal places. Common mistake avoided: translating \(T\le4\) as \(K\le4\) would include events requiring more than four attempts. The correct upper bound is \(4-r=2\).
Common Convention Errors
| Situation | Correct translation | Typical error |
|---|---|---|
| Exact completion on trial \(t\) | \(K=t-r\) | Using \(K=t\) |
| At most \(t\) trials | \(K\le t-r\) | Keeping the same upper bound |
| Mean number of trials | \(r/p\) | Using the failures mean \(rq/p\) |
| Variance in either convention | \(rq/p^2\) | Adding \(r\) to the variance |
Before calculating, write down what the random variable counts and its support. Then state the event in that variable’s own words. This simple check catches the most consequential trap: a formula may look familiar while its index belongs to the other convention.
Check Your Understanding
For each problem, identify the convention before evaluating the requested probability or moment.
- A process stops at the third success, with success probability \(0.5\) on each independent trial. Translate “completion on trial 8” into a failures-count event and find its probability. (Answer: \(K=5\); \(P(K=5)=0.0820\).)
- A device succeeds independently on each attempt with probability \(0.2\), and testing stops at the second success. Find the probability that exactly three failures occur before stopping, writing the equivalent trials-count event. (Answer: \(T=5\); probability \(0.0819\).)
- A review ends after four successes, with success probability \(0.4\) per independent review. Find the expected number of failures, expected total reviews, and variance in either convention. (Answer: \(E[K]=6\), \(E[T]=10\), and variance \(15\).)
- With \(r=3\) and \(p=0.25\), translate “the third success occurs by trial 3” into a failures-count event and find its probability. (Answer: \(K\le0\), so the probability is \(0.0156\).)
- A sequence has independent trials with success probability \(0.5\) and stops at the second success. Find the probability that the stopping trial is exactly 6, using the failures-count formula. (Answer: \(K=4\); probability \(0.0781\).)