# Conformal Predictor

## Definition

Suppose we have a training sequence of pairs

called *observations*. The *objects* are elements of a measurable space and the *labels* are elements of a measurable space .

We call the *observation space*, the *significance level*, and the complimentary value the *confidence level*.

A *conformity measure* is a measurable mapping

where is the set of all bags (multisets) of elements of . Intuitively, this function assigns a numerical score (sometimes called the *conformity score*) indicating how similar a new observation is to a multiset of old ones.

The *conformal predictor determined by the conformity measure * is a confidence predictor whose value on the training sequence and a test object at a significance level is obtained by setting

where

and designates the bag (multiset) of observations.

The standard assumption for conformal predictors is the randomness assumption (also called the i.i.d. assumption).

Conformal predictors can be generalized by inductive conformal predictors or Mondrian conformal predictors to a wider class of confidence predictors.

## Desiderata

### Validity

All the statements in the section are given under the randomness assumption in the on-line prediction protocol.

The statement of validity is easiest for *smoothed conformal predictors*, for which

where the nonconformity scores are defined as before and is a random number (chosen from the uniform distribution on [0,1]. In the rest of this section we will assume that the random numbers used at different trials are independent among themselves and of the observations.

**Theorem** *All smoothed conformal predictors are exactly valid*, in the sense that, for any exchangeable probability distribution on and any significance level , the random variables , , are independent Bernoulli variables with parameter , where is the random variable

The idea of the proof is quite simple.

**Corollary** *All smoothed conformal predictors are asymptotically exact*, in the sense that for any exchangeable probability distribution on and any significance level ,

with probability one.

**Corollary** *All conformal predictors are asymptotically conservative*, in the sense that for any exchangeable probability distribution on and any significance level ,

with probability one.

To put it simply, in the long run the frequency of erroneous predictions does not exceed at each confidence level .

One can also give a formal notion of validity for conformal predictors, although the usefulness of this notion is limited: it is intuitively clear that conformal predictors are valid or "more than valid" since the number of errors made by a conformal predictor never exceeds the number of errors made by the corresponding smoothed conformal predictor.

### Efficiency

As conformal predictors are automatically valid, the main goal is to improve their *efficiency* (also known as *predictive efficiency*): to make the prediction sets conformal predictors output as small as possible. In classification problem, a natural measure of efficiency of conformal predictors is the number of *multiple predictions* - the number of prediction sets containing more than one label. In regression problems, the prediction set is often an interval of values, hence, a natural measure of efficiency of such predictors is the length of the interval. There are many possible criteria of efficiency.

There are separate articles about validity, efficiency, and a third desideratum, conditionality:

## Conformal transducers

In many cases, it is more convenient to consider *conformal transducers* which output, for each training set , each test object , and each potential label for the p-value given by

(cf. the definition of the smoothed conformal predictor). Conformal predictors and conformal transducers can be regarded as different ways of packaging the same object. For further details, see Vovk et al. (2005).

**Bibliography**

- Vladimir Vovk, Alexander Gammerman, and Glenn Shafer (2005). Algorithmic learning in a random world. Springer, New York.