Issues sampling with horseshoe prior

444 views
Skip to first unread message

Matt Espe

unread,
Dec 4, 2015, 4:57:00 PM12/4/15
to Stan users mailing list
Hi all,

I have been having some issues with implementation of the horseshoe prior in Stan.

Using half-cauchy priors for both the local and global scale parameters results in difficult sampling (slow sampling, divergent transitions even with high acceptance rate and low step-size). Re-parameterizations of the cauchy helps but does not resolve this issue.

After much exploration of the posterior samples, the issue seems to occur when the global scale parameter approximates 0.  Under this situation, the local scale for the relevant parameters is forced to extreme values far in the tails of the cauchy. Changing the priors on the scale parameters to student_t(3, 0, 1) alleviates the sampling issues, but results in lower shrinkage of less-relevant parameters towards zero.

I was wondering if anyone has experienced this issue and could offer guidance. In particular, I am thinking of using a boundary avoiding prior (such as a gamma(2, _) per BDA) on the global scale parameter to avoid this degenerate case. Or is it preferable to stick to using student_t priors rather than the cauchy?

Thanks in advance,

 


Aki Vehtari

unread,
Dec 5, 2015, 2:00:52 AM12/5/15
to Stan users mailing list
Hi Matt,

We discuss this issue and Hierarchical Shrinkage priors with t_3 in 
It is possible that there would be less shrinkage, but more likely the difference is that there will be some shrinkage for more parameters. See the figures in our paper. We didn't observe practical difference between Horseshoe and Hierarchical Shrinkage with t_3. We use the more generic term Hierarchical Shrinkage, since with t_3 the shrinkage curve does not anymore have the horseshoe shape.

Aki

Matt Espe

unread,
Dec 7, 2015, 12:51:51 PM12/7/15
to Stan users mailing list
This is exactly what I was looking for.  Thanks!

Matt
Reply all
Reply to author
Forward
0 new messages