<p>First, you can also have a state-space setup for a model which is not log-linearised. It is the combination of the solution of your model (that you get by using Sims, Klein, Binder-Pesaran, or Blanchard-Kahn solution methods for rational expectation models) - the <em>transition equation</em>, which gives the transition of your state variables depending on shocks - and the measurement equation.</p>
<p>The goal of your measurement equation is then to match data into a (sub)-set of your endogenous variables. How this is done depends heavily on the way you defined your model, e.g. are your variables stationary or is there growth through for instance technological progress. But also how you treat your data and if you think that there is measurement error or not.</p>
<p>If for instance you have a log-linearised model without a trend then you know that all variables are zero in steady state and of course this should be matched by your data, i.e. mean zero and no trend. Now, what you can do is to make your data stationary (there is a debate how best to do that, for instance use a one-sided HP-filter) and use logs. This would lead to a one-to-one match between your observable and model-variable.</p>
<p>But as I said, there is much more to it. I would recommend the excellent guide by <a href="https://drive.google.com/file/d/1r89OU5OE3CBa6tOlj6l3hNVWEaRH5Anv/view" rel="nofollow noreferrer">Johannes Pfeifer</a> on how to specify observational equations. It is mainly written for usage in Dynare but I am sure it will help your understanding a lot. There is then also the topic of which observables to use but this goes beyond the question ;)</p>
<p>Hope it helps, but feel free to ask if it was not clear.</p>

CC BY-SA 4.0
2021-08-11T08:28:56.747Z
2021-08-11T11:53:15.897Z
2021-08-11T11:53:15.897Z
DoubleBass
<p>Hi: I can't speak for DSGE models specifically but, in more standard "rational expectations" econometrics, the measurement equation usually comes from some assumed linear relation between the dependent variable and the expectation of some other variable. For example, one might have</p>

<p>$y_t = \beta x^{*}_{t} + \epsilon_{t}$ </p>

<p>where  $x^{*}_{t}$ is the expectation of $x$ at time t so $E(x_t|t-1)$. Note that $x_t$  is often not observable so some formulation for how the expectation is generated must be assumed.  So, for example, if one assumes the adaptive expectations hypothesis for the expectation, then this implies the following relation for $x^{*}_t$:</p>

<p>$x^{*}_t = x^{*}_{t-1} + \gamma(x_{t-1} - x^{*}_{t-1})$</p>

<p>Putting the two relations together, one ends up with an exponential smoothing relation for $y_t$ which would then be the measurement equation:</p>

<p>$y_t = \beta \times \gamma \sum_{j=0}^{\infty} (1-\gamma)^{j} x_{t-j-1} + \epsilon_t$</p>

<p>Almost all of above is taken from Harvey's "Econometric Analysis of Time Series" which I highly recommend not for DSGE models but for RE type econometrics. I assume that something similar is done in DSGE models but I'm not absolutely sure because I have no experience with them. Still, this may help some.</p>

CC BY-SA 4.0
2018-06-28T19:42:33.180Z
Hi: I don't know if this willl help ( didn't read it carefully + ho formal education in economics )  but starting in the pages around the 40's, he starts talking about DSGE models and later provides examples. https://www.sas.upenn.edu/~jesusfv/LectureNotes_9_filtering.pdf
mark leeds
CC BY-SA 4.0
2018-06-29T12:08:17.217Z
Thanks for the info. However, your answer is not really helpful, but thanks for the try ;) I'll read the slides later on to see if there's something useful.
An old man in the sea.
CC BY-SA 4.0
2018-06-29T14:58:36.077Z
you're welcome. I hope the slides help some.
mark leeds
CC BY-SA 4.0
2018-06-27T20:22:51.797Z
2018-06-27T20:22:51.797Z
mark leeds
<p>DSGE models, after log-linearisation, have a state-space representation. 
In this representation, in most papers, the measurement/observation equation is simply stated.</p>

<p>I'm wondering how one deduces that equation, or if it's something ad-hoc, how does one proceed, or what guidlines should we use?</p>

<p>Any help would be appreciated.</p>

CC BY-SA 4.0
2023-02-25T18:37:34.553Z
Did you ever find a reference for a state space specification? I just posted a question asking about that https://economics.stackexchange.com/questions/54549/writing-dsge-model-in-state-space-form
Taylor
<dsge>
How to derive the measurement equation for the state-space representation of a DSGE model?
An old man in the sea.
# How to derive the measurement equation for the state-space representation of a DSGE model?

(Asked by: username_0 on 2018-06-27)

DSGE models, after log-linearisation, have a state-space representation.
In this representation, in most papers, the measurement/observation equation is simply stated.

I'm wondering how one deduces that equation, or if it's something ad-hoc, how does one proceed, or what guidlines should we use?

Any help would be appreciated.

**Tags:** dsge

> **Comments:**
> **username_1**: Did you ever find a reference for a state space specification? I just posted a question asking about that https://economics.stackexchange.com/questions/54549/writing-dsge-model-in-state-space-form  

---

## 2 answers

### Answer by username_2 on 2021-08-11. Score: 4

First, you can also have a state-space setup for a model which is not log-linearised. It is the combination of the solution of your model (that you get by using Sims, Klein, Binder-Pesaran, or Blanchard-Kahn solution methods for rational expectation models) - the *transition equation*, which gives the transition of your state variables depending on shocks - and the measurement equation.

The goal of your measurement equation is then to match data into a (sub)-set of your endogenous variables. How this is done depends heavily on the way you defined your model, e.g. are your variables stationary or is there growth through for instance technological progress. But also how you treat your data and if you think that there is measurement error or not.

If for instance you have a log-linearised model without a trend then you know that all variables are zero in steady state and of course this should be matched by your data, i.e. mean zero and no trend. Now, what you can do is to make your data stationary (there is a debate how best to do that, for instance use a one-sided HP-filter) and use logs. This would lead to a one-to-one match between your observable and model-variable.

But as I said, there is much more to it. I would recommend the excellent guide by [Johannes Pfeifer](https://drive.google.com/file/d/1r89OU5OE3CBa6tOlj6l3hNVWEaRH5Anv/view) on how to specify observational equations. It is mainly written for usage in Dynare but I am sure it will help your understanding a lot. There is then also the topic of which observables to use but this goes beyond the question ;)

Hope it helps, but feel free to ask if it was not clear.


---

### Answer by username_3 on 2018-06-27. Score: 2

Hi: I can't speak for DSGE models specifically but, in more standard "rational expectations" econometrics, the measurement equation usually comes from some assumed linear relation between the dependent variable and the expectation of some other variable. For example, one might have

$y\_t = \beta x^{\*}\_{t} + \epsilon\_{t}$

where $x^{\*}\_{t}$ is the expectation of $x$ at time t so $E(x\_t|t-1)$. Note that $x\_t$ is often not observable so some formulation for how the expectation is generated must be assumed. So, for example, if one assumes the adaptive expectations hypothesis for the expectation, then this implies the following relation for $x^{\*}\_t$:

$x^{\*}\_t = x^{\*}\_{t-1} + \gamma(x\_{t-1} - x^{\*}\_{t-1})$

Putting the two relations together, one ends up with an exponential smoothing relation for $y\_t$ which would then be the measurement equation:

$y\_t = \beta \times \gamma \sum\_{j=0}^{\infty} (1-\gamma)^{j} x\_{t-j-1} + \epsilon\_t$

Almost all of above is taken from Harvey's "Econometric Analysis of Time Series" which I highly recommend not for DSGE models but for RE type econometrics. I assume that something similar is done in DSGE models but I'm not absolutely sure because I have no experience with them. Still, this may help some.

> **Comments:**
> **username_3**: Hi: I don't know if this willl help ( didn't read it carefully + ho formal education in economics )  but starting in the pages around the 40's, he starts talking about DSGE models and later provides examples. https://www.sas.upenn.edu/~jesusfv/LectureNotes_9_filtering.pdf  
> **username_0**: Thanks for the info. However, your answer is not really helpful, but thanks for the try ;) I'll read the slides later on to see if there's something useful.  
> **username_3**: you're welcome. I hope the slides help some.  

---

