multitree generalized steppingstone sampling a new mcmc
play

Multitree Generalized Steppingstone Sampling A New MCMC Method for - PowerPoint PPT Presentation

Multitree Generalized Steppingstone Sampling A New MCMC Method for Estimating the Marginal Likelihood of a Models Mark T. Holder, Paul O. Lewis, David L. Swofford, and David Bryant KU, UConn, Duke, U. Otago (NZ) Feb 16, 2013 Austin,


  1. Multitree Generalized Steppingstone Sampling – A New MCMC Method for Estimating the Marginal Likelihood of a Models Mark T. Holder, Paul O. Lewis, David L. Swofford, and David Bryant KU, UConn, Duke, U. Otago (NZ) Feb 16, 2013 – Austin, TX

  2. Context • We rarely know the “true” model to use for analyses. • Model-averaging methods can be difficult to implement and use. • We can use the marginal likelihood to choose between models.

  3. The marginal likelihood is the denominator of Bayes’ Rule P ( D | θ, M ) p ( θ | M ) p ( θ | D, M ) = P ( D | M ) θ is a set of parameter values in the model M D is the data P ( D | θ, M ) is the likelihood of θ . p ( θ, M ) is the prior of θ .

  4. The marginal likelihood assess the fit of the model to the data by considering all parameter values � P ( D | M ) = P ( D | θ, M ) p ( θ | M ) dθ

  5. MCMC avoids the marginal like. calc. P ( D | θ ∗ ,M ) p ( θ ∗ | M ) p ( θ ∗ | D, M ) P ( D | M ) p ( θ | D, M ) = P ( D | θ,M ) p ( θ | M ) P ( D | M ) p ( θ | D, M ) = P ( D | θ ∗ , M ) p ( θ ∗ | M ) p ( θ ∗ | D, M ) P ( D | θ, M ) p ( θ | M )

  6. Bayesian model selection Bayes Factor between two models: B 10 = P ( D | M 1 ) P ( D | M 0 ) We could estimate P ( D | M 1 ) by drawing points from the prior on θ and calculating the mean likelihood.

  7. Sharp posterior (black) and prior (red) 40 30 density 0 2 0 1 0 − 2 − 1 1 2 0 x

  8. Drawing from the prior will often miss any of the trees with high posterior density – massive sample sizes would be needed. Perhaps we can use samples from the posterior?

  9. We can use the harmonic mean of the likelihoods of MCMC samples to estimate P ( D | M 1 ) . However . . .

  10. “The Harmonic Mean of the Likelihood: Worst Monte Carlo Method Ever” A post on Dr. Radford Neal’s blog http://radfordneal.wordpress.com/2008/08/17/ the-harmonic-mean-of-the-likelihood-worst-monte-carlo-method-ever “The total unsuitability of the harmonic mean estimator should have been apparent within an hour of its discovery.”

  11. Harmonic mean estimator of the marginal likelihood • appealing because it comes “for free” after we have sampled the posterior using MCMC, • unfortunately the estimator can have a huge variance associated with it in some (very common) cases. For example if: • the vast majority of parameter space has very low likelihood, and • a very small region has high likelihoods.

  12. Importance sampling to approximate a difficult target distribution 1 Simulate points from an easy distribution. 2 Reweight the points by the ratio of densities between the easy and target distribution. 3 Treat the reweighted samples as draws from the target distribution.

  13. 2.5 2.0 1.5 density 1.0 0.5 0.0 −3 −2 −1 0 1 2 3 x

  14. Importance and target densities 2.5 2.0 1.5 density 1.0 0.5 0.0 −3 −2 −1 0 1 2 3 x Importance weights 12 10 8 weight 6 4 2 0 −3 −2 −1 0 1 2 3

  15. Importance and target densities 2.5 2.0 1.5 density 1.0 0.5 0.0 −3 −2 −1 0 1 2 3 x Samples from importance distribution Importance weights Weighted samples 12 12 12 10 10 10 8 8 8 weight weight 6 6 6 4 4 4 2 2 2 0 0 0 −3 −2 −1 0 1 2 3 −3 −2 −1 0 1 2 3 −3 −2 −1 0 1 2 3 x x x

  16. Importance sampling The method works well if the importance distribution is: • fairly similar to the target distribution, and • not “too tight” to allow sampling the full range of the target distribution

  17. In phylogenetics our posterior distribution is too peaked and our prior is too vague to allow us to use them in importance sampling: Sharp posterior (black) and prior (red) 40 30 density 0 2 0 1 0 − 2 − 1 1 2 0

  18. Steppingstone sampling uses a series of importance sampling runs Steppingstone densities 40 30 density 20 10 0 −2 −1 0 1 2 x

  19. Steppingstone sampling (Xie et al. 2011, Fan et al. 2011) blends two distributions: • the posterior, P ( D | θ, M 1 ) P ( θ, M 1 ) • a tractable reference distribution, π ( θ ) [ P ( D | θ, M 1 ) P ( θ, M 1 )] β [ π ( θ )] (1 − β ) p β ( θ | D, M 1 ) = c β p 1 ( θ | D, M 1 ) is the posterior. c 1 is the marginal likelihood of the model. p 0 ( θ | D, M 1 ) is the reference distribution. c 0 is 1.

  20. Steppingstone sampling (Xie et al. 2011, Fan et al. 2011) blends two distributions: • the posterior, P ( D | θ, M 1 ) P ( θ, M 1 ) • a tractable reference distribution, π ( θ ) [ P ( D | θ, M 1 ) P ( θ, M 1 )] β [ π ( θ )] (1 − β ) p β ( θ | D, M 1 ) = c β � c 1 � � c 0 . 1 � � c 0 . 38 � � c 0 . 01 � P ( D | M 1 ) = c 1 = c 0 c 0 . 38 c 0 . 1 c 0 . 01 c 0 � c 1 � � c 0 . 38 � � c 0 . 1 � � c 0 . 01 � ✘✘ ✘ ✟ ✘✘ ✘ ✟ = c 0 . 38 c 0 . 1 c 0 . 01 c 0 ✘ ✘ ✘✘ ✟ ✘✘ ✟

  21. Run MCMC with different β values Steppingstone densities 40 30 density 20 10 0 −2 −1 0 1 2 x

  22. � � c 0 . 01 � � � � � P ( D | M ) c 0 . 38 c 0 . 1 � P ( D | M ) = 1 c 0 . 38 c 0 . 1 c 0 . 01 Photo by Johan Nobel http://www.flickr.com/photos/43147325@N08/4326713557/ downloaded from Wikimedia

  23. Reference distributions in Steppingstone sampling In the original steppingstone (Xie et al 2011): reference = prior In generalized steppingstone (Fan et al 2011) it can be any distribution: • Should be centered around the areas with high probability, • Must be a probability distribution with a known normalizing constant, • Should be easy to draw sample from.

  24. The log Bayes Factor for a complex model compared to a simple (true) model. Estimated twice (by Fan et al, 2011) Harmonic mean: Original Steppingstone: 20 20 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● 0 ● ● ● ● ● 0 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● −20 −20 ● ● ● ● ● ● ● ● ● ● ● ● ● ● Seed 2 Seed 2 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● −40 −40 ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● −60 −60 ● ● ● ● ● ● ● ● −60 −40 −20 0 20 −60 −40 −20 0 20 Seed 1 Seed 1 20 0 −20 Seed 2 −40 −60 −60 −40 −20 0 20

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend