I would like to simulate and plot many paths of a discrete random variable $\tau_{t}$ that follows the following process:
- with probability $\tau_{t-1}$, $\tau_{t}$ is either $0.6$ with probability $x$ or $0.4$ with probability $1-x$. Then, $\tau_{t+1}$ is drawn according to the process.
- with probability $1-\tau_{t-1}$, $\tau_{t}=\tau_{t-1}$. Then, $\tau_{t+1}$ is also equal to $\tau_{t}$ with probability $y$, or it is drawn according to point 1 of the described process with probability $1-y$.