Suppose that $\xi_1, \xi_2,..$ are independent copies of random variable $\xi$ having distribution $$\mathbb{P}(\xi=1)=\frac{1}{3}, \text{ } \mathbb{P(\xi=-1)=\frac{2}{3}}.$$
Define: $S_0=0$, $S_k=x_1+\xi_2+...+\xi_k,$ $k\geq 1,$
$\sigma_8 = \begin{cases} \min\{ 1 \leq k\leq 8 : S_k=0\} \\ 9 \text{ if } S _k \neq 0 \text{ for }1 \leq k \leq 8. \end{cases} $
Find distribution of random variable $\sigma_8$.
I have no examples how to solve this problem. I don't know how to start. I understand that I have $8$ steps to reach $0$ and I start from $0$.
I think I should do this:
$S_1=\xi_1$ and $$\mathbb{P}(S_1=1)=\mathbb{P}(\xi_1=1)=\frac{1}{3}$$ $$\mathbb{P}(S_1=-1)=\mathbb{P}(\xi_1=-1)=\frac{2}{3} $$
$S_1=\xi_1+\xi_2$ $$\mathbb{P}(S_2=0)=\mathbb{P}(\xi_1=1,\xi_2=-1)+\mathbb{P}(\xi_1=-1,\xi_2=1)=\frac{1}{3}*\frac{2}{3}+\frac{2}{3}*\frac{1}{3}=\frac{4}{9}$$.
I think $S_3\neq 0 $ so do I need to find only $S_4=0$,$S_6=0$ and $S_8=0$? Maybe there is shorter way to find it?
You can only return to the origin in even number of steps, so $P(\sigma_8=k)=0$ if $k$ is odd and $\neq 9$. $P(\sigma_8=2)=\frac 1 3 \frac 2 3$, $P(\sigma_8=4)=2(\frac 1 3 \frac 2 3)^{2}$ since the only possible routes here are $0\to 1\to 2\to 1\to 0$ and $0 \to -1\to -2 \to -1 \to 0$. Can you now compute $P(\sigma_8=6)$ and $P(\sigma_8=8)$? Note that $P(\sigma_8=9)=1-P(\sigma_8=2)-P(\sigma_8=4)-P(\sigma_8=6)-P(\sigma_8=8)$