This question has a few posts on other forum sites and is an example interview question. I don't think it is answered correctly anywhere so I thought I'd present it here fully.
For a 3 sets tennis game, would you bet on it finishing in 2 sets or 3 sets? Assume that the probability of each player winning a set is constant through the game.
We can calculate the probabilities of each outcome by considering the possible sequences of match outcomes.
Denote the first player winning by Q, and their probability of winning q. Similarly label the probability of the other player winning p, and their win by P.
We have the following possible sequences:
$$QQ, PP, QPQ, QPP, PQP, PQQ$$
$QQ$ means player $q$ won both sets, and this outcome thus has probability $q^{2}$. Similarly, the outcome $PQQ$ has $p$ winning the first set followed by $p$ winning the next two sets, so this sequence has probability $pq^{2}$, and so on.
The expected number of sets is thus:
$$ E(sets) = 2 * (p^{2} + q^{2}) + 3 * (2qp^{2} + 2pq^{2}) $$
If we set p = q then this gives a value of $2.5$ for the expected number of sets - i.e. 2 or 3 sets is equally likely. As we assign player q and p increasingly skewed probability values, the expected number of sets converges to $2$.
Lots of answers to this question seem to have copied and pasted the logic that:
'$p^2 + q^2$ is always $>= 2*p*q$'
I don't see how this has any relevance to the question. The required constrain is that $p + q = 1$, which means that $ p^{2} + q^{2} = 1 - 2*p*q$, but perhaps I have missed something on this.