Article view

Marginalised Normal Regression: Unbiased curve fitting in the presence of x-errors

By Deaglan J. Bartlett, Harry Desmond

Article information

Publication
Published 14 November 2023
Institutions at publication
Centre National de la Recherche Scientifique; Institut d'Astrophysique de Paris; Sorbonne Université; University of Portsmouth
22 Citations OpenAlex, 4 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

The history of the seemingly simple problem of straight line fitting in the presence of both $x$ and $y$ errors has been fraught with misadventure, with statistically ad hoc and poorly tested methods abounding in the literature. The problem stems from the emergence of latent variables describing the ''true'' values of the independent variables, the priors on which have a significant impact on the regression result. By analytic calculation of maximum _a posteriori_ values and biases, and comprehensive numerical mock tests, we assess the quality of possible priors. In the presence of intrinsic scatter, the only prior that we find to give reliably unbiased results in general is a mixture of one or more Gaussians with means and variances determined as part of the inference. We find that a single Gaussian is typically sufficient and dub this model _Marginalised Normal Regression_ (MNR). We illustrate the necessity for MNR by comparing it to alternative methods on an important linear relation in cosmology, and extend it to nonlinear regression and an arbitrary covariance matrix linking $x$ and $y$. We publicly release a Python/Jax implementation of MNR and its Gaussian mixture model extension that is coupled to Hamiltonian Monte Carlo for efficient sampling, which we call roxy (_Regression and Optimisation with X and Y errors_)

Citations per year

Citations per year
YearCitations
2023 0
2024 2
2025 9
2026 11

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 22 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
France1
United Kingdom1