R_hat, effective sample size, ... are OK but divergent transitions

72 views
Skip to first unread message

Tran

unread,
Mar 31, 2017, 5:39:38 AM3/31/17
to Stan users mailing list
Hi,

I have a concern. Suppose that in a case R_hat, effective sample size, MC errors, pen tests for the trace plots (that I often check when working with OpenBUGS and JAGS) are OK but we have a number of divergent transitions.

Does this mean in general that the model still have something wrong? And in this case are the parameter estimates reliable?

Would you have any idea?

Tran.

Michael Betancourt

unread,
Mar 31, 2017, 8:38:18 AM3/31/17
to stan-...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
To post to this group, send email to stan-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Trung Dung Tran

unread,
Mar 31, 2017, 8:49:04 AM3/31/17
to stan-...@googlegroups.com
Hi Michael,

Thanks a lot!

Maybe I miss something, but from where you take the true value 0.7657852 'abline(h=0.7657852, col="grey", lty="dashed", lwd=3)' to compare with the sampled values of log(tau)?

And how do we know to choose tau instead of mu or theta[] to show non-convergence or bias? I ask this because in case a model has a lot of parameters then we should start inspecting from one of them.

Thank you for your time,

Tran.

On 31 March 2017 at 14:38, Michael Betancourt <betan...@gmail.com> wrote:
On Mar 31, 2017, at 5:39 AM, Tran <trungd...@gmail.com> wrote:

Hi,

I have a concern. Suppose that in a case R_hat, effective sample size, MC errors, pen tests for the trace plots (that I often check when working with OpenBUGS and JAGS) are OK but we have a number of divergent transitions.

Does this mean in general that the model still have something wrong? And in this case are the parameter estimates reliable?

Would you have any idea?

Tran.

--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+unsubscribe@googlegroups.com.

To post to this group, send email to stan-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/Whx88DJB8lU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stan-users+unsubscribe@googlegroups.com.

Trung Dung Tran

unread,
Mar 31, 2017, 8:55:48 AM3/31/17
to stan-...@googlegroups.com
In addition, in practice when estimating the parameters, we do not have true values to compare.

Tran.

Michael Betancourt

unread,
Mar 31, 2017, 8:58:48 AM3/31/17
to stan-...@googlegroups.com
The true value is shown to demonstrate that the diagnostics
indeed identify biased inferences.  It will indeed not be available
in a real analysis.

Also in a real analysis you will not know which trace plot might
exhibit pathological behavior.  You have to use the structure of
the specific model to motivate where to look.  But the point is
that divergences will identify problems for you so you don’t
have to go looking at all of the trace plots one by one.

To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.

Trung Dung Tran

unread,
Mar 31, 2017, 10:14:17 AM3/31/17
to stan-...@googlegroups.com
Thank you so much, Michael! A thing that I do not understand is that in your article you talk about step size and in case of divergent transitions we might decrease it.

However the suggestion in rstan after showing divergence is increasing adapt_delta. I am wondering why we do not directly work with step size?

Tran.

Michael Betancourt

unread,
Mar 31, 2017, 10:15:58 AM3/31/17
to stan-...@googlegroups.com
Because step size is determined via an adaptation algorithm.
adapt_delta controls the behavior of that algorithm.

To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages