Closed sbenthall closed 1 year ago
I've tested a local run of the total Sharkfin simulation with a Mock Market with a high aNrmInitMean
. What I notice is that the in this to, the agents start with close to 0 wealth:
Despite this parameter not appearing to work, I am finding that it does have an effect on the results we are getting from the big runs with AMMPS. I have been trying to get to the bottom of it for some time and am totally stumped.
So aNrmInitMean is being used correctly, however, the following line resets aNrm to zero for all agents
Additionally, even though all the agents have different seeds, I was noticing the same draw of aNrm for all agents before it was being reset...
Thank you! Huge help. I can fix this now...
So aNrmInitMean is being used correctly, however, the following line resets aNrm to zero for all agents
Oy. Ok, I see what happened. Hoisted on the petard of my own hacks.
I was noticing the same draw of aNrm for all agents before it was being reset...
I think that's fine because aNrmInitStd is 0.
Oh I didn't notice the std
I'm testing the starting and equilibrium normalized wealth levels with this script: https://github.com/sbenthall/SHARKFin/blob/master/macro/steady_state_mNrm.py
(There are many reasons for this, but one big reason is that my earlier 'target wealth' estimate didn't properly take into account more recent changes to the dividend rate. Also, if we have a high target wealth, we can reduce the DPHM parameter, which will reduce the inconvenient effects of labor income in the model.)
I now have this parameter dictionary:
Then I go through the initialization of the SharkPopulation and run the simulation:
Now at this point I can examine an agent to get its parameters.
I get this, which looks right: https://gist.github.com/sbenthall/b5569652e7464f44a7f327ee93c19a9e
In particular, see how I'm starting with
aNrmInitMean
as 10.Then I run the simulation:
And now I'm getting the mean
aNrm
for each time period, across all the agents:AND THIS IS NOT RIGHT.
I think these agents should be starting with mean log
aNrm
of 10! That's whataNrmInitMean
does.I think this is a bug. It is strange, because
aNrmInitMean
definitely has an effect on the results of the Sharkfin AttentionSimulation -- it has a strong effect on the output. But for some reason, it's not making it into the standalone simulation here.