Let $(X_n)$ be a sequence of iid random variables with mean $\mu$ and variance $\sigma^2\lt \infty$. Set $S_0=0$ and $S_n=X_1+...+X_n$ for $n\ge 1$. Let $N$ be a bounded non-negative integer-valued random variable which is independent of the sequence $(X_n)$. a) Show $E(S_N)=\mu E(N)$. b) Find $E(S^2_N)$ and $\text{Var}( S_N)$ in terms of $\text{Var}(N)$.
Now consider the case where $X_1$ only takes values $1$ and $-1$. Fix $a\ge 0$ and set $T=\min\{n\ge 0:|S_n|=a\}$. c) Show $E(S_T)=\mu E(T)$ and find $\text{Var}(S_T)$
I've solved a) and b) using the law of total expectation but I'm at a loss as to why we need the assumption that $N$ is independent of the sequence $(X_n)$ and this is preventing me from making sense of c). For instance, my steps for a) are essentially
- $E(S_N)=E(E(S_N|N=n))$
- $E(S_N)=\sum_n E(S_n)P(N=n)$
- $E(S_N)=\sum_n \mu nP(N=n)$
- $E(S_N)=\mu E(N)$
The steps for b) are very similar with only algebraic manipulation beyond the above. To the best of my knowledge, every step above did not care about what $N$ is independent of, so, I could just replace $T$ with $N$ thus the results for c) are the same in terms of $E(T)$ and $\text{Var}(T)$?(but surely the question setter would not do that).
Please don't answer this problem for me, I will be very grateful for a small nudge in the right direction just so I can proceed with the question myself.
EDIT: I am interested in whether this question has not been answered because I have explained my intentions poorly or if my case is plausible? Please leave me a comment either way.
Let me try to give you a helping hand:
You have used the independence of $N$ and $X_1,X_2,...$ exactly at this step:
$$E[S_N|N=n]=E[S_n]$$
To see why this is not true in the dependent case, take $X_i$ i.i.d. $\operatorname{Bernoulli}\left(\frac{1}{2}\right)$ (coin tosses), and $N$ be the number of consecutive $0$s (obviously $N$ depends on $X_2,X_2,\ldots$).
What happens now when $N=n$? It means the first $n$ $X$s are zero and the $n+1$ is one:
$$X_1=X_2=\ldots=X_n=0\text{ and }X_{n+1}=1$$
So:
$E[S_N|N=n]=E[X_1|N=n]+\ldots+E[X_n|N=n]=0+\ldots+0 =0$
However:
$E[S_n]=E[X_1]+\ldots+E[X_n]=\frac{1}{2}+\ldots+\frac{1}{2}=\frac{n}{2}$
Hope this helps to clear up your confusion.
Note: One more minor thing, your Step 1. for a) should read $E(E(S_N|N))$ instead of $E(E(S_N|N=n))$, so the first two steps should be:
$E(S_N))=E(E(S_N|N))=\sum_n E(S_N|N=n)P(N=n)=\sum_n E(S_n)P(N=n)$
(the independence was used for the last equality)