There is a gambler who gambles $t$ rounds every day. In each round, there is a half probability of winning \$1 and a half probability of losing \$1.
Leave the game when the total profit is $+1$ or when the maximum number of rounds is reached.
Ask for his daily income expectation.
My idea is to consider a random walk process, there is an absorbing wall at $n = 1$, and then I calculate the cumulative probability of hitting the absorbing wall in $t$ rounds, multiplying it by $+1$ is the expectation of winning money.
But I'm having trouble calculating the expectation of the situation where he lose money.
I calculated that the game is over and the probability of losing $k$ without hitting the absorbing wall is
$$2^{-t-1} \left((-1)^{k+t}+1\right) \binom{t}{\frac{k+t}{2}}$$
But I don't know how to calculates this summation.
$$\sum _{k=0}^t k\times 2^{-t-1} \left((-1)^{k+t}+1\right) \binom{t}{\frac{k+t}{2}}$$
Does this summation have a closed-form solution? Or how to estimate it asymptotically?
Here we show the following is valid \begin{align*} \color{blue}{\sum_{k=0}^t\frac{k}{2^{t+1}}\left((-1)^{k+t}+1\right)\binom{t}{\frac{k+t}{2}} =\begin{cases} \frac{t}{2^{t+1}}\binom{t}{\frac{t}{2}}\qquad\quad t\ \mathrm{even}\\ \frac{t+1}{2^{t+1}}\binom{t}{\frac{t+1}{2}}\qquad\ \ t\ \mathrm{odd}\\ \end{cases}}\tag{1} \end{align*}
Comment:
In (2) we change the order of summation $k\to t-k$.
in (3) we consider even $k$ only since terms with odd $k$ are zero.
In (4) we split the sum.
in (5) we use the binomial identity $\binom{p}{q}=\frac{p}{q}\,\binom{p-1}{q-1}$.
In (6) we shift the index of the right-hand sum by one to start with $k=0$.
In order to simplify (6) we consider even and odd cases for $t$ separately.
Case $t=2q$ even:
Case $t=2q+1$ odd: