Cross-checking a first-success sum against an at-least-one event
Add the probabilities of a first success on trial one, two and three, then compare the total with one minus the chance of three straight failures. The two routes must agree, and the way they agree explains both calculations.
Two routes to the same probability
Suppose a coin that lands heads with probability one half is flipped up to three times, and you want the probability of seeing at least one head. There are two natural ways to compute it. The first lists every way the story can stop with a success: heads on the first flip, or tails then heads, or tails then tails then heads. The second asks about the one outcome that fails the requirement, three tails in a row, and subtracts its probability from one. Both routes describe the same event from different sides, so they must give the same number. This worksheet runs both and compares them on the page. The geometric distribution calculator supplies the three stopping probabilities, and the independent events calculator supplies the complement-based answer. When the two totals match, you have a built-in check on your inputs, and when they do not, one of the routes has an input or a model error worth finding.
What first success on trial k means
The geometric distribution used here counts the trial on which the first success happens. Writing K for that trial index, the probability that K equals k is (1 minus p) raised to the power k minus 1, times p. The exponent counts the failures that must come before the success, and the final factor p is the success itself. With p equal to 0.5, the first trial gives 0.5, because no failure comes first. The second trial gives 0.5 times 0.5, which is 0.25, because one failure precedes the success. The third gives 0.5 times 0.5 times 0.5, which is 0.125. The label matters. K equals 2 does not mean a success on trial two in general. It means failure on trial one and success on trial two. A success on trial two after an earlier success is a different, overlapping event.
Why the three probabilities can simply be added
Probabilities of separate events add only when the events cannot happen together. The three stopping events qualify because each names the single trial on which the first success occurs, and a sequence cannot have its first success on trial one and also on trial two. Every sequence that contains at least one success in three trials belongs to exactly one of these events, determined by where its first success sits. Nothing is counted twice and nothing is left out. That is why 0.5 plus 0.25 plus 0.125 equals 0.875 without any correction term. If the events were defined as plain success on trial one, success on trial two and success on trial three, they would overlap, since the sequence heads, heads, heads belongs to all three, and the sum would exceed the true probability. Using the word first is what removes the overlap.
The complement route
The second calculation focuses on the only sequence that fails the requirement: no successes through trial three. With independent trials and a constant failure probability of 0.5, the chance of three failures is 0.5 times 0.5 times 0.5, which is 0.125. Subtracting from one gives 0.875. The independent events calculator does this in one step when you enter the three probabilities 0.5, 0.5 and 0.5, and its at-least-one output uses the formula one minus the product of the failure probabilities. The method scales well. Checking at least one success in ten trials needs one product of ten factors and one subtraction, while the stopping-event route needs ten separate terms. The longer route still earns its place as a cross-check, because it exposes the distribution of the waiting time and not only the total.
Why the two answers always match
The agreement is an identity, and a short argument shows it. The first-success terms for trials one through n are p, (1 minus p) times p, (1 minus p) squared times p, and so on up to (1 minus p) to the power n minus 1, times p. They form a geometric series with first term p and ratio 1 minus p. The sum of such a series is p times (1 minus (1 minus p) to the power n) divided by (1 minus (1 minus p)), and because the denominator equals p, the result is 1 minus (1 minus p) to the power n. That is exactly the complement formula. With p equal to 0.5 and n equal to 3, it gives 1 minus 0.125. The match is therefore guaranteed by algebra, not by luck, as long as both sides use the same p and the same number of trials.
A second example with a smaller success chance
Take a process that succeeds with probability 0.2 on each independent attempt, and look at four attempts. The first-success probabilities are 0.2 on trial one, 0.8 times 0.2 equal to 0.16 on trial two, 0.64 times 0.2 equal to 0.128 on trial three, and 0.512 times 0.2 equal to 0.1024 on trial four. Their sum is 0.2 plus 0.16 plus 0.128 plus 0.1024, which is 0.5904. The complement route multiplies four failure probabilities of 0.8 to get 0.4096, and one minus that is again 0.5904. Notice how slowly the total grows. Four attempts at one chance in five give only about a 59 percent chance of at least one success, and the individual terms shrink because each later success requires surviving more failures first. The numbers are illustrative and do not describe any particular device or experiment.
When the trial probabilities differ
The independent events calculator accepts a list, so each trial can carry its own success probability. The complement formula still holds: the chance of no success is the product of the individual failure probabilities, and at least one success is one minus that product. The stopping-event view also survives with a modification. First success on trial k then equals the product of the failure probabilities of trials one through k minus 1, times the success probability of trial k. The geometric distribution calculator cannot represent this, because it assumes one constant p, so the comparison has to be done term by term in that case. Take probabilities 0.5, 0.4 and 0.3. Stopping terms are 0.5, 0.5 times 0.4 equal to 0.2, and 0.5 times 0.6 times 0.3 equal to 0.09, for a sum of 0.79. The complement is 1 minus 0.5 times 0.6 times 0.7, which is 1 minus 0.21, or 0.79.
Fixed horizon versus waiting time
The two calculators answer different questions, and mixing them up is the most common error in problems like this. The geometric distribution describes a waiting time with no upper limit: K could be 1, 2, 3, or any larger integer, and the probabilities of all those values sum to one. At least one success by trial three is a statement about a fixed horizon. It is the cumulative probability that K is at most 3, which equals one minus the probability that K exceeds 3. With p equal to 0.5, the chance that the first success comes after trial three is 0.5 cubed, or 0.125, which is the same number as three failures in a row. Seeing that these are one quantity viewed two ways helps when a textbook problem switches between phrases like at least once, within three attempts, and no later than the third trial.
Common ways this check goes wrong
One mistake is to add plain success probabilities instead of first-success probabilities. With p equal to 0.5 and three trials, that gives 1.5, which cannot be a probability and signals the error immediately. Another is to apply the complement formula with success probabilities in place of failure probabilities, which computes the chance that every trial succeeds instead. A third is to mix two different values of p across the two routes, for example using 0.5 in the geometric calculator and 0.25 in the independent events list, then wondering why the totals disagree. Finally, both routes assume independence. If a failure on one trial changes the chance of success on the next, as when draws are taken without replacement from a small pool, neither calculation is valid as written. Check that assumption before trusting any agreement between the two totals.
Reading the running total
Each stopping term adds to a running total that is the cumulative probability of success so far. With p equal to 0.5 the totals after trials one, two and three are 0.5, 0.75 and 0.875. The shortfall from certainty is 0.5, then 0.25, then 0.125, and it halves each time because the next trial removes half of the remaining chance of failure. A fourth trial would raise the total to 0.9375, and a fifth to 0.96875. The gap never reaches zero, which reflects the fact that an unlimited run of failures always has a positive, if tiny, probability. Looking at the running total also shows that each stopping term equals p times the probability still unclaimed before it. The third term, 0.125, is half of the 0.25 gap that remained after two trials, because p is one half, and the same relationship holds for the fourth and fifth terms.
How many trials to reach a target
The complement formula can be turned around to plan a number of attempts. To reach a chance of at least 95 percent, the failure product must fall to 0.05 or below. With p equal to 0.5, five trials leave 0.5 to the fifth power, which is 0.03125, so the chance of at least one success is 0.96875, while four trials leave 0.0625 and fall just short at 0.9375. With p equal to 0.2, the failure factor is 0.8 per trial. Thirteen trials leave about 0.055 and fourteen leave about 0.044, so fourteen are needed. These counts are illustrative and assume independent trials with the stated constant probability. The slow growth for small p is why repeating a low-probability attempt many times is less reliable than intuition suggests, even though each attempt is independent.
Entering the values in the two tools
The geometric distribution calculator takes the success probability p and the trial index k, and its probability mass output is the chance that the first success lands exactly on trial k. Run it once for each k you want to include, and add the outputs yourself. The independent events calculator takes a comma separated list of probabilities, here 0.5,0.5,0.5, and reports the at-least-one probability among its outputs. Make sure the list holds success probabilities, one per trial, and not failure probabilities. If the two totals differ in the last digit, the cause is usually floating-point display and not an error. Three terms with exact binary fractions, as in the default case, match exactly. Terms such as 0.16 or 0.128 are decimal fractions that binary arithmetic cannot store exactly, so tiny residuals are possible.
Reproduce the checks
First trial
Open the Geometric Distribution Calculator and enter:
- Success probability
0.5- Successes / event count
1
Expected output:
Pmf
0.5No failure precedes this success.
Second trial
Open the Geometric Distribution Calculator and enter:
- Success probability
0.5- Successes / event count
2
Expected output:
Pmf
0.25One failure precedes this success.
Third trial
Open the Geometric Distribution Calculator and enter:
- Success probability
0.5- Successes / event count
3
Expected output:
Pmf
0.125Two failures precede this success.
At least one by trial three
Open the Independent Events Calculator and enter:
- Probabilities
0.5,0.5,0.5
Expected output:
At least one
0.875This fixed-horizon event includes all three stopping cases.
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
- Primary definition and convention reference ↗ · 2026-10-08