Timeline for Simulating a discrete time stochastic process
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 3, 2023 at 13:29 | comment | added | Domen |
What you describe – and also your initial question – could very well be described also by a Markov chain (see DiscreteMarkovProcess ) with 6 states as I schematically draw (I've just noticed there are some missing connections going from the slow back to the ordinary process, but you get the point). You can also adapt my code in a way that the branch flag denotes whether you are in the "ordinary" or "slow" process.
|
|
May 3, 2023 at 12:54 | comment | added | Federico | sure, sorry for the lack of clarity. I have in mind something like this. During the "ordinary process", my random variable is 0.4 with probability x and 0.6 with probability 1-x. However, at the beginning of every period of the ordinary process, the variable may jump to a "slow process", where it remains constant, with probability $\tau_{t-1}$. When in the slow process, the variable can go back to the "ordinary process" with probability y. Does it make sense? | |
May 3, 2023 at 12:48 | comment | added | Domen | @Federico, I don't really follow what you are trying to ask. Can you please write your question more precisely (or refer to the steps in your original post)? | |
May 3, 2023 at 12:42 | comment | added | Federico | This works perfectly, thanks really a lot! Just a small follow-up: suppose that, when I leave branch 1, I want the first tau determined according to the x 1-x draw, and then the following according to the full process (including the tau / 1-tau draw). Should I add another branch? | |
May 3, 2023 at 12:39 | vote | accept | Federico | ||
May 3, 2023 at 12:03 | history | answered | Domen | CC BY-SA 4.0 |