Geometric Distribution and the Minimum Number of Trials (Geometrische Verteilung)

15 min · 2 drills

Introduction

A trial is repeated under the same conditions each time: a die is rolled, a ball is drawn with replacement, a ticket is bought. Every trial succeeds with the same probability , independently of the others. The geometric distribution (German: geometrische Verteilung) describes how long you wait for the first success.

The EPM tasks on this topic almost always ask the same question: how many times do you have to try at least, so that at least one success happens with a probability of more than , or ? The answer comes from an inequality that you solve with a logarithm and then round up. Often you first have to find the of a single trial in a separate part of the task, for example for two dice or for a draw of two balls.


The geometric distribution

Let be the number of the trial on which a success happens for the first time. can take the values The first success on the -th trial means: the first trials fail and the -th succeeds. Because the trials are independent, the probabilities are multiplied:

Example: You roll a die until the first 6 appears. The probability that it appears exactly on the third roll is

For the minimum number you need two sums. "No success yet after trials" means: all trials fail. From this follows the complementary event (German: Gegenereignis) "the first success comes on the -th trial at the latest":

is exactly the probability of having at least one success (German: mindestens einmal) in trials. It is the same number as for the binomially distributed number of successes in trials. Some solutions therefore set up the inequality with the number of hits; the calculation is the same in both cases.

The expected value (German: Erwartungswert) tells you how many trials you need on average until the first success:

When rolling for a 6, that is rolls on average.

Way of countingValuesExpected value
: number of the first successful trial
: failures before the first success

The tasks of this topic always count the trials including the successful one: they ask how many rolls, draws or tickets you need in total. This article therefore uses the first row of the table throughout.


Minimum number of trials

We are looking for the smallest for which the probability of having at least one success in trials is greater than a threshold :

Bring the power to one side and take the logarithm of both sides:

Both logarithms are negative, because and lie between and . Dividing by the negative number reverses the inequality sign:

The fraction is almost never a whole number. Because is a natural number, you take the next whole number above it, so you always round up, even at . Instead of you may use any other logarithm, for example : the quotient stays the same.

Procedure

  1. Find : the success probability of a single trial, if it is not given directly.
  2. Take the complement : the probability that a trial fails.
  3. Write the inequality: , rearranged to .
  4. Take logarithms and divide by , reversing the sign.
  5. Round up and check with and : at the probability is still below the threshold, at it is above.

A special case: if the quotient is exactly a whole number, the sign decides. With and "greater than " you get , so and . With "at least ", is enough.


The probability p of one trial

A "trial" can itself consist of several parts: two dice at once, two balls from an urn, a coin and a die. Then you first find the probability that one such round succeeds, and only then put it into the inequality. The rounds are independent of each other, because before each round everything is put back or thrown again.

One roundTool for
one die, one coin, one spinnerLaplace rule: favourable over possible outcomes
two or three dice or outcomes, each die counted separately
balls at once out of possible draws, binomial coefficients
"at least one ..." within the roundcomplement:
" or "addition rule:
two machines, two supplierstotal probability:

For the counting rules see "Combinatorics", for the addition rule and total probability "Conditional Probability", for "exactly times" in several trials "Binomial Distribution".


Examples

Example 1: The first success on the k-th trial

A spinner has five equal sectors, one of which wins. It is spun until you win. So and .

The first win exactly on the fourth spin:

No win yet after three spins, and the complementary event:

As a check, add up the single values: .

On average you need spins.

Example 2: Just above a whole number

At a raffle stall each ticket wins with probability . How many tickets do you have to buy at least to win at least once with a probability of more than ?

The check shows why you have to round up here too: with tickets , just below . Only with tickets is .

Example 3: p from two dice

Two dice are thrown at the same time. A round succeeds if the sum is 9. How many times do you have to throw at least, so that a sum of 9 appears at least once with a probability of more than ?

A sum of 9 comes from the four outcomes , , and out of 36:

Example 4: Two balls at once

An urn holds 5 white and 3 black balls. You draw two balls at the same time, note them and put both back. A round succeeds if both balls are black. We want the minimum number of rounds for a probability of more than .

Within one round the draw is without replacement, so you count draws:

Between rounds the balls are put back. That is why every round has the same and the formula applies.

Example 5: "or" with an overlap

From a deck of 52 cards a card is drawn and put back. A round succeeds if the card is a heart or a face card (jack, queen, king). We want the minimum number for more than .

There are 13 hearts and 12 face cards. The three heart face cards are in both numbers and are subtracted once:

Example 6: Total probability

A dealer gets of his goods from supplier A with rejects and from supplier B with rejects. He inspects randomly chosen pieces, each independently of the one before. How many pieces does he have to inspect at least to find at least one defective piece with a probability of more than ?


EPM task: full solution

Task: Two fair dice are thrown at the same time. The throw counts as a success if at least one 6 is among them. The throw is repeated independently.

a) What is the probability that a throw is a success? b) How many times do you have to throw at least, so that at least one success happens with a probability of more than ? c) How many throws do you need on average until the first success? d) What is the probability that the first success happens exactly on the third throw?

Solution:

a) Via the complement: neither die shows a 6.

As a check by counting: of the 36 outcomes, contain at least one 6, because is counted only once.

b) A throw fails with :

Check: with throws the probability is , with throws .

c)

d) The first two throws fail, the third succeeds:


Typical EPM questions

The German task text almost always reads: "Berechnen Sie, wie oft man mindestens ... muss, damit die Wahrscheinlichkeit, mindestens einmal ... zu erhalten, größer als ... ist!"

  • Minimum number without preliminary work: is given as a percentage or as a simple Laplace fraction (coin, die, spinner). The whole task is the inequality.
  • Parts a) and b): a) asks for of one round, b) for the minimum number (German: Mindestanzahl). The work in a) is combinatorics, the addition rule or total probability, as in Examples 3 to 6.
  • Two events in one task: for example " and " in a) and " or " in b), each with its own threshold. You run the same procedure twice with a different .
  • "with replacement", "independently", "at the same time ... then everything back": these phrases say that every round has the same . Without them the formula would not apply.
  • Stating the result: as a natural number, as a fraction or a decimal.

Common mistakes

Mistake 1: The sign not reversed

From , dividing gives , not . If you leave the sign as it is, you get an upper bound and end up looking for a largest instead of a smallest . The check with and reveals the mistake.

Mistake 2: Rounded down

The quotient in Example 2 tempts you to answer . With tickets, however, the probability is , which is not greater than . For minimum numbers you always round up.

Mistake 3: and or and swapped

The power takes the probability of failure, the right-hand side takes the rest . If you set up or , you are calculating a different event. For , for example, you get , which obviously cannot be right.

Mistake 4: Linear instead of with the power

With and a threshold of , the approach gives the answer . The correct answer is , because the probabilities of the single trials overlap and must not be added. The expected value is not a minimum number either: it says how long you wait on average, not how long you have to wait to be almost sure.

Mistake 5: Rounded too early

If in Example 6 you round the logarithm to , you get and the answer . With pieces, however, the probability is only . Calculate the logarithms with at least four significant digits, or form the quotient directly on the calculator.

Mistake 6: The overlap in "or" counted twice

In Example 5, cards instead of gives , and from that instead of . The addition rule subtracts the common part once.


Check your knowledge

Your turn1 of 2

A basketball player scores with a probability of per shot. How many times does he have to shoot at least, so that he scores at least once with a probability of more than ?

Your turn2 of 2

You roll a die until the first 6 appears. What is the probability that it appears exactly on the third roll?


Formulas to remember

First success on the -th trial:

No success yet after trials, at least one success in trials:

Expected value:

Minimum number for a threshold :

Now practise it

Geometric Distribution and the Minimum Number of Trials (Geometrische Verteilung)

Trainer · Probability & Combinatorics

Practise
Next: Law of Sines
0/2

Was this article helpful?