Hi all. I'm wondering if anyone has thoughts or can suggest resources that describe useful distributions of those available in Nimble that are sufficiently flexible for approximating posterior distributions for use as priors in Bayesian updating. The conundrum I am facing is neatly described in this post. It seems to me that there is plenty of theory available for Bayesian updating, but much less practical guidance on implementation, especially if we want to use available software such as Nimble. As an example, I have attached histograms showing the actual and a normal approximation of a posterior parameter distribution from a fitted model. As you can see, they look quite different, so it does not appear that a normal distribution will be a good choice for approximating this posterior. On the other hand, I don't know how close the approximation needs to match the actual posterior to function effectively (i.e., for estimates following analysis of all data to look similar regardless of whether we use Bayesian updating vs just analyzing all of the data).Any thoughts or references on this topic would be much appreciated.
--
You received this message because you are subscribed to the Google Groups "nimble-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nimble-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nimble-users/83d0b79a-e600-40fa-9056-98eb9fd26ff7n%40googlegroups.com.
Wow! Sounds like the perfect feature for Bayesian updating. I thought about my current problem a bit more and decided that multivariate normal approximations should suffice for priors as I am not actually drawing inference from the posteriors but rather running simulations to estimate and compare power for alternative sampling and trend scenarios. However, our team has discussed incorporating Bayesian updating into the analysis for our long-term monitoring program to avoid having to analyze all of the data anew every year, and thus improve efficiency of the analysis. Very cool!
Quresh S. Latif
Research Scientist
Bird Conservancy of the Rockies
Phone: (970) 482-1707 ext. 15
www.birdconservancy.org
To view this discussion on the web visit https://link.edgepilot.com/s/9c07a0cd/oKvldPxFJ0uzXcIBj1ChVw?u=https://groups.google.com/d/msgid/nimble-users/83d0b79a-e600-40fa-9056-98eb9fd26ff7n%2540googlegroups.com.
Oh, I realized what you meant by branch now. You’re saying this isn’t available yet in the main version of Nimble on CRAN? When do you expect this feature to be incorporated into the main branch?
If you’re looking for folks to test it out, I could try it out in my simulations. I have never installed a package from a branch, but I could give it a shot.
Quresh S. Latif
Research Scientist
Bird Conservancy of the Rockies
Phone: (970) 482-1707 ext. 15
www.birdconservancy.org
From: Daniel Turek <danie...@gmail.com>
Sent: Sunday, November 19, 2023 5:36 AM
To: Quresh Latif <quresh...@birdconservancy.org>
Cc: nimble-users <nimble...@googlegroups.com>
Subject: Re: distributions to approximate posteriors in Bayesian updating
Quresh, one thought, if you're comfortable installing nimble from a different branch, then on branch "prior_samples_sampler" I drafted a sampler which uses an existing set of samples (presumably the posterior from a pre-existing MCMC run) as the prior for one or more parameters in a new model. One each MCMC iteration, this sampler will use one of those (existing) samples as the value for the target node(s) to which this sampler is assigned. The numeric samples are provided to the sampler (at the time of sampler assignment) as an array, with dimension (nSamples x nDim), where nSamples is the number of samples you have from the previous MCMC run, and nDim is the number of dimensions in the target node(s). The sampler is assigned as:
To view this discussion on the web visit https://link.edgepilot.com/s/9c07a0cd/oKvldPxFJ0uzXcIBj1ChVw?u=https://groups.google.com/d/msgid/nimble-users/83d0b79a-e600-40fa-9056-98eb9fd26ff7n%2540googlegroups.com.