# How is "mean" in oo\_.mean calculated?

**URL:** <https://forum.dynare.org/t/how-is-mean-in-oo-mean-calculated/21596>\
**Category:** Stochastic simulations\
**Created:** [6 December 2022 00:28 UTC](https://forum.dynare.org/t/how-is-mean-in-oo-mean-calculated/21596 "2022-12-06T00:28:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mcd](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/ecb155/32.png) [@mcd](https://forum.dynare.org/u/mcd)\
**Post date:** [6 December 2022 10:44 UTC](https://forum.dynare.org/t/how-is-mean-in-oo-mean-calculated/21596/3 "2022-12-06T10:44:04Z")

</div>

Thank you very much, that is helpful!  
I think, my question is then more: In another part of the forum you said about moment calculation:

> [@What are "theoretical moments" referring to?](https://forum.dynare.org/t/what-are-theoretical-moments-referring-to/4735/3):
>
> If you specify periods\>0, Dynare will instead simulate data series based on the perturbation solution to your model and compute the moments of these simulated series.

What does “simulate data series based on the perturbation solution” mean exactly?, how much “data series” are simulated?, will I not only receive moments based on this when I ask for more \>100 periods? for \<100 periods, what do the moments in the dynare output tell me (in contrast to what I described in my first question above)? most of all: where could I see all of this in the dynare matlab codes (to see for myself)?

Also, if I was only interested in how the system reacts to one shock in isolation, would I be able to retrieve moments for such simulation from the dynare output? Would I need to specify a separate model finding a solution with only that shock for every one of my shocks?

Thanks for your help!

---

_[View the full topic](https://forum.dynare.org/t/how-is-mean-in-oo-mean-calculated/21596)._
