# RFCDE: Random Forests for Conditional Density Estimation

arXiv: https://arxiv.org/abs/1804.05753 · HTML: https://mlsanity.com/paper/1804.05753/

## Key facts

- Cited by 8 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 16 Apr 2018.

## Built on by (most cited first, 8 of 8)

- [Neural Conditional Probability for Uncertainty Quantification](https://mlsanity.com/paper/2407.01171/) (2024)
- [Evaluating Aleatoric Uncertainty via Conditional Generative Models](https://mlsanity.com/paper/2206.04287/) (2022)
- [A Likelihood Based Approach to Distribution Regression Using Conditional Deep Generative Models](https://mlsanity.com/paper/2410.02025/) (2024)
- [Conditional Density Estimation with Histogram Trees](https://mlsanity.com/paper/2410.11449/) (2024)
- [Conformal Prediction with Corrupted Labels: Uncertain Imputation and Robust Re-weighting](https://mlsanity.com/paper/2505.04733/) (2025)
- [Nonparametric estimation of conditional probability distributions using a generative approach based on conditional push-forward neural networks](https://mlsanity.com/paper/2511.14455/) (2025)
- [MCD: Marginal Contrastive Discrimination for conditional density estimation](https://mlsanity.com/paper/2206.01592/) (2022)
- [Detecting Errors in a Numerical Response via any Regression Model](https://mlsanity.com/paper/2305.16583/) (2023)

## Abstract (arXiv)

Random forests is a common non-parametric regression technique which performs well for mixed-type data and irrelevant covariates, while being robust to monotonic variable transformations. Existing random forest implementations target regression or classification. We introduce the RFCDE package for fitting random forest models optimized for nonparametric conditional density estimation, including joint densities for multiple responses. This enables analysis of conditional probability distributions which is useful for propagating uncertainty and of joint distributions that describe relationships between multiple responses and covariates. RFCDE is released under the MIT open-source license and can be accessed at https://github.com/tpospisi/rfcde . Both R and Python versions, which call a common C++ library, are available.
