Likelihood computation

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Likelihood computation

Postby mtld75 » Tue May 17, 2016 4:30 pm

Hi,

I have a question regarding the computation of the likelihood with function dsge_likelihood. I'm estimating the small open economy model in Alvarez-Parra et al. (2013) by ML. I'm using two different data sets for the Mexico. In one estimation I use the first difference of gdp, total consumption and net export-gdp ratio (data 1). In another I use nondurable consumption instead of total consumption (data 2).

For each estimation I calculate the likelihood with dsge_likelihood for both data sets. The problem is that the likelihood is greater for the second estimation for BOTH data sets. I was expecting that the likelihood for each estimations were greater for the data set it uses. Am I using dsge_likelihood correctly?

I'm attaching all the files one needs to run the exercise I just explained. Just run main_AMT.m and look at the variables likelihood_ML_* after running it. The variable likelihood_ML_1 stores the likelihood as computed by dsge_likelihood for data 1 and 2 using the parameters estimated with the data 1. Similarly, likelihood_ML_2 stores the likelihood using the parameters estimated with data 2. As I said above, likelihood_ML_2 (j)> likelihood_ML_1(j) for both j=1,2. Again, I was expecting likelihood_ML_1(1)>likelihood_ML_2(1) and likelihood_ML_1(2)<likelihood_ML_2(2).

Thank you in advance!
Attachments
model_AMT.zip
(30.48 KiB) Downloaded 115 times
mtld75
 
Posts: 3
Joined: Fri May 13, 2016 3:48 pm

Re: Likelihood computation

Postby jpfeifer » Tue May 17, 2016 7:42 pm

Comparing likelihoods across different data sets is essentially meaningless.
Do I understand you correctly that a different set of parameters plugged into your model with a particular data set returns a higher likelihood than your original "maximum" likelihood estimate? If yes, you did not find the correct maximum initially. In that case, rerun mode-finding with the second parameter set as the starting point.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Likelihood computation

Postby mtld75 » Tue May 17, 2016 10:45 pm

Thanks! I guess my initial point is not good enough.
mtld75
 
Posts: 3
Joined: Fri May 13, 2016 3:48 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests