BayesicFitting,一个用于贝叶斯拟合和证据计算的PYTHON算法
BayesicFitting, a PYTHON Toolbox for Bayesian Fitting and Evidence Calculation
摘要:
BayesicFitting是一个全面的通用工具箱,用于简单和标准化的模型拟合。它的拟合选项范围从简单的最小二乘法,通过极大似然,以充分贝叶斯推断,工作在众多可用的模型。BayesicFitting是开源的,自20世纪90年代以来一直在开发和使用。它已被应用于各种科学应用,主要是在天文学。BayesicFitting由一组PYTHON类组成,这些类可以组合起来解决相当复杂的推理问题。这些类包括模型、拟合器、先验、误差分布、引擎、样本,当然还有嵌套采样算法的通用实现NestedSampler。嵌套抽样是一种新的方法来执行贝叶斯计算。它可以应用于推理问题,包括一个参数化模型来拟合测量数据。NestedSampler将贝叶斯证据计算为问题的(超)参数的后验概率的数值积分。在参数方面的解决方案获得作为一组加权样本从后验。本文重点讨论了嵌套抽样及其直接相关的类,并给出了用最小二乘法或极大似然法拟合数据的拟合器。他们还可以计算贝叶斯证据作为高斯近似。我们将讨论工具箱的架构。存在哪些类,它们的功能是什么,它们是如何相关的,以及在哪里变得复杂的实现细节。
英文摘要:
BayesicFitting is a comprehensive, general-purpose toolbox for simple and standardized model fitting. Its fitting options range from simple least-squares methods, via maximum likelihood to fully Bayesian inference, working on a multitude of available models. BayesicFitting is open source and has been in development and use since the 1990s. It has been applied to a variety of science applications, chiefly in astronomy. BayesicFitting consists of a collection of PYTHON classes that can be combined to solve quite complicated inference problems. Amongst the classes are models, fitters, priors, error distributions, engines, samples, and of course NestedSampler, our general-purpose implementation of the nested sampling algorithm. Nested sampling is a novel way to perform Bayesian calculations. It can be applied to inference problems, that consist of a parameterized model to fit measured data to. NestedSampler calculates the Bayesian evidence as the numeric integral over the posterior probability of (hyper)parameters of the problem. The solution in terms of the parameters is obtained as a set of weighted samples drawn from the posterior. In this paper, we emphasize nested sampling and all classes that are directly connected to it. Additionally, we present the fitters, which fit the data by the least-squares method or the maximum likelihood method. They can also calculate the Bayesian evidence as a Gaussian approximation. We will discuss the architecture of the toolbox. Which classes are present, what is their function, how they are related and implementational details where it gets complicated.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。