English

An Alternate Method for Minimizing $\chi^2$

Instrumentation and Methods for Astrophysics 2025-02-10 v1

Abstract

In this paper, we describe an algorithm and associated software package (sfit_minimize) for maximizing the likelihood function of a set of parameters by minimizing χ2\chi^2. The key element of this method is that the algorithm estimates the second derivative of the χ2\chi^2 function using first derivatives of the function to be fitted. These same derivatives can also be used to calculate the uncertainties in each parameter. We test this algorithm against several standard minimization algorithms in SciPy.optimize.minimize() by fitting point lens models to light curves from the 2018 Korea Microlensing Telescope Network event database. We show that for fitting microlensing events, SFit works faster than the Nelder-Mead simplex method and is more reliable than the BFGS gradient method; we also find that the Newton-CG method is not effective for fitting microlensing events.

Cite

@article{arxiv.2502.04486,
  title  = {An Alternate Method for Minimizing $\chi^2$},
  author = {Jennifer C. Yee and Andrew P. Gould},
  journal= {arXiv preprint arXiv:2502.04486},
  year   = {2025}
}

Comments

12 pages, 3 figures, 2 tables. Submitted to PASP. The associated software package can be found at https://github.com/jenniferyee/sfit_minimizer

R2 v1 2026-06-28T21:35:28.060Z