I am receiving the following error when trying to evaluate an integral in Stan:
Chain 1: Rejecting initial value:
Chain 1: Error evaluating the log probability at the initial value.
Chain 1: Exception: integrate: error estimate of integral 1.8538e-46 exceeds the given relative tolerance times norm of integral
I have followed some advice from another thread and printed out the parameter/data values where the error occurs. Using this information I calculated the integral in R. The resulting integral (conditional on the data and parameter values that produced the first error) is:
That’d be a question for @andrjohns, @Bob_Carpenter or @wds15. I would have guessed it is limited by boost. My understanding is that anything smaller than 1E-16 will be much too small, but I could be horribly wrong.
Anyway…what about other random inits to start the chain?
Things cannot be evaluated with an infinite precision…and requiring such extreme precision is a hint that one should rescale the problem in many cases.