Another uncertainty in the estimates is that the warmup iterations
often tend to take longer than the sampling iterations. I've
found it can be as much as a factor of 3 in models we've
been playing with.
Also, the report is for the number of time it takes to do 10
leapfrog steps (and yes, each of those does a log prob and
gradient calc). The tree depth we report as treedepth__ is
actually the depth - 1, at least as computer scientists measure
depth. Another twist is that we may throw away some leapfrog
steps due to the NUTS condition, though that usually doesn't
happen very often.
Also, you might want to evaluate how quickly your model
converges, not only to the high mass volume of the posterior,
but also in terms of the adaptation parameters. You don't
need to warmup for longer than that.
Also, you should tune how long you run to the number of effective
samples you need. Our defaults of 1000 warmup and 1000 sampling
iterations are usually way more than we need. We'd talked about
scaling the default back to 200 and 200, but never seem to have
done that. So I'd start small and only increase the number of warmup
iterations if you haven't converged (both in terms of parameter estimates
entering the high-mass volumeof the posterior and the adaptation parameters)
and only increase the number of sampling iterations if you need more effective
samples.
How many effective samples you need will depend on what you're doing.
If you're evaluating tail probabilities (such as 99.9% intervals), you'll need a lot.
If you're evaluating 90% intervals, you'll need less. If you're evaluating
posterior variance, even fewer. If you're evaluating just posterior means,
you don't need that many at all (as in 20 or so should probably be enough).
- Bob
On 1/3/14, 8:35 PM, Andria Dawson wrote:
> Thanks again for your quick responses. Good to know about the crudeness and memory allocation. I'm really not looking
> for an exact timing either, just trying to get at the order of magnitude.
>
> Some of my models seem to be on the scale of weeks to months so I'm trying to
> 1) speed up my code (I'm not a programmer, but have gotten lots of great tips from everyone answering questions on the
> list), and
> 2) determine what size of problem is realistic in terms of being able to get a large enough effective sample size from
> the posterior. I don't think I can run the model I want on the domain I would like, but can scale back to something
> doable by using a subdomain, aggregating, or changing my assumptions for now.
>
> The challenge is that the difference between the *crude* lower and upper timing bounds is so wide that my estimates are
> sometimes not that helpful (I jokingly say a run could be done NOW, NEVER, or some time in between). They are more
> helpful when the order of the *crude* lower bound estimate is much larger than my tolerance.
>
> On Friday, January 3, 2014 11:06:52 AM UTC-8, Marcus wrote:
>
> I figured as much, but I wasn't sure how Andria might have been computing things and thought that this could explain
> some of the difference in timings she saw.
>
> Cheers,
> Marcus
>
>
>
> On Fri, Jan 3, 2014 at 1:58 PM, Michael Betancourt <
betan...@gmail.com <javascript:>> wrote:
>
> The timing estimate does not use the first evaluation, it uses a realistic estimate of the gradient evaluation time.
>
> > > >> For more options, visit
https://groups.google.com/groups/opt_out <
https://groups.google.com/groups/opt_out>.
> > > >
> > >
> > > --
> > > 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 <javascript:>.
> > > For more options, visit
https://groups.google.com/groups/opt_out <
https://groups.google.com/groups/opt_out>.
> >
> > --
> > 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 <javascript:>.
> > For more options, visit
https://groups.google.com/groups/opt_out <
https://groups.google.com/groups/opt_out>.
> >
> >
> > --
> > 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 <javascript:>.
> > For more options, visit
https://groups.google.com/groups/opt_out <
https://groups.google.com/groups/opt_out>.
>
> --
> 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 <javascript:>.
> For more options, visit
https://groups.google.com/groups/opt_out <
https://groups.google.com/groups/opt_out>.