been stuck on this optional stopping theorem quesiton for some time. I feel like I'm heading in the right direction but I am not sure if I am right.
Problem
Consider a random walk $\left(S_{n}\right)_{n}$ with i.i.d. increments $$ X_{i}= \begin{cases}-1 & 1 / 2 \\ 0 & 1 / 4 \\ 1 & 1 / 4\end{cases} $$ Suppose $S_{0}=0$. Let $T=\inf \left\{n: S_{n}\text{ is either }100\text{ or }-10\right\}$.
- Find $E[T]$.
- Find $\mathbb{P}\left(S_{T}=100\right)$.
My attempt $$E[x_i]=(-1) \cdot \frac{1}{2}+(0) \cdot \frac{1}{4}+(1) \cdot \frac{1}{4} = -\frac{1}{4}$$
We need a martingale to use optional stopping theorem. Hence, I used: $$M_{n}=\sum^{n} x_{i}+\frac{n}{4}$$
I showed this a martingale. However I am stuck on how to move forward from here:
$$E\left[M_{T}\right]=E\left[\sum^{T} x_{i}+\frac{T}{4}\right]$$
$$E[T]=\frac{- E\left[S_{T}\right]}{4}$$
So would this mean $E[T] = -400$ or $40$ depending if $S_{n} = -100$ or $10$.