Exercise · Volume 1 · 1.2.10-4
Exercise 1.2.10-4
not stated yet in Lean solution written
| Rating | M10 |
|---|---|
| Markers | M (mathematical) |
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.10 of Volume 1. Companion chapter: Analysis of an algorithm |
The task
Give a closed formula for the probability of heads in tosses of a biased coin.
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
The generating function is .
Hint 2
Use the binomial theorem.
Solution
Show the solution
By (17), and , so as in (18). The binomial theorem gives . So
The same follows by counting: heads occur at choices of positions, each with probability .
Check
For and the values are , which sum to .
Remarks
Using Pascal's rule one checks the recurrence (17) directly.
This solution is drafted, and a person has not reviewed it yet. The source.
In Lean
not stated yet The exercise is not stated in Lean yet.
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.