i just started the course of markov chains and i'm having a few problems with one of the excercises.
Let $Y_1,Y_2, \dots$ be i.i.d random variables with:
$\mathbb{P}(Y_1 = 1) = \mathbb{P}(Y_1 = -1) = \frac{1}{2}$ and set $X_0 = 1, X_n = X_0 + Y_1+ \cdots + Y_n$ for $n \geq0$. Further define:
$$H_0 = \inf\{n \geq0: X_n = 0\}$$
find $\phi(s) = \mathbb{E}(s^{H_0})$.
Know i know that for $0 \leq s < 1$ we have:
$$\phi(s) = \mathbb{E}(s^{H_0}) = \sum_{n<\infty} s^n \mathbb{P} (H_0 = n)$$
the most confusing part is how do i know when $X_n = 0$? The most logical thing to do here for me is to take $n = 1$, then $X_1 = X_0 + Y_1$ and $\mathbb{P}(X_1 = 0) = \mathbb{P}(X_0 = 1,Y_1 = -1) = \mathbb{P}(X_0 = 1)\mathbb{P}(Y_1 = -1) = \frac{1}{2}$
So is $\phi(s) = \frac{1}{2}s$?
Help would be appreciated :)
Kees