Two Probability Exercises
Exercise 1
A and B are playing a game (e.g. table tennis), which comprises 5 sets; whoever firstly wins 3 sets is the winner. We make two assumptions: (a) The probability that A wins a set is
Solution. Let
I asked myself this question: Is this winning probability
n_out_of_2n_minus_1 <- function(n, p)
{m <- 2*n - 1
s <- 0
for(j in n:m) {
s <- s + choose(m, j) * p^j * (1-p)^(m-j)
}
return(s)
}
x <- seq(0.001, 0.999, length.out = 1000)
y <- n_out_of_2n_minus_1(n = 3, p = x)
plot(x, y, type = 'l', xlab = 'p', ylab = 'Winning probability')
abline(a = 0, b = 1, col = 'red', lty = 2)
abline(v = 0.5, col = 'red', lty = 2)

The above plot shows that: the winning probability is
, if , , if , , if .
This is interesting!
Exercise 2
Two gamblers, A and B, are playing a game of 13 rounds. The rule is: Whoever firstly wins 7 rounds will collect the entire prize. All the rounds are independent; the probability that A wins a round is
So, here I am talking about the famous problem of points (AKA division of the stakes).This wikipedia article provides a solution. The key is to figure out A’s winning probability if they carry on the game until round 13. Now, I want to find A’s winning probability with a Markov chain approach.
The state space is
The transition matrix is
Note that if they carry on the game A’s winning probability is given by
where
Therefore,
which is equal to