hpparvi / PyTransit

Fast and easy exoplanet transit light curve modelling.
GNU General Public License v2.0
99 stars 23 forks source link

Poor model fit. #158

Closed jabienias closed 5 months ago

jabienias commented 5 months ago

I have been using pytransit 2.6.4 to model various transits and have obtained good results, except for one light curve where the model produces a very poor fit. I am using exactly the same code as the other transits. The corner plots look very odd and t23 comes out as "nan"

It is also notable that sample_mcmc runs very quickly, taking about 5 minutes, while the other light curves require about 15 minutes.

Screenshots I am attaching a pdf of the complete notebook so you can see the process. It also includes a manual fit which gives me realistic results.

Desktop (please complete the following information):

bad_fit.pdf

hpparvi commented 5 months ago

Hi John,

The bad fit is because the stellar density has a default uniform prior from 0.1 to 25 g/cm^3, and the manual parameters you set in 191 are p = 1.0 days and a = 17.6 R_star, which correspond to a stellar density of ~105 g/cm^3. So, the optimizer can never reach the high stellar density due to the prior. Try adjusting the rho prior and you should get a fine fit.

Cheers, Hannu

jabienias commented 5 months ago

Many thanks, Hannu. That's fixed it for me (again). Cheers John