Step by step
The question
Question: each try has a probability of success of 0.5: what is the probability of a first success within 4 tries?
1 Name p and q
p, the chance of a success on one try, is 0.5.
q, the chance of a fail, is 1 minus p: 0.5.
Every try has the same chance, and one try does not change the next.
2 None in 4 tries
Within 4 means on try 1, or 2, up to 4.
The only other way: all 4 tries fail.
All 4 fail: q times itself 4 times.
That is 0.0625.
3 The rest
Everything else has a success within 4: 1 minus that is 0.9375.
Careful!
p to the power 4 would be 4 successes in a row.
We only need one.
4 Check
Let's check by adding each try: 0.5000 plus 0.2500 plus 0.1250 plus 0.0625.
That is about 0.9375.
So it is right!
Let's look back.
First: name p and q.
Then: none in 4 tries.
Then: the rest.
Last: check.