Contact

Collabora Office NEGBINOMDIST: Failure Counts and Legacy Domain Limits

Statistical Intermediate Collabora Office Calc

Calculate failures before a target success count and understand the legacy validation boundary that differs from NEGBINOM.DIST. Scoped to the new Linux desktop source build.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

NEGBINOMDIST gives the probability of a specified number of failures before a target number of successes, assuming independent attempts with a fixed success probability. This legacy implementation has a material validation difference from NEGBINOM.DIST: the otherwise valid zero-failure, one-success case is rejected by its source guard.

Syntax and the legacy boundary

=NEGBINOMDIST(X; R; SP)

X is the failure count, R the target success count and SP the success probability per attempt. There is no cumulative argument in this three-argument legacy signature.

The evaluator approximately floors X and R, then rejects X+R <= 1 or SP outside [0,1]. It does not separately validate negative failures and nonpositive successes in the same way as the dotted evaluator. For meaningful ordinary use, enforce nonnegative integer failures, positive integer successes, sum greater than 1 and a valid probability yourself. A missing guard is not permission to interpret an invalid distribution.

The four-argument NEGBINOM.DIST(X;R;SP;Cumulative) has different validation and a cumulative option. The two names must not be presented as unconditional aliases.

Step by step: two failures before the third success

Enter A2 2, B2 3, C2 0.5, then use =NEGBINOMDIST(A2;B2;C2).

=NEGBINOMDIST(2;3;0.5)

For failures f, successes r and probability p, the point mass is:

C(f+r-1,f) * p^r * (1-p)^f

Here it is C(4,2)*0.5^3*0.5^2 = 6/32 = 0.1875, or 18.75%. The fifth and final attempt must be a success; the first four contain two successes and two failures. Counting arbitrary arrangements of all five attempts would count outcomes with the target reached earlier and answer a different question.

=NEGBINOM.DIST(2;3;0.5;FALSE) has the same ordinary-input point-mass target. Adding TRUE to the legacy formula is not how to obtain a cumulative result; its evaluator requires exactly three arguments.

Other small controls

=NEGBINOMDIST(0;3;0.5) has expected probability 0.125, because the first three attempts must all succeed. =NEGBINOMDIST(1;1;0.5) has expected 0.25, matching the help’s example: one failure followed by the first success.

=NEGBINOMDIST(2.9;3.8;0.5) follows source-floored counts 2 and 3 and therefore the same 0.1875 target. Prefer explicit integer counts so that a fractional input does not silently change the question.

At p=1 with two target successes, =NEGBINOMDIST(0;2;1) has source/math result 1, while =NEGBINOMDIST(1;2;1) has result 0. These bounded cases do not certify all degenerate or invalid inputs.

Important: the zero-failure, one-success case

Mathematically, with f=0, r=1 and p=0.5, the probability is 0.5. The legacy source nevertheless rejects:

=NEGBINOMDIST(0;1;0.5)

Its floored sum is 1, so the result is internal IllegalArgument. In contrast, the dotted evaluator accepts =NEGBINOM.DIST(0;1;0.5;FALSE) and has expected result 0.5. This is an exact-source difference; no installed Collabora execution was performed. A workbook migration needs explicit argument and boundary review, not just punctuation replacement.

Advanced: at most two failures

For r=3 and p=0.5, the point probabilities for f=0,1,2 are 0.125, 0.1875 and 0.1875. Adding them gives 0.5, the probability of at most two failures before the third success. A single legacy call at f=2 gives only the final mass, 0.1875, not that sum.

The mathematical expected failures are r*(1-p)/p = 3; expected total attempts are r/p = 6. Those expectations are not guarantees for an individual run and are not inputs to the function. The fixed-p independent-trial assumption matters: learning, depletion or changing conditions require a different model.

Validation and numerical limitations

Do not assume the legacy routine will reject every negative count sensibly. Check counts and probability before calculation. Its point-mass implementation multiplies a sequence of factors, so this guide uses small counts and makes no extreme-tail, huge-count performance or underflow guarantee. Internal error names are source identities, not promises about localized display text.

Product, version and verification

This guide is scoped to the new Collabora Office desktop for Linux, package source tag coda-26.04.4.3-1, commit 81339d176148d0d5c81ff05d82540f58f8aaa117. The 26.04 NEGBINOMDIST help, exact evaluator and dispatch source were checked October 18, 2026. The Linux package manifest provides the recorded product mapping; it is mutable and is not proof of an installed binary.

No Collabora runtime or calculation engine was executed. All worked values are independent mathematical controls or explicit source predictions; vendor display rounding is identified separately. No screenshots, performance benchmarks or cross-platform tests are claimed. This evidence does not certify Classic, Online, CODE, mobile, Windows or macOS.

“Legacy” distinguishes the function’s spelling and argument contract. The checked registration and current help do not establish that it is retired or deprecated. Its first Collabora introduction release is unknown; upstream release history and file-conversion compatibility are not inferred.