Theoretical Description

Mondrian conformal prediction (MCP) [1] is a method that allows to build prediction sets with a group-conditional coverage guarantee. The coverage guarantee is given by:

P \{Y_{n+1} \in \hat{C}_{n, \alpha}(X_{n+1}) | G_{n+1} = g\} \geq 1 - \alpha

where G_{n+1} is the group of the new test point X_{n+1} and g is a group in the set of groups \mathcal{G}.

MCP can be used with any split conformal predictor and can be particularly useful when one have a prior knowledge about existing groups wheter the information is directly included in the features of the data or not. In a classifcation setting, the groups can be defined as the predicted classes of the data. Doing so, one can ensure that, for each predicted class, the coverage guarantee is satisfied.

In order to achieve the group-conditional coverage guarantee, MCP simply classifies the data according to the groups and then applies the split conformal predictor to each group separately.

The quantile of each group is defined as:

\widehat{q}^g =Quantile\left(s_1, ..., s_{n^g} ,\frac{\lceil (n^{(g)} + 1)(1-\alpha)\rceil}{n^{(g)}} \right)

Where s_1, ..., s_{n^g} are the conformity scores of the training points in group g and n^{(g)} is the number of training points in group g.

The following figure (from [1]) explains the process of Mondrian conformal prediction:

_images/mondrian.png

References

[1] Vladimir Vovk, David Lindsay, Ilia Nouretdinov, and Alex Gammerman. Mondrian confidence machine. Technical report, Royal Holloway University of London, 2003