bioRxiv · 10.1101/2025.11.19.689125
The Rayleigh Quotient and Principal Component Analysis I
Abstract
Contrastive learning methods can be powerful tools for genomics, enabling the identification of signals in an experiment via dimension reduction while reducing noise using a control. One such popular approach is contrastive PCA, which, despite being used in a variety of settings, does not scale to large datasets. We show that the contrastive PCA objective is an approximation of a Rayleigh quotient, analogous in form to Fishers linear discriminant analysis and the common spatial patterns method. The Rayleigh quotient is{rho} PCA, satisfies numerous desirable properties, and provides an interpretable form of dimension reduction via generalized eigenvectors. We demonstrate that{rho} PCA is more accurate than contrastive PCA and much more efficient. We also show how it can be used not only for dimension reduction of data with respect to a control, but also for contrasting conditions via an analysis of single-nucleus transcriptomics data. Finally, we discuss probabilistic interpretations of{rho} PCA that provide further insight into its effective performance.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Carilli, M. T., Jackson, K. C., Pachter, L.. 2025-11-19. The Rayleigh Quotient and Principal Component Analysis I. https://doi.org/10.1101/2025.11.19.689125
Cite the original work for its findings. Save a collection to share your selection of sources.