Unconditional versus conditional Welfare measure

Thanks a lot Prof. Stéphane.

Dear Prof. Stéphane,

I am getting welfare difference in order of thousands and leading to consumption equivalent values which are extremely large ( in the order of 10^18). This seems clearly unreasonable but I am unable to figure out whats wrong. Is there is any textbook troubleshooting for this? Thanks in advance!

Please provide the updated set of files, ideally in a zip-file.

Dear Prof. Pfeifer,

Please find the attached zip file of the code
try_initval_forum.zip (5.2 KB)

Why exactly are you comparing dSPR to recur_welfare?

Sorry Prof. Pfeifer, I did not understand your question. Can you please point to which equation your are referring to? In my model, dSPR is the deposit spread from the risk-free rate.

You hard-coded the position of the variables

V0 = oo_.steady_state(44);
V1 = oo_.steady_state(46);

One of them is dSPR. You should use syntax like

oo_.steady_state(strmatch('recur_welfare',M_.endo_names,'exact'))

Thanks a lot Prof. Pfeifer. I have changed the code. Unfortunately, the problem of welfare still persists.

What exactly is the problem now? Also, please provide the updated codes.

The consumption equivalent welfare gains are in the order of 10^19. Is this something that is normal?
try_initval_forum.zip (5.2 KB)

You need to manually inspect the steady states. You have a welfare difference of about 3000 points. That’s huge and needs to be explained by the components that make up welfare.

Indeed, fixing the steady state solved the problem. Thanks a lot Prof. Pfeifer.