Consider a particle that starts at position 0. At each time step, the particle moves one step to the left or one step to the right with equal probability. What is the variance of the particle at time step n?
$X = X_1 + X_2 + ... + X_n$
The answer is n but I'm a little confused about how to calculate $Var[X_i]$.
As far as I understand it X can take values -1 and 1. Thus, $$ E[X_i] = \mu = 0 $$
which implies
$$ Var[X_i] = E[X_i^2]. $$
Now, the solution says that $Var(X_i) = 1$. Is that because $Var(X_i) = E[1^2] = E[(-1)^2] = 1$ or is there something I am missing? Thanks.
$X_i^2=1$ so $Var(X_i)=\mathbb E[X_i^2]=\mathbb E[1]=1$.