|
| 1 | +.. title:: Theoretical Description Mondrian : contents |
| 2 | + |
| 3 | +.. _theoretical_description_mondrian: |
| 4 | + |
| 5 | +####################### |
| 6 | +Theoretical Description |
| 7 | +####################### |
| 8 | + |
| 9 | +Mondrian conformal prediction (MCP) [1] is a method that allows to build prediction sets with a group-conditional |
| 10 | +coverage guarantee. The coverage guarantee is given by: |
| 11 | + |
| 12 | +.. math:: |
| 13 | + P \{Y_{n+1} \in \hat{C}_{n, \alpha}(X_{n+1}) | G_{n+1} = g\} \geq 1 - \alpha |
| 14 | +
|
| 15 | +where :math:`G_{n+1}` is the group of the new test point :math:`X_{n+1}` and :math:`g` |
| 16 | +is a group in the set of groups :math:`\mathcal{G}`. |
| 17 | + |
| 18 | +MCP can be used with any split conformal predictor and can be particularly useful when one have a prior |
| 19 | +knowledge about existing groups wheter the information is directly included in the features |
| 20 | +of the data or not. |
| 21 | +In a classifcation setting, the groups can be defined as the predicted classes of the data. Doing so, |
| 22 | +one can ensure that, for each predicted class, the coverage guarantee is satisfied. |
| 23 | + |
| 24 | +In order to achieve the group-conditional coverage guarantee, MCP simply classifies the data |
| 25 | +according to the groups and then applies the split conformal predictor to each group separately. |
| 26 | + |
| 27 | +The quantile of each group is defined as: |
| 28 | + |
| 29 | +.. math:: |
| 30 | + \widehat{q}^g =Quantile\left(s_1, ..., s_{n^g} ,\frac{\lceil (n^{(g)} + 1)(1-\alpha)\rceil}{n^{(g)}} \right) |
| 31 | +
|
| 32 | +Where :math:`s_1, ..., s_{n^g}` are the conformity scores of the training points in group :math:`g` and :math:`n^{(g)}` |
| 33 | +is the number of training points in group :math:`g`. |
| 34 | + |
| 35 | +The following figure (from [1]) explains the process of Mondrian conformal prediction: |
| 36 | + |
| 37 | +.. image:: images/mondrian.png |
| 38 | + :width: 600 |
| 39 | + :align: center |
| 40 | + |
| 41 | +References |
| 42 | +---------- |
| 43 | + |
| 44 | +[1] Vladimir Vovk, David Lindsay, Ilia Nouretdinov, and Alex Gammerman. |
| 45 | +Mondrian confidence machine. |
| 46 | +Technical report, Royal Holloway University of London, 2003 |
0 commit comments