# Portfolio choice

**URL:** <https://forum.dynare.org/t/portfolio-choice/27432>\
**Category:** General DSGE Modeling\
**Created:** [13 April 2025 13:42 UTC](https://forum.dynare.org/t/portfolio-choice/27432 "2025-04-13T13:42:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Motamedi.alireza](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@Motamedi.alireza](https://forum.dynare.org/u/Motamedi.alireza)\
**Post date:** [13 April 2025 13:42 UTC](https://forum.dynare.org/t/portfolio-choice/27432/1 "2025-04-13T13:42:22Z")

</div>

Hi,  
I want to know if dynare is capable of handling markowitz portfolio optimization for time varying asset’s risk and reward’s?  
For example if the asset’s risk is altering by the state of macroeconomic’s? (In a way That portfolio’s wheight’s be a time serie’s)  
Would we have changing steady state problem?  
Is there a way to make a loop or a matlab function to define a time serie’s changing steady state?

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [13 April 2025 14:17 UTC](https://forum.dynare.org/t/portfolio-choice/27432/2 "2025-04-13T14:17:32Z")

</div>

A starting point for an answer would be

> [@Static Portfolio Choice](https://forum.dynare.org/t/static-portfolio-choice/4210/2):
>
> I haven’t worked with this type of problems myself, so I am not sure. The typical problem with portfolio choice models is that standard Dynare cannot find the portfolio allocations because it approximates around a deterministic steady state where the portfolio are indeterminate. See the work by Devereux and Sutherland on this. Regarding Epstein-Zin, see [[Expected value of a power](https://forum.dynare.org/t/expected-value-of-a-power/2200/1)). The Caldara et al. (2011) mod-file on my homepage is one example of this.

---

<div class="post-metadata">

**Author:** ![Motamedi.alireza](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@Motamedi.alireza](https://forum.dynare.org/u/Motamedi.alireza)\
**Post date:** [13 April 2025 14:34 UTC](https://forum.dynare.org/t/portfolio-choice/27432/3 "2025-04-13T14:34:01Z")

</div>

Dear professor, thank you for the comprehensive explanation, i’ll follow what you mentioned and let you know if i came to a conclusion

---

<div class="post-metadata">

**Author:** ![caca](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/91b2a8/32.png) [@caca](https://forum.dynare.org/u/caca)\
**Post date:** [13 April 2025 15:05 UTC](https://forum.dynare.org/t/portfolio-choice/27432/4 "2025-04-13T15:05:32Z")

</div>

You can also think of solving the model with 3rd order approximation. In the non-stochastic steady state, all assets will have the same return but their expected returns will move with their risk profile in simulations.

---

<div class="post-metadata">

**Author:** ![Motamedi.alireza](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@Motamedi.alireza](https://forum.dynare.org/u/Motamedi.alireza)\
**Post date:** [13 April 2025 15:29 UTC](https://forum.dynare.org/t/portfolio-choice/27432/5 "2025-04-13T15:29:46Z")

</div>

I think i dont quite follow your suggestion, does that make different asset weight allocation’s along time period’s?  
Should we then take expectation’s as portfolio optimization problem?  
Can you elaborate it a little or maybe you would be kind enough to guide me to an example in the literature
