PROBABILITY WORKSHEETS

Checking binomial results when the success probability is zero or one

When the success probability is exactly 0 or exactly 1, the number of binomial successes is certain. These endpoint cases give simple controls for what the count field means.

Why endpoint inputs make good controls

Most binomial results are hard to check by eye, since they involve combinations and powers. At p = 0 or p = 1 the answer is known in advance. If success is impossible, there are zero successes in every run. If success is certain, there are n successes. A calculator that disagrees with these facts has a wrong setting, a mislabeled output or a misreading of k. Running the endpoint cases before a real calculation takes seconds and confirms that the count means what you expect and that the probability and cumulative outputs are labeled the way you read them.

Success probability zero

With n = 5, k = 0 and p = 0, the probability of exactly zero successes is 1, since every one of the five trials fails. The cumulative probability through zero is also 1, because the only count at or below zero is zero itself. The binomial formula gives C(5, 0) × 0⁰ × 1⁵, and the calculator treats 0⁰ as 1, which is the standard convention in this formula. Raising k to 1 at p = 0 gives a mass of 0, since one success cannot occur, while the cumulative probability stays at 1 because it already includes the certain count of zero.

Success probability one

With n = 5, k = 5 and p = 1, the mass at five successes is 1 and the cumulative probability through five is 1. Every trial succeeds, so five is the only count with any probability. At k = 4 with p = 1 the mass is 0, because four successes cannot occur, and the cumulative probability through four is also 0, since no count at or below four has any probability. At k = 0 and p = 1 the mass and the cumulative probability are both 0 as well. The pattern at p = 1 mirrors p = 0: certainty sits on the largest possible count instead of the smallest.

What the cumulative output reveals

The pair of outputs distinguishes the two meanings of k. At p = 1 and k = 4, mass and cumulative are both 0, which tells you the cumulative output counts everything up to and including 4 and finds nothing there. At p = 0 and k = 1, the mass is 0 but the cumulative is 1, because the cumulative total includes the certain outcome at 0. If a calculator showed a nonzero mass at k = 1 for p = 0, or a cumulative below 1, either the inputs were swapped or the outputs were read from the wrong fields. These small tests expose swapped n and k as well, since the tool would reject a k larger than n.

Near-endpoint values behave smoothly

The endpoint results are the limits of nearby inputs. At p = 0.001 with n = 5 and k = 0, the mass is 0.999⁵, about 0.99501, close to the certain value of 1. At p = 0.999 with n = 5 and k = 5, the mass is the same 0.99501. Moving from 0.001 to 0 changes the answer smoothly from 0.99501 to 1. This continuity is reassuring. It also reminds you that p = 0 and p = 1 are modeling decisions. A probability of 0.001 allows the rare event, and a probability of 0 forbids it outright, so the choice has consequences that a small numerical difference hides. Over many trials the difference compounds: at p = 0.001, ten thousand trials would be expected to produce about ten successes, while at p = 0 they produce none. A model that sets the probability to zero cannot be surprised by an observed success, and any such observation would simply contradict it.

Certainty is an assumption of the model

The inputs p = 0 and p = 1 are assumptions in these controls, not conclusions drawn from data. Observing no successes in a short run does not prove the success probability is zero. If a process produced no successes in five trials, a binomial model with p = 0.1 would assign that outcome probability 0.9⁵ ≈ 0.59, which is not unusual. Treating an observed zero as an estimate of exactly zero is a known error in reasoning about small samples. The endpoint checks apply when the model has been told the probability is 0 or 1, and they say nothing about how that probability was obtained.

Using endpoint controls to test a worksheet

A good sequence for a new binomial worksheet is short. Enter p = 0 and check that the mass at 0 is 1. Enter p = 1 and check that the mass at n is 1. Then try a middle value such as p = 0.5 with n = 2, where the masses are 0.25, 0.5 and 0.25. If any of these fails, stop and fix the setup before running a harder case. The same sequence helps when building a spreadsheet formula, because the endpoints are easy to verify and a formula that mishandles zero powers or empty products often fails there first. In a spreadsheet, the usual culprit is a power of zero that returns an error or a zero instead of 1 when the exponent is zero. Another is a factorial or combination routine that rejects k = 0 or k = n. The endpoint tests exercise exactly those paths, which is why they are worth running even when the tool in front of you is already trusted.

Sums of masses and the total

Another control is that all masses add to 1. At p = 0 the masses over k = 0 to 5 are 1, 0, 0, 0, 0 and 0, and at p = 1 they are 0, 0, 0, 0, 0 and 1. At p = 0.5 and n = 5, they are 0.03125, 0.15625, 0.3125, 0.3125, 0.15625 and 0.03125. All three lists total 1. The endpoint lists show most clearly what the cumulative output does: it is a running total, which in the p = 0 case jumps to 1 at the first entry and stays there, and in the p = 1 case stays at 0 until the final entry.

What these controls leave out

The controls verify interpretation of fields and boundary behavior of the binomial calculator. They do not estimate probabilities, test whether independent trials with a constant success probability describe a real process, or give any guidance on small samples. Real data seldom have exactly zero or one as a success probability, so these cases serve as tests and teaching examples rather than as typical models.

Reproduce the checks

No successes possible

Open the Binomial Probability Calculator and enter:

Number of trials
5
Successes / event count
0
Success probability
0

Expected output:

Pmf

1

Cdf

1

Zero is the only possible count under this input.

Every trial succeeds

Open the Binomial Probability Calculator and enter:

Number of trials
5
Successes / event count
5
Success probability
1

Expected output:

Pmf

1

Cdf

1

Five is the only possible count.

An impossible lower count

Open the Binomial Probability Calculator and enter:

Number of trials
5
Successes / event count
4
Success probability
1

Expected output:

Pmf

0

Cdf

0

No outcome lies at or below four in this endpoint model.

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

Related tasks