Intro to Probability - YAQ Week 7

In this space I post the most common and recurrent questions of the week. It can be used as additional material you can use to further and test your understanding.

Question

In an infinite sequence of experiments with success probability $p\in (0,1)$ and failure probability $q=1-p$, what is the probability of observing a run of $n$ consecutive successes before a run of $m$ consecutive failures?

Answer

Question

Flip a coin three times. Assume that the coin is biased with the probability $P(H)$ of flipping heads amounting to 0.3 and determine the expected number of heads observed.