A flexible method for estimating luminosity functions via Kernel Density Estimation -- II. Generalization and Python implementation

Zunli Yuan, Xibin Zhang, Jiancheng Wang, Xiangming Cheng, Wenjie Wang
3/13/2022
astro-ph.IM

Official code: yuanzunli/kdeLF (0 stars, Fortran, MIT, last commit 2026-07-26).

Abstract

We propose a generalization of our previous KDE (kernel density estimation) method for estimating luminosity functions (LFs). This new upgrade further extend the application scope of our KDE method, making it a very flexible approach which is suitable to deal with most of bivariate LF calculation problems.

Show full abstract

From the mathematical point of view, usually the LF calculation can be abstracted as a density estimation problem in the bounded domain of $\{Z_1<z<Z_2,~ L>f_{\mathrm{lim}}(z) \}$. We use the transformation-reflection KDE method ($\hatφ$) to solve the problem, and introduce an approximate method ($\hatφ_{\mathrm{1}}$) based on one-dimensional KDE to deal with the small sample size case. In practical applications, the different versions of LF estimators can be flexibly chosen according to the Kolmogorov-Smirnov test criterion. Based on 200 simulated samples, we find that for both cases of dividing or not dividing redshift bins, especially for the latter, our method performs significantly better than the traditional binning method $\hatφ_{\mathrm{bin}}$. Moreover, with the increase of sample size $n$, our LF estimator converges to the true LF remarkably faster than $\hatφ_{\mathrm{bin}}$. To implement our method, we have developed a public, open-source Python Toolkit, called \texttt{kdeLF}. With the support of \texttt{kdeLF}, our KDE method is expected to be a competitive alternative to existing nonparametric estimators, due to its high accuracy and excellent stability. \texttt{kdeLF} is available at \url{http://github.com/yuanzunli/kdeLF} with extensive documentation available at \url{http://kdelf.readthedocs.org/en/latest~}.

View on arXivView PDF

Code Implementations(1)

yuanzunli/kdeLFOfficial100%
MIT

A Flexible Method for Estimating Luminosity Functions via Kernel Density Estimation

01Fortran, PythonMar 24, 20214 months agoMIT

Similar Papers

Cite this paper

@article{yuan2022flexible,
  title  = {A flexible method for estimating luminosity functions via Kernel Density Estimation -- II. Generalization and Python implementation},
  author = {Zunli Yuan and Xibin Zhang and Jiancheng Wang and Xiangming Cheng and Wenjie Wang},
  year   = {2022},
  eprint = {2203.06700},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.06700}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.06700.svg)](https://codeofpaper.com/paper/2203.06700)

Discussion