Two people play a tennis game up to $7$ points (first to $7$ wins), with equal probability $\frac12$ of winning each point. What is the expected number of times in the game where the score of the two players are equal (not including $(0,0)$?
I am having trouble enumerating the paths honestly. Should I focus on trying to enumerate the paths in $\mathbb{Z}^2$ starting from $(0,0)$ up to the top and right walls of a side of a $7\times7$ square with its bottom left corner at the origin (excluding the paths where the endpoint is $(7,7)$ since that's not a possible score) to see how many times they hit $(i,i)$? This seems extremely cumbersome, and I want to know if there's an organized way of looking at it. Anything will help, thank you.
Here's one method (not sure if it's best). Each game can be a path from $(0,0)$ to $(7,7)$, where the game itself stops after hitting the $7$ wall (once you hit the wall, the rest of the path to $(7,7)$ is determined anyway, so adding on these path segments doesn't hurt). Counting paths from $(0,0)$ to $(7,7)$ is a well-known combinatorial problem. Then the probability of hitting $(i,i)$ ($0<i<7$) is gotten by counting paths from $(0,0)$ to $(i,i)$ to $(7,7)$. Finally, as rikhavshah pointed out in the comments, linearity of expectation tells us we can add these six probabilities to get the answer.
Edit: I'll expound a bit on how linearity of expectation applies here. Say the random variable $Y$ counts number of times the score is equal -- i.e., the number of spaces $(i,i)$ the path passes through ($1 \leq i \leq 6$). (So $Y$ can take any integer value between $0$ and $6$ inclusive.) The question asks for $\mathbb E[Y]$. Now we can express $Y$ as a sum of random variables $$ Y = \sum_{i=1}^6 I_i$$ where $I_i$ is the indicator random variable for the path passing through $(i,i)$ (i.e., it takes on the value $1$ if the path passes through $(i,i)$ and $0$ if it does not). Now linearity of expectation tells us $$\mathbb E[Y] = \sum_{i=1}^6 \mathbb E[I_i]$$ and this result holds regardless of any dependence relations between the $I_i$s. The expectation of an indicator random variable is a probability; i.e., $\mathbb E[I_i] = \mathbb P[A_i]$ where $A_i$ is the event that the path passes through $I_i$. Thus $$\mathbb E[Y] = \sum_{i=1}^6 \mathbb P[A_i]$$