You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed some strange behavior when I'm fitting secondary eclipse light curves with noninformative priors. Like in the TESS case study, for each light curve I optimize for the model parameters, mask residual outliers, and rerun the optimizer, using the final result as the starting point for MCMC sampling. For some of my Kepler quarter light curves, interestingly, after I mask out residuals and rerun the optimizer, the MAP solution is completely wrong, while the MAP solution before clipping was a good fit. I checked that the outliers that were being removed were actual outliers (e.g., 5 out of the 4134 data points).
To fix this and have the second optimization work, I had to set its starting point to be the MAP solution from the first optimization. Is there a reason why this is necessary? It seems very unintuitive to me why the fit would get worse using the same starting point and initial priors after removing outliers. I only observed this happen in some of my light curves.
I've attached an example plot below. The GaussianProcess + light curve is plotted in orange/red.
Phase folded plot of first fit using noninformative priors:
Phase folded plot of second fit after clipping 5 residuals and using the same test point and noninformative priors as first:
Thanks in advance, and I'd be happy to elaborate!
The text was updated successfully, but these errors were encountered:
I've noticed some strange behavior when I'm fitting secondary eclipse light curves with noninformative priors. Like in the TESS case study, for each light curve I optimize for the model parameters, mask residual outliers, and rerun the optimizer, using the final result as the starting point for MCMC sampling. For some of my Kepler quarter light curves, interestingly, after I mask out residuals and rerun the optimizer, the MAP solution is completely wrong, while the MAP solution before clipping was a good fit. I checked that the outliers that were being removed were actual outliers (e.g., 5 out of the 4134 data points).
To fix this and have the second optimization work, I had to set its starting point to be the MAP solution from the first optimization. Is there a reason why this is necessary? It seems very unintuitive to me why the fit would get worse using the same starting point and initial priors after removing outliers. I only observed this happen in some of my light curves.
I've attached an example plot below. The GaussianProcess + light curve is plotted in orange/red.
![good](https://private-user-images.githubusercontent.com/73449574/253788299-e44a0588-03ea-403c-b4df-0eeead561ab2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleT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LUFtei1EYXRlPTIwMjQwODE4VDExNTg0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlNGQyYjc2YjY3NmFiY2E4MjBjZWVhMjA5NTNkYzU2YWRiMjk2Yjg2MjRkOTMwNjY3MjZhZGFiYjY2ZGRiZjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OFb-_Xl9kpbLcKljoXyH4LWS4A0ArIkvj4AKiXkdBlM)
Phase folded plot of first fit using noninformative priors:
Phase folded plot of second fit after clipping 5 residuals and using the same test point and noninformative priors as first:
Thanks in advance, and I'd be happy to elaborate!
The text was updated successfully, but these errors were encountered: