Dear all,
Could anyone help to explain the difference between lower bound and prior_3rd_parameter in Beyasian estimation?
Thanks in advance.
Huanhuan
jpfeifer wrote:Lower bound only restricts the parameter during mode-finding. When doing so, it truncates the original distribution. Say you have a normal distribution with mean 0 and variance 1. If you set the lower bound to -1, the standard normal distribution will be truncated to [-1, Infinity). If you would use this in Bayesian estimation, the prior would not integrate to 1, which is the reason, the lower bound is ignored during Bayesian estimation and only active during mode-finding.
prior_3rd_parameter in contrast is used to specify generalized distributions. Take the beta distribution. Its support is always [0,1]. prior_3rd_parameter allows moving the lower bound of the support. Say you set prior_3rd_parameter to -1. In this case, the original beta distribution will be stretched and shifted to the support [-1,1]. The prior will still integrate to 1.
alpha, ,0.6,0.9,gamma_pdf,0.8,0.05,0.6,0.9;
alpha, , , ,gamma_pdf,0.8, 0.05, 0.6,1;
jpfeifer wrote:Dear Huan,
if you know your parameter is bounded, you should use a prior that restricts it to that range. Using a gamma prior is not advocated because the upper bound is infinity. There is no generalized gamma distribution, so specifying ab upper bound is futile. If you do this as in 1), Dynare will truncate the gamma distribution for mode-finding, but will not use a proper truncated gamma distribution (i.e. will not redistribute the truncated mass). Because of this, your prior will not integrate to 1. Note that this is no problem for estimation, but for model_comparison as the marginal data densities will be wrong.
alpha, ,0.6,0.9,beta_pdf,0.8,0.05,0.6,0.9;
miu,1.3,1,inf,gamma_pdf,1.366,0.2, 1, inf;
miu,1.3,1,inf,gamma_pdf,1.366,0.2;
pd=makedist('Gamma','a',1.366^2/0.2^2,'b',0.2^2/1.366);
t=truncate(pd,1,inf);
P1=pdf(t,Theta(1));
jpfeifer wrote:I can only provide Dynare advice here as I am not working with this type of Matlab implementation.
1. By specifying the 3rd/4th parameters you are setting generalized distributions. Why do you think this should not affect results? Consider a beta distribution. In this case, the mode by construction must be between 0 and 1. Now consider a generalized beta distribution with 3rd/4th parameters 1 and 2. Now the beta distribution will be over the support [1,2] and the mode must be within this interval.
alpha=u-1
Users browsing this forum: Google [Bot] and 7 guests