Checking a binomial result after relabeling success and failure
Swap what you call a success and a failure, change both the count and the probability, and the binomial probability stays the same.
Naming the outcome is a choice
In a binary experiment each trial ends in one of two outcomes, and which one you call the success is up to you. A defective part can be the success if you are counting defects, or a good part can be the success if you are counting passes. The event does not change when you rename, but the numbers that describe it do. Exactly one defect in three parts is the same event as exactly two good parts in three parts. This page shows that the Binomial Probability Calculator gives the same answer under both labels, provided you convert the count to n minus k and the probability to 1 minus p together.
The default pair: p = 0.2 and p = 0.8
Take three independent trials with success probability 0.2 and ask for exactly one success. The mass is C(3, 1) times 0.2 times 0.8 squared, which is 3 times 0.2 times 0.64, or 0.384. The Binomial Probability Calculator with n = 3, k = 1 and p = 0.2 returns 0.384. Now call the other outcome a success. Its probability is 0.8, and the same event is "exactly two successes in three trials." The calculator with n = 3, k = 2 and p = 0.8 gives C(3, 2) times 0.64 times 0.2, again 0.384. The two products contain the same factors in a different order.
Swapping k and p explains the identity
The binomial mass is C(n, k) p to the k times (1 minus p) to the (n minus k). Replace k with n minus k and p with 1 minus p. The combination C(n, n minus k) equals C(n, k) by symmetry. The powers swap: (1 minus p) to the (n minus k) becomes the term raised to k after relabeling, and p to the k becomes the term raised to n minus k. Multiplication is commutative, so the product is unchanged. The argument works for every n, k and p with 0 ≤ p ≤ 1, as long as the trials are independent and share one probability.
What goes wrong if you change only one input
Changing the probability to 0.8 while keeping k = 1 describes a different event, exactly one success at probability 0.8. The mass is 3 times 0.8 times 0.04, which is 0.096. Changing only the count to k = 2 at p = 0.2 gives 3 times 0.04 times 0.8, or 0.096 as well. Both slips give 0.096 and not the 0.384 of the original event. A match between the two wrong versions can make the error look consistent, so test the pair that keeps the event fixed, which means changing both fields. The result of a single change answers a different question.
A second example: five trials at p = 0.3
Consider five trials with success probability 0.3 and exactly two successes. The mass is C(5, 2) times 0.09 times 0.343, which is 10 times 0.03087, or 0.3087. After relabeling, the success probability is 0.7 and the count is 3. The calculator with n = 5, k = 3 and p = 0.7 gives 10 times 0.343 times 0.09, again 0.3087. The page-style check is the same: both labelings need to agree to every digit shown. A third case, ten trials with p = 0.1 and exactly one success, gives 10 times 0.1 times 0.9 to the 9th, about 0.38742, and the relabeled n = 10, k = 9, p = 0.9 case returns the same value.
Extending to the tail events
The relabeling also applies to cumulative events, with a twist: the direction of the inequality flips. At most one success in three trials at p = 0.2 means zero or one success, with probability 0.512 plus 0.384, or 0.896. After relabeling, it becomes at least two successes in three trials at p = 0.8, which is 0.384 plus 0.512, again 0.896. The mass values to add are the same two numbers, since exactly zero successes at p = 0.2 matches exactly three at p = 0.8, and both are 0.512. Forgetting to flip "at most" into "at least" is a common cause of a total that comes out as 0.104 instead of 0.896.
Choosing the convenient labeling
Because both versions agree, you can pick whichever is easier or more natural. Some calculators and tables list only p up to 0.5, so a problem with p = 0.8 is converted to p = 0.2 first. A reader of a report may find "defects" easier to follow than "non-defects". For large n, the choice of label can improve numerical stability, since working with the smaller probability avoids raising a number near 1 to a high power in naive arithmetic. The modern routine in the calculator uses a stable method, so either label gives reliable output, but understanding the symmetry helps you check results by hand.
Relabeling in context
Imagine, as an illustration, a batch of three items where each is defective with probability 0.2. The probability that exactly one item is defective is 0.384. The probability that exactly two items are good is also 0.384, since one defective means two good. The sentence changes, the event does not. This is why a report can state either figure for the same situation, and why checking that the wording of the event matches the inputs matters as much as the arithmetic. A mismatch in labeling between a data table and a calculator is a plausible cause of a wrong answer. When a spreadsheet stores defect rates and the report quotes pass rates, converting one to the other is the same relabeling step, and it needs the count converted as well. Write down the event in words, then write the inputs for each labeling, and confirm that the words and the inputs say the same thing before running either calculation. The same discipline helps when two people compare results: one may report the defect view and the other the pass view of the identical event.
Assumptions behind the equivalence
The equivalence needs independent trials, one common probability, and exactly two outcomes per trial. If a trial can have three outcomes, such as pass, fail and retest, the binomial model does not apply until you group outcomes into two classes. If the probability changes between trials, the count does not follow a binomial distribution. The check confirms an algebraic identity for the stated model and says nothing about whether a real process satisfies the assumptions.
Reproduce the checks
Original label
Open the Binomial Probability Calculator and enter:
- Number of trials
3- Successes / event count
1- Success probability
0.2
Expected output:
Pmf
0.384There is one outcome of the original success type.
Complementary label
Open the Binomial Probability Calculator and enter:
- Number of trials
3- Successes / event count
2- Success probability
0.8
Expected output:
Pmf
0.384Two outcomes have the newly named success type.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- Primary definition and convention reference ↗ · 2026-10-08