Hi, thanks for sharing this nice library. I'm playing with it right now, to analyze lightcurves of X-ray binaries.
I notice that for event data there are quite some intervals where the
bayesian blocks algorithm gives "spikes" in the histogram. Also in one
of your examples HERE there is that spike around t=4. In my plots there are many more. Do you know where it comes from? Can you suggest a way to avoid it (e.g., a minimum bin size)? It seems unphysical.
Thanks again!
Matteo
Hi Matteo,
Duplicating my response to the same question on the Pythonic Perambulations comment thread...
Simply put, there are spikes because the piecewise constant likelihood model says that spikes are favored. By saying that the spikes seem unphysical, you are effectively adding a prior on the model based on your intuition of what it should look like. You can play with that by adjusting the Bayesian prior in the code: that will take digging a bit deeper than just using astroML's hist() function. AstroML includes several prior forms for Bayesian Blocks, which you can see here: https://github.com/astroML/astroML/blob/master/astroML/density_estimation/bayesian_blocks.py There's also the reference there to the Scargle paper which discusses them in more detail.
I haven't yet put together any examples of adjusting priors or creating custom priors, but that's on my (rather long) to-do list! Hope that helps.
Jake
--
You received this message because you are subscribed to the Google Groups "astroML-general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astroml-gener...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.