I am building out some state-space models for our time series data. I am working off these models State space models . I am trying to vectorize the models on github and then compare them to the results in the book.

I wanted to check my understanding here.

Given this:

```
mu[1] ~ normal(y[1], sigma[3]);
for (t in 2:n)
mu[t] ~ normal(mu[t-1], sigma[3]);
```

I can do this?:

```
mu[1] ~ normal(y[1], sigma[3]);
mu[2:n] ~ normal(mu[n-1], sigma[2]);
```

And

```
v[1] ~ normal(0, sigma[1]);
for(t in 2:n-1)
v[t] ~ normal(v[t-1], sigma[1]);
```

would be ?

```
v[1] ~ normal(0, sigma[1]);
v[2:n-1] ~ normal(v[n-1], sigma[1]);
```

Thanks for eyeballs and double check on this!

ara