Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi, if I have a bounch of posteror samples, can we use lintsampler to draw more samples? #15

Open
WuShichao opened this issue Oct 20, 2024 · 2 comments

Comments

@WuShichao
Copy link

Sometimes, KDE tends to oversmooth the PDF, which introduces bias in the estimated PDF. Inverse-transform sampling doesn't have this issue, but it is usually implemented in 1D. This package extends it to at least 6D. I know this package requires grid/tree-like data, but I can provide the marginalized 1D posterior distribution for each parameter. Besides, will lintsampler keep the covariance?

@aneeshnaik
Copy link
Owner

Hi @WuShichao, I'm afraid I don't think lintsampler doesn't quite do what you're looking for here. The key input for lintsampler is the PDF (i.e., position input, density output), not PDF samples.

You're finding that KDE oversmooths: I assume you've tried a smaller bandwidth? In that case, I suppose you're working on a distribution with a large dynamic range. What can work quite well here is a variable-bandwidth KDE, or something like the Delaunay tessellation field estimator.

@WuShichao
Copy link
Author

@aneeshnaik Thanks a lot! I will learn that Delaunay tessellation field estimator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants