inverse gamma

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.

inverse gamma

Postby twlxv » Tue Mar 28, 2006 1:51 am

Dear all,

Does anyone know how to transform inverse gamma distribution with a particular degree of freedom into its equivalent in dynare, i.e. in dynare, inverse gamma distribution only requires the specification of mean and the standard deviation is infinity, but in many other papers, degree of freedom is used instead...

Many thanks...
twlxv
 
Posts: 8
Joined: Thu Mar 24, 2005 4:57 pm

Re: inverse gamma

Postby StephaneAdjemian » Tue Mar 28, 2006 9:15 am

twlxv wrote:Dear all,

Does anyone know how to transform inverse gamma distribution with a particular degree of freedom into its equivalent in dynare, i.e. in dynare, inverse gamma distribution only requires the specification of mean and the standard deviation is infinity, but in many other papers, degree of freedom is used instead...

Many thanks...


Hi,

There is a function in the matlab directory of dynare that computes what you want from the expectation and the standard deviation :

[s,nu] = inverse_gamma_specification(mu,sigma,type)

I guess you can play with this function if you want to compare with the other papers. Arnold Zellner (An Introduction to Bayesian Inference in Econometrics, pages 371-373) shows how the moments are related to the degree of freedom.

Best Regards,
St
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Postby twlxv » Thu Mar 30, 2006 7:57 am

Hi,

Thanks Stephane. Can I ask a few more questions to make sure that I understand this correctly though: First, what's the difference between inv_gamma_pdf, inv_gamma1_pdf, inv_gamma2_pdf? Is inv_gamma_pdf equivalent to inv_gamma1_pdf? Second, in estimated_params, the two parameters that we input, are they still s and nu, or are they mean and standard deviation?

Thanks a lot.

Regards,

Wing
twlxv
 
Posts: 8
Joined: Thu Mar 24, 2005 4:57 pm

Postby StephaneAdjemian » Sat Apr 01, 2006 3:49 pm

Hi Wing,

Here is a link to a pdf file where you will find some informations about the inverse gamma distribution (and others):

http://www.cepremap.cnrs.fr/~adjemian/Dynare/Distributions.pdf


twlxv wrote:First, what's the difference between inv_gamma_pdf, inv_gamma1_pdf, inv_gamma2_pdf? Is inv_gamma_pdf equivalent to inv_gamma1_pdf?


There is no difference between inv_gamma_pdf and inv_gamma1_pdf. All is explained in the pdf file.

twlxv wrote:Second, in estimated_params, the two parameters that we input, are they still s and nu, or are they mean and standard deviation?


No you have to define the mean and standard deviation of the inverse gamma distribution and dynare computes \nu and s. If you prefer to specify \nu and s rather than \mu and \sigma, you can use the formulas given in the pdf file.

Best regards,
St
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

inverse gamma and degrees of freedom?

Postby agupta28 » Wed Apr 30, 2008 10:02 pm

Dear Stephane,

Could you post the link to the file that talks about inverse gamma distribution again. The link has become inactive.

Thanks,

Abhishek.
abhishek
agupta28
 
Posts: 29
Joined: Tue Mar 04, 2008 2:17 am

Re: inverse gamma and degrees of freedom?

Postby StephaneAdjemian » Tue May 13, 2008 9:12 am

Dear Abhishek,

You will find the pdf at:

http://www.cepremap.cnrs.fr/~adjemian/r ... utions.pdf

Best,
Stéphane.
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Postby agupta28 » Tue May 13, 2008 5:19 pm

Thanks Stephane.
abhishek
agupta28
 
Posts: 29
Joined: Tue Mar 04, 2008 2:17 am

Re: inverse gamma and degrees of freedom?

Postby anitazhang » Thu Apr 28, 2016 3:52 am

Dear Stephane,

Could you post the link to the file that talks about inverse gamma distribution again. The link has become inactive.

Thanks.


StephaneAdjemian wrote:Dear Abhishek,

You will find the pdf at:

http://www.cepremap.cnrs.fr/~adjemian/r ... utions.pdf

Best,
Stéphane.
anitazhang
 
Posts: 35
Joined: Sat Oct 05, 2013 12:02 am

Re: inverse gamma

Postby jpfeifer » Thu Apr 28, 2016 7:53 am

Here is a version I found on my computer.
Attachments
DynareDistributions.pdf
(292.88 KiB) Downloaded 223 times
------------
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: inverse gamma

Postby anitazhang » Thu Apr 28, 2016 11:27 am

Thanks a lot.

jpfeifer wrote:Here is a version I found on my computer.
anitazhang
 
Posts: 35
Joined: Sat Oct 05, 2013 12:02 am

Re: inverse gamma

Postby StephaneAdjemian » Thu Jul 13, 2017 1:28 pm

This file moved a lot since ten years, so much that I ended up without the sources. I recently rewrote the document from scratch, and posted the source on Gihub (and they will stay there). You can obtain the pdf from my webpage or directly from Github.

Best,
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests