López Santiago, JavierMartino, LucaVázquez López, Manuel AlbertoMíguez Arenas, Joaquín2023-12-122023-12-122021-11López‐Santiago, J., Martino, L., Vázquez, M. A., & Mı́guez, J. (2021). A Bayesian inference and model selection algorithm with an optimization scheme to infer the model noise power. Monthly Notices of the Royal Astronomical Society, 507(3), 3351-3361.0035-8711https://hdl.handle.net/10016/39064Model fitting is possibly the most extended problem in science. Classical approaches include the use of least-squares fitting procedures and maximum likelihood methods to estimate the value of the parameters in the model. However, in recent years, Bayesian inference tools have gained traction. Usually, Markov chain Monte Carlo (MCMC) methods are applied to inference problems, but they present some disadvantages, particularly when comparing different models fitted to the same data set. Other Bayesian methods can deal with this issue in a natural and effective way. We have implemented an importance sampling (IS) algorithm adapted to Bayesian inference problems in which the power of the noise in the observations is not known a priori. The main advantage of IS is that the model evidence can be derived directly from the so-called importance weights - while MCMC methods demand considerable postprocessing. The use of our adaptive target adaptive importance sampling (ATAIS) method is shown by inferring, on the one hand, the parameters of a simulated flaring event that includes a damped oscillation and, on the other hand, real data from the Kepler mission. ATAIS includes a novel automatic adaptation of the target distribution. It automatically estimates the variance of the noise in the model. ATAIS admits parallelization, which decreases the computational run-times notably. We compare our method against a nested sampling method within a model selection problem.11eng© 2021 The Author(s)Methods: Data AnalysisMethods: NumericalMethods: StatisticalStars: ActivityStars: FlareA Bayesian inference and model selection algorithm with an optimization scheme to infer the model noise powerresearch articleEconomíaInformáticaMatemáticasTelecomunicacioneshttps://doi.org/10.1093/mnras/stab2303open access335133361Monthly Notices of the Royal Astronomical Society507AR/0000028497