MAHA-z: A Mahalanobis distance kNN estimator for photometric redshifts
Abstract
We present \texttt{MAHA-z}, a photometric-redshift (photo-z) estimator that combines k-nearest neighbour (kNN) regression with a Mahalanobis distance metric learned from the covariance of a spectroscopic reference sample. For each target galaxy, \texttt{MAHA-z} performs a neighbour search in a colour-magnitude feature space with optional morphological parameters, and returns both a point estimate and a redshift posterior p(z|f) obtained by kernel density estimation over the neighbour redshifts. The Mahalanobis metric accounts for correlated features and heterogeneous units, eliminating ad hoc normalisation, and its subspace restriction allows \texttt{MAHA-z} to handle missing bands on a per-galaxy basis without imputation. We validate the method on four datasets spanning simulations and survey photometry: the Euclid Flagship~2 mock, the Legacy-KiDZ calibration sample, VIPERS, and the DES Year~3 BAO sample. On Euclid Flagship~2 (LSST+NISP) we achieve σNMAD=0.0148 with a 0.27% outlier fraction, and on DES Y3 we obtain σNMAD≈0.023 with <1% outliers and posterior calibration comparable to the \texttt{ANNz2} catalogue. \texttt{MAHA-z} processes millions of galaxies in minutes and provides competitive PDFs at substantially lower computational cost than trained machine-learning models, making it a practical option for iterative photo-z production and validation in Stage-IV surveys.
Related
- FOMO-Z. Optimal galaxy classification, photometric redshifts, and reconstruction of population distributions
- The PAU Survey: Dissecting strong-lensing systems with narrow-band photometric redshifts
- 2Flow2SN: Dusty Supernova Cosmology with Photometric Redshifts and Contamination using Neural Simulation-Based Inference
- Cosmic-neighbor-associated distances to VHE and candidate VHE BL Lacs via SDSS photometric redshifts
- Core-dominated non-Gaussian photometric redshifts in the COSMOS field: a normality test analysis
BibTeX
@misc{ferreira2026mahaz,
title = {{MAHA-z: A Mahalanobis distance kNN estimator for photometric redshifts}},
author = {Paula S. Ferreira and Ribamar R. R. Reis and Renyue Cen},
howpublished = {arXiv},
year = {2026},
month = nov,
doi = {10.48550/arxiv.2611.14582},
eprint = {2611.14582},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.14582},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - MAHA-z: A Mahalanobis distance kNN estimator for photometric redshifts
AU - Paula S. Ferreira
AU - Ribamar R. R. Reis
AU - Renyue Cen
PY - 2026
DA - 2026/11/10
PB - arXiv
DO - 10.48550/arxiv.2611.14582
UR - https://arxiv.org/abs/2611.14582
AB - We present \texttt{MAHA-z}, a photometric-redshift (photo-z) estimator that combines k-nearest neighbour (kNN) regression with a Mahalanobis distance metric learned from the covariance of a spectroscopic reference sample. For each target galaxy, \texttt{MAHA-z} performs a neighbour search in a colour-magnitude feature space with optional morphological parameters, and returns both a point estimate and a redshift posterior p(z|f) obtained by kernel density estimation over the neighbour redshifts. The Mahalanobis metric accounts for correlated features and heterogeneous units, eliminating ad hoc normalisation, and its subspace restriction allows \texttt{MAHA-z} to handle missing bands on a per-galaxy basis without imputation. We validate the method on four datasets spanning simulations and survey photometry: the Euclid Flagship~2 mock, the Legacy-KiDZ calibration sample, VIPERS, and the DES Year~3 BAO sample. On Euclid Flagship~2 (LSST+NISP) we achieve σ_NMAD=0.0148 with a 0.27% outlier fraction, and on DES Y3 we obtain σ_NMAD≈0.023 with <1% outliers and posterior calibration comparable to the \texttt{ANNz2} catalogue. \texttt{MAHA-z} processes millions of galaxies in minutes and provides competitive PDFs at substantially lower computational cost than trained machine-learning models, making it a practical option for iterative photo-z production and validation in Stage-IV surveys.
ER -