Predicting Conditional Quantiles via Reduction to Classification

John Langford, Roberto Oliveira, Bianca Zadrozny

TL;DR

This paper introduces "Quanting," a novel method that reduces the problem of quantile regression to classification. By framing quantile prediction as a series of classification tasks, Quanting leverages existing classification algorithms to achieve state-of-the-art performance on real-world datasets, offering a more flexible and potentially more powerful approach to understanding data distributions.

What Problem Does This Paper Address?

Traditional regression aims to predict the average outcome (the mean) given a set of features. However, in many real-world scenarios, understanding the entire distribution of possible outcomes is crucial. For instance, in finance, predicting the potential downside risk (low quantiles) is more important than the average return. Quantile regression addresses this by estimating specific quantiles (e.g., the 10th percentile, the median, the 90th percentile) of the conditional distribution of the target variable. While existing methods like linear quantile regression are efficient, they are limited by the assumption of linearity. More advanced methods exist, but this paper seeks to provide a more general and powerful framework by reducing quantile regression to the well-studied problem of classification.

Methods

The core contribution is the Quanting algorithm, which transforms a quantile regression problem into a set of classification problems. For a given quantile $q$ and a dataset, Quanting trains multiple binary classifiers, each designed to answer whether the true value is above or below a specific threshold $t$. The key insight is that by appropriately weighting the positive and negative examples for these classifiers (with weights $q$ and $1-q$ respectively), the output of a family of these classifiers can be combined to predict the $q$-quantile.

The paper also discusses two important reductions:

  1. Quanting-train (Algorithm 1): This algorithm takes a training set $S$ and a quantile $q$, and for a range of thresholds $t$, it constructs a training set $S_t$ for a base classifier. Positive examples are those where $y \geq t$, and they are assigned a weight of $q$. Negative examples ($y < t$) are assigned a weight of $1-q$. A base classifier $c_t$ is then trained on $S_t$.
  2. Quanting-test (Algorithm 2): For a new instance $x$, the predicted quantile $Q(x)$ is the expected value of the trained classifiers $c_t(x)$ over a uniform distribution of $t$ from 0 to 1. This is approximated by averaging the outputs of the classifiers trained on a discrete set of thresholds.
  3. Reduction to Unweighted Binary Classification (Corollary 1): The paper further shows how to adapt Quanting to work with standard unweighted binary classifiers by using rejection sampling, making it compatible with a wider range of existing tools.

Datasets

The authors evaluated their Quanting algorithm on four large, publicly available datasets:

  • Adult: A dataset derived from the Census Bureau, used here to predict conditional income quantiles.
  • KDD-Cup 1998: A dataset of individuals who have donated to a charity, used to predict donation amount quantiles.
  • California Housing: A dataset containing California housing characteristics, used to predict house value quantiles.
  • Boston Housing: A dataset with Boston housing characteristics and values, also used for predicting house value quantiles.

These datasets are described as being from real-world domains where quantile regression is applicable. The paper notes that for the kernel quantile regression method, they had to subsample the training data due to high memory and computational requirements.

Key Insights and Ideas

  • Quantile Regression as Classification: The fundamental insight is that predicting quantiles can be elegantly reduced to solving a series of classification problems. This is a powerful paradigm shift, allowing us to leverage the vast array of classification algorithms and techniques for quantile estimation.
  • Robustness to Noise: Quantiles, particularly the median, are inherently more robust to heavy-tailed or non-Gaussian noise compared to the mean. This makes them a more reliable choice in many practical scenarios.
  • Rich Information from Distributions: Quantile regression provides a more nuanced understanding of data than simple mean prediction. By estimating multiple quantiles, we can map out different segments of the conditional distribution, offering deeper insights into risk, potential outcomes, or specific population segments.
  • Flexibility of the Approach: The reduction to classification means that Quanting is compatible with any existing or future classification algorithm. This provides a flexible framework that can benefit from advances in the classification field.

Key Results

  • State-of-the-Art Performance: The Quanting algorithm, particularly when using the J48 decision tree as the base classifier, achieved state-of-the-art performance on the Adult and California Housing datasets in terms of quantile loss.
  • Competitive Results: On the KDD-Cup 1998 dataset, Quanting-J48 performed best for $q=0.1$, while the linear method was best for $q=0.5$ and $q=0.9$. For Boston Housing, performance varied by $q$, but the linear method consistently underperformed.
  • Efficiency: Quanting was found to be relatively efficient, taking at most 8 minutes to run on larger datasets with 100 classifiers, significantly faster than the kernel method which could take over an hour.
  • Fast Convergence: Figure 2 illustrates that the Quanting algorithm converges quickly, achieving good performance with approximately 50 classifiers.

Limitations and Future Work

  • Discrete Thresholds: The theoretical analysis assumes a continuous range of thresholds $t$. In practice, a discrete mesh of thresholds is used, which introduces a small error term ($1/n$ where $n$ is the number of thresholds).
  • Choice of Base Classifier: The performance of Quanting is dependent on the choice of the base classification algorithm. While J48 and Logistic Regression were tested, other classifiers might yield different results.
  • Future Work: The paper suggests that the reduction to classification opens up many avenues for future research, particularly in exploring different base classifiers and further optimizing the reduction process. The theoretical guarantees provided by the reduction also pave the way for analyzing the performance of various classification algorithms in the context of quantile regression.

Summary updated

BibTeX
@inproceedings{langford2006predicting,
  author = {John Langford and Roberto Oliveira and Bianca Zadrozny},
  title = {{Predicting Conditional Quantiles via Reduction to Classification}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2006},
}
Figure