Steply

Flip a coin until tails, P(first tails within 3 flips)

Step by step, with the reason for every step · The geometric distribution · University Statistics

Step by step

The question

Question: we flip a coin until we get tails: what is the probability that the first tails comes within 3 flips?

p = 12: first success within 3 flips?

1 Name p and q

p, the chance of a success on one try, is 1/2.

p = 12

q, the chance of a fail, is 1 minus p: 1/2.

q = 1 − 12 = 12

Every try has the same chance, and one try does not change the next.

every try: the same p, and the tries do not affect each other

2 None in 3 flips

Within 3 means on flip 1, or 2, up to 3.

The only other way: all 3 flips fail.

within 3: on flip 1, or 2, ... or 3
the other way: all 3 fail

All 3 fail: q times itself 3 times.

That is 1/8, about 0.1250.

all fail = q3 = (12)3 = 18 ≈ 0.1250

3 The rest

Everything else has a success within 3: 1 minus that is about 0.8750.

P(X ≤ 3) = 1 − 0.1250 ≈ 0.8750

Careful!

p to the power 3 would be 3 successes in a row.

We only need one.

Careful: not 0.53 ✗

4 Check

Let's check by adding each flip: 0.5000 plus 0.2500 plus 0.1250.

P(1) + ... + P(3) = 0.5000 + 0.2500 + 0.1250

That is about 0.8750.

So it is right!

≈ 0.8750

Let's look back.

First: name p and q.

Then: none in 3 flips.

Then: the rest.

Last: check.

Answer
Careful: not 0.53 ✗

Your turn

Try this one yourself, then check:

p = 12: first success within 4 flips?
Show the answer
P(X ≤ 4) ≈ 0.9375

More from The geometric distribution

The whole lesson: The geometric distribution →