Probability Puzzles: Parity and Runs
Context
You are given two independent probability problems commonly seen in data-science take-home assessments. Assume all random variables are defined on the same probability space.
Problems
-
Parity of a Bernoulli Sum
-
Let X1, ..., Xn be i.i.d. Bernoulli(p). Let S = Σ_{i=1}^n X_i.
-
Derive a closed-form expression for P(S is even).
-
Waiting Time to First Repeat (Fair Coin)
-
A fair coin is flipped until two consecutive identical outcomes (HH or TT) appear.
-
Find the expected number of flips required.