# Translate normal evolution into transformed parameters

**URL:** <https://discourse.mc-stan.org/t/translate-normal-evolution-into-transformed-parameters/8343>\
**Category:** Modeling\
**Created:** [April 3, 2019, 8:56am UTC](https://discourse.mc-stan.org/t/translate-normal-evolution-into-transformed-parameters/8343 "2019-04-03T08:56:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dirk\_Nachbar](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/dirk_nachbar/32/4271_2.png) [@Dirk\_Nachbar](https://discourse.mc-stan.org/u/Dirk_Nachbar)\
**Post date:** [April 3, 2019, 8:56am UTC](https://discourse.mc-stan.org/t/translate-normal-evolution-into-transformed-parameters/8343/1 "2019-04-03T08:56:39Z")

</div>

I have some complex stan model form someone else and he seems to have translated sampling statements into (transformed params) equations

So instead of

a[t] ~ normal(a[t-1] + x[t], sig)

he has

a[t] = a[t-1] + sig \* innov + x[t]

in the _transformed params_ part.

Is this usually done for performance purposes?

Where can I read more about this?

---

<div class="post-metadata">

**Author:** ![bbbales2](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bbbales2/32/77_2.png) [@bbbales2](https://discourse.mc-stan.org/u/bbbales2)\
**Post date:** [April 4, 2019, 1:23am UTC](https://discourse.mc-stan.org/t/translate-normal-evolution-into-transformed-parameters/8343/2 "2019-04-04T01:23:55Z")

</div>

It’s a change of parameterization that can help performance. It implies the same prior on a[t], but works differently.

The specific answer to your question is: [Bayesian structural time series modeling](https://discourse.mc-stan.org/t/bayesian-structural-time-series-modeling/2256/5) (That whole thread might be valuable for comparison)

I’m assuming also that innov is also declared as a parameter and there’s a `innov ~ normal(0, 1);` statement in the model block.
