-
-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calculation of WorstIncPrb not robust to correlated income shocks #119
Comments
Quantecon has some methods for discretizing a handful of processes. We can
poke around there and see if they have what we need. Off the top of my
head, here
<https://github.com/EconForge/Dolo.jl/blob/3450bdbfc019f74a78a22cc1803d65a0d09e7aeb/src/numeric/processes.jl#L186-L229>are
the processes in *Julia* -- I am running out the door, but can look around
in their Python code if we think this might be useful.
|
I don't really understand this: "If the two sets of shocks are negatively correlated, their discretization is unlikely to have such a point". Unless the transitory and permanent shocks are perfectly correlated, there will always be a worst outcome for the transitory and a worst outcome for the permanent shock, and a positive probability of that event occurring ... I think maybe the point is that an unpleasant characteristic of the current approach is that the value of the discretized minimum joint point will be strongly affected by the number of gridpoints chosen, which is a serious numerical flaw in the setup. |
I was imagining that the (discrete) distribution of TransShk would vary
with the distribution of PermShk, as they would if we maintained an
equiprobable discrete distribution. Suppose the two are negatively
correlated. At low values of PermShk, the lowest equiprobable TranShk value
is high; at high values of PermShk, the lowest equiprobable TranShkValue is
low. Which *joint* (PermShk,TranShk) event is the "worst" from the
perspective of the natural borrowing constraint? You have to check all the
points (or a plausible set of candidate points) to find out which one is
actually the most restrictive.
…On Thu, Apr 25, 2019 at 7:06 PM Christopher Llorracc Carroll < ***@***.***> wrote:
I don't really understand this: "If the two sets of shocks are negatively
correlated, their discretization is unlikely to have such a point". Unless
the transitory and permanent shocks are *perfectly* correlated, there
will always be a worst outcome for the transitory and a worst outcome for
the permanent shock, and a positive probability of that event occurring ...
I think maybe the point is that an unpleasant characteristic of the
current approach is that the *value* of the discretized minimum joint
point will be strongly affected by the number of gridpoints chosen, which
is a serious numerical flaw in the setup.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#119 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADKRAFKMFR3XEMTIBMLPDKLPSI2PZANCNFSM4DSLHXNA>
.
|
Oh, now I get it, you're right. There's a parallel alternative to the equiprobable distribution, where there is a fixed set of points, and the way the correlation is introduced is by varying the probability weights for the joint outcomes. For some reason my intuition was about that model instead of the one I've actually used a lot more, which is the equiprobable one. The solution to this, I think, is the same as for #121 (which is closely related): The boundaries should be set and there should be some very very tiny probability that you actually end up at the bound. |
The solution for this (in a more complicated model) is in ConsAggShockModel.py around line 610. Roughly, the procedure here is:
Uh, I guess I just wrote most of the code for this. So now this is really, really easy for a first timer. |
This was fixed a while ago, across the various models. Closing. |
ConsIndShockModel (and its children) use a calculation of the "worst income shock probability" (CDC denotes with the Weierstrauss p) that is not robust to negative correlation between permanent and transitory shocks. As is, the code looks for the worst permanent shock and worst transitory shock, then finds the probability of both occurring. If the two sets of shocks are negatively correlated, their discretization is unlikely to have such a point, so WorstIncPrb will be 0.0, and MPCmax will be 1.0.
The correct procedure for finding WorstIncPrb is fairly obnoxious: use next period's mNrmMin with the entire set of shocks to get a set of aNrmMin_candidates, choose the greatest one as the actual BoroCnstNat, then sum the probabilities of the shocks that have that aNrmMin_candidate value to get WorstIncPrb.
This hasn't come up so far because the income process has uncorrelated shocks; indeed, we still need to add a function(s) to make correlated discretized RVs.
The text was updated successfully, but these errors were encountered: