Giter Club home page Giter Club logo

Comments (4)

segasai avatar segasai commented on July 20, 2024

Hi,

I can't comment on the question of the convergence, since you don't show anything that would suggest the lack of convergence, but the importance weight graph looks fine to me. The fact that it has multiple peaks is perfectly fine.

It is easy to make the importance weight graph of "any" shape even if you consider posteriors shaped like Gaussian mixtures of the form

$f_1 N(x|0,\sigma_1) + f_2 N(x|0,\sigma_2)$

from dynesty.

tjtakys avatar tjtakys commented on July 20, 2024

Thank you for your comments! I'm sorry, the corner plot was in the attached .ipynb file.
While I understand that the importance weight can exhibit a multimodal distribution when the posterior distribution is multimodal, I have another point that concerns me.
I believe that the importance weight is the product of the likelihood and the decrease in volume. However, at the first peak of the importance weight, the likelihood is extremely low. In fact, I have looked at the observational and model images around this moment, and they were not modeled well at all. Compared to the run plot in the dynesty paper or example codes, the run plot I obtained has a high importance weight at a very early stage of sampling (where -ln X is close to 0). I am concerned about this. Do you think there might be a problem related to this?
image

from dynesty.

segasai avatar segasai commented on July 20, 2024

Thank you for your comments! I'm sorry, the corner plot was in the attached .ipynb file.

TBH I do not see anything suspicious in the corner plot

While I understand that the importance weight can exhibit a multimodal distribution when the posterior distribution is multimodal,

The posterior distribution does not need to be multimodal to show mutlimodality in the importance weigths. My example had only one one mode.

I have another point that concerns me. I believe that the importance weight is the product of the likelihood and the decrease in volume. However, at the first peak of the importance weight, the likelihood is extremely low. In fact, I have looked at the observational and model images around this moment, and they were not modeled well at all.

This seems to be a feature of your likelihood+prior. I.e. significant volume of your posterior seems to be there (at low logl values) . Whether that's how it should be, or you have incorrectly specified either the prior, or the likelihood I don't know. But those are the possibilities IMO.

Compared to the run plot in the dynesty paper or example codes, the run plot I obtained has a high importance weight at a very early stage of sampling (where -ln X is close to 0). I am concerned about this. Do you think there might be a problem related to this? !

Again on it's own the importance weight can show anything, it really depends on how the function log-likelihood vs prior volume above the logl value. For a typical Gaussian posterior, you only get one peak, for something very different you don't.

So personally I would check if your likelihood function is defined correctly.

from dynesty.

tjtakys avatar tjtakys commented on July 20, 2024

Thank you for the detailed advice! I will check my code again.

from dynesty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.