We randomly draw balls one by one without replacement from an urn with $w$ white balls and $b$ black balls until the urn is emptied. We call the event of a consecutive appearance of two balls of distinct colors a color switch. What is the expected number of color switches in this process?
We can model this as a random walk on a lattice. I do not think the probability of a color switch at a pair of given consecutive draws starting at the $i$'th draw is independent of $i$. Am I right?
No, it is identical for all $i$ in $1$ to $b+w-1$.
The probability for a colour switch after draw $i$ (call this event $S_i=1$), is the probability that draw $i$ is one colour and draw $i+1$ is the other. $$\forall i{\in}\{1,..,b{+}w{-}1\}~~, ~~\mathsf P(S_i{=}1)=\dfrac{\ldots}{\ldots~\ldots}$$
That will help you find the expectation.
For the variance, note that events $S_i{=}1, S_j{=}1$ are not going to be independent.$$\mathsf P(S_i{=}1,S_j{=}1)=\begin{cases}\mathsf P(S_i{=}1) &:& i=j, i{\in}\{1,..,b{+}w{-}1\},j{\in}\{1,..,b{+}w{-}1\}\\\ldots &:& \lvert i-j\rvert=1, i{\in}\{1,..,b{+}w{-}1\},j{\in}\{1,..,b{+}w{-}1\}\\\ldots &:&\lvert i-j\rvert>1, i{\in}\{1,..,b{+}w{-}1\},j{\in}\{1,..,b{+}w{-}1\}\\0&:& i{\notin}\{1,..,b{+}w{-}1\} \lor j{\notin}\{1,..,b{+}w{-}1\} \end{cases}$$