Skip to content

MAHA-z: A Mahalanobis distance kNN estimator for photometric redshifts

Paula S. Ferreira, Ribamar R. R. Reis, Renyue Cen

astro-ph.IMarXiv:2611.14582

Abstract

We present 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, 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(zf) 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 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 ANNz2 catalogue. 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.

Create a lesson