Semi-Parametric Uncertainty Bounds for Binary Classification
Bal\'azs Csan\'ad Cs\'aji, Ambrus Tam\'as

TL;DR
This paper develops kernel-based semi-parametric methods to construct non-asymptotic confidence regions for the binary classification regression function, ensuring exact coverage and strong consistency.
Contribution
It introduces three novel resampling methods that provide guaranteed coverage probabilities for the regression function in binary classification.
Findings
All methods guarantee exact coverage probabilities.
The methods are strongly consistent.
They improve uncertainty quantification in binary classification.
Abstract
The paper studies binary classification and aims at estimating the underlying regression function which is the conditional expectation of the class labels given the inputs. The regression function is the key component of the Bayes optimal classifier, moreover, besides providing optimal predictions, it can also assess the risk of misclassification. We aim at building non-asymptotic confidence regions for the regression function and suggest three kernel-based semi-parametric resampling methods. We prove that all of them guarantee regions with exact coverage probabilities and they are strongly consistent.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Semi-Parametric Uncertainty Bounds for Binary Classification
Balázs Csanád Csáji1
Ambrus Tamás1 *This work was supported by the National Research, Dev. and Innovation Office (NKFIH), Hungary, grant numbers ED_18-2-2018-0006 and KH_17 125698. B. Cs. Csáji was supported by a János Bolyai Res. Fellowship.1 Balázs Csanád Csáji and Ambrus Tamás are with MTA SZTAKI: The Institute for Computer Science and Control, Hungarian Academy of Sciences, Budapest, Hungary, [email protected], [email protected]
Abstract
The paper studies binary classification and aims at estimating the underlying regression function which is the conditional expectation of the class labels given the inputs. The regression function is the key component of the Bayes optimal classifier, moreover, besides providing optimal predictions, it can also assess the risk of misclassification. We aim at building non-asymptotic confidence regions for the regression function and suggest three kernel-based semi-parametric resampling methods. We prove that all of them guarantee regions with exact coverage probabilities and they are strongly consistent.
I Introduction
Classification is one of the principal problems of statistical learning theory [1], and it is widely applied across several fields [8], for example, in quantized identification [2]. A typical aim of classification is to minimize the probability of misclassification. If the (joint) probability distribution of the input-output pairs was known, the misclassification probability could be minimized by the Bayes optimal classifier. This classifier can be written as the sign of the regression function which is the conditional expectation of the labels given the inputs. The regression function can also help to assess the risk of misclassification. Estimating the regression function can be seen as identifying a (nonlinear) function from a sample of input and quantized (binary) output measurements.
Besides providing point-estimates of the regression function, for which there are several methods available [1, 3], it is also an important problem to bound the uncertainty of a candidate model. We will provide these bounds in the form of confidence regions. Note that such regions also induce confidence sets for the misclassification probabilities.
In this paper, inspired by recent developments in Finite-Sample System Identification (FSID) [4, 5, 6, 7], we suggest three semi-parametric kernel-based [8] resampling algorithms to build non-asymptotic confidence regions for the regression function of binary classification. We prove that each of these algorithms provides confidence sets with exact coverage probabilities, and they are strongly consistent, that is any false model will be (almost surely) excluded from the confidence regions, as the sample size tends to infinity. As the suggested algorithms build on distribution-free results and work directly with the samples, the constructions are not restricted to models parametrized by finite dimensional vectors, but also allow infinite dimensional model classes.
II Preliminaries
II-A Binary Classification
We are given an i.i.d. sample, from an unknown joint distribution of the random vector, where is the input and is the label of the th observation. We call any function a classifier. The Bayes optimal classifier can be defined as the one which minimizes the a pirori risk functional R(g)\doteq\mathbb{E}\big{[}\,L(Y,g(X)\,\big{]} where is an arbitrary loss function.
In this paper we will focus on the loss that is one of the most common choices [1]. It is defined by , where is the indicator function. The corresponding a priory risk is simply .
As distribution is unknown, we typically aim at estimating . At any point , g_{*}(x)=\operatorname{sign}(\,\mathbb{E}\big{[}\,Y\,|\,X=x\,\big{]}\,) if it is feasible. Note that the conditional expectation f_{*}(x)\doteq\mathbb{E}\big{[}\,Y\,|\,X=x\,\big{]} contains even more information than , e.g., based on we are not only able to predict the label of a given input with minimal risk, but we can also calculate the risk itself, i.e., the probability of misclassification. Therefore, it is of high importance to study and estimate .
II-B Reproducing Kernel Hilbert Spaces
Given a Hilbert space of type functions, with inner product , we say that it is a Reproducing Kernel Hilbert Space (RKHS) if the point evaluation function is bounded (or equivalently continuous) for all [8]. In this case, by the Riesz representation theorem, there uniquely exists , such that for all , and . This is called the reproducing property, and the function is called the kernel. In particular thus is symmetric and positive definite. The converse is also true by the Moore-Arnoszjan theorem [9]: for each positive definite function there uniquely exists an RKHS. Typical examples of kernels are the Gaussian kernel, with , and the polynomial kernel, with and . For a given sample , the Gram matrix, , is defined as , which is a (data-dependent) symmetric, positive semidefinite matrix.
Let denote the space of bounded continuous functions on a compact metric space . A kernel is universal if the corresponding is dense in : for all and there exists such that .
II-C Kernel Mean Embedding
The idea of kernel mean embedding is to map distributions to elements of an RKHS with the help of the kernel [10]. Let be a measurable space and let denote the space of all probability measures on it. The kernel mean embedding of these probability measures into an RKHS endowed with a reproducing kernel is
[TABLE]
A kernel is called characteristic if the embedding, , is injective (e.g., the Gaussian kernel). In this case the embedded element captures all informations about the distribution, e.g., for all , if and only if . Hence, the embedding induces a metric on .
Let be a compact metric space and let be a universal kernel on , then one can show that is also characteristic.
The kernel mean embedding has nice properties even when the kernel is not characteristic. For example, for polynomial kernels with degree it holds that if and only if the first moments of and are the same.
Furthermore, many fundamental operations can be performed in instead of dealing with the distributions themselves, e.g., Smola showed [10] that .
The underlying probability distribution of the sample is typically unknown, therefore, the kernel mean embedding should be estimated from empirical data. An important tool to prove the validity of such approaches is the Strong Law of Large Numbers (SLLN) for random elements taking values in a separable Hilbert space . Let be a sequence of independent random elements taking values in . If
[TABLE]
where \mbox{Var}(X)\doteq\,\mathbb{E}\big{[}\,\|\,X-\mathbb{E}[X]\,\|_{\mathcal{H}}^{2}\,\big{]}, then
[TABLE]
(a.s.) in the metric induced by [11, Theorem 3.1.4].
III Resampling Framework
In this section we develop a framework to provide non-asymptotically guaranteed uncertainty quantification resampling algorithms for the “regression function”, namely, the conditional expectation of the labels given the inputs. The regression function is a fundamental object to study, for example, its signs at various inputs define the Bayes optimal classifier which achieves minimal misclassification risk.
Assume we have a (joint) distribution on , where and are the input and output spaces, respectively. does not have to be , but has to be a measurable space (with some -algebra). As we consider binary classification, . The regression function can be written as
[TABLE]
Given , the Bayes optimal classifier is
[TABLE]
where “” denotes the signum function. Note that in (6), for simplicity, we assumed that .
We assume that we are given an (indexed) family of possible regression functions that also contains , that is
[TABLE]
For simplicity, we refer to as a parameter, but can be an arbitrary set, even an infinite dimensional vector space. The true parameter is denoted by , that is .
We assume that contains square integrable functions w.r.t. the input distribution, and that the parametrization is injective, i.e., implies on a set having nonzero measure w.r.t. the input distribution. In other words,
[TABLE]
if , where is the distribution of the inputs.
Note that in itself does not determine the joint probability distribution generating the observations, namely, it does not contain information about the (marginal) distribution of the inputs, therefore, our approach is semi-parametric.
As an example, consider the case where the “” class has probability density function , while the “” class has density . For each element of the sample, there is a probability to see an element with “” label and a probability to see a measurement with “” label. Then,
[TABLE]
thus, if we have candidate densities for inputs with various labels and we know their mixing probability, then we can compute the regression function. However, observe that the regression function does not determine and .
III-A Resampling Labels
The observed i.i.d. input-output dataset is denoted by
[TABLE]
which can also be seen as a -valued random vector.
One of our core ideas is that if we are given a candidate , then we can generate (resample) alternative labels for the available inputs using the distribution induced by , that is
[TABLE]
which immediatelly follow from our observations in (III).
Given a , we can generate alternative samples by
[TABLE]
for , where for all , label is generated randomly according to the conditional distribution . For notational simplicity, we extend this to , that is and .
Naturally, for all , dataset can also be identified with a random vector in , and are always conditionally i.i.d., given the inputs, .
Observe that, in case , the distribution of is in general different than that of , ; while and have the same distribution for all possible .
III-B Ranking Functions
The proposed algorithms will be defined via rank statistics based on suitably defined orderings. A key concept will be the “ranking function” which, informally, computes the rank of its first argument among all of its arguments based on some underlying ordering. Let be a measurable space (with some -algebra), a (measurable) function , where , is called a ranking function if for all it satisfies the two properties
- (P1)
For all permutations of the set , we have
[TABLE]
that is the function is invariant with respect to reordering the last terms of its arguments. 2. (P2)
For all , if , then we have
[TABLE]
where the simplified notation is justified by (P1).
We refer to the output of the ranking function as the rank. An important observation about ranking exchangeable [12] random elements is given by the following lemma. (Recall that if a sample is i.i.d., it is also exchangeable.)
Lemma 1
Let be exchangeable, almost surely pairwise different random elements taking values in . Then, \psi\big{(}\,A_{1},A_{2},\dots,A_{m}\,\big{)} has discrete uniform distribution: for all , the rank is with probability .**
Proof:
Since are exchangeable, we know that
[TABLE]
[TABLE]
for all and all permutation on . Since this is true for all permutations, it is also true if we select randomly, independently of , with any distribution on the (finite) set of all possible permutations on .
As are almost surely non-equal, and function has properties P1 and P2, it holds with probability one that
[TABLE]
if and only if , where are permutations on . Hence, there are equivalence classes of permutations, denoted by , each containing permutations, with the (a.s.) property that permutations from the same class produce the same rank, while permutations from different classes produce different ranks. Therefore, each rank is produced by exactly one class , but naturally, the association of ranks and classes depends on the realization of the random elements .
Now, let us fix a realization in which the elements are pairwise different. Then, let us sample a permutation randomly, with uniform distribution on the set of all permutations. Since each equivalence class has the same number of elements, the probability that is exactly . As each yields a different rank, we have
[TABLE]
for all rank and independently of the realization . Note that if we did not use a uniform distribution, then the resulting rank distribution would of course depend on the actual realization we are ranking.
Because (16) is independent of the realization, the resulting discrete uniform distribution carries over to the case when are random, as they are (a.s.) pairwise different.
This last step can be made more precise as follows. For simplicity, let us introduce the notations , , and similarly for and . Then, let us introduce the indicator function of the rank being ,
[TABLE]
where and are deterministic. Then, let us define
[TABLE]
where is a random permutation selected uniformly from the set of all permutations on , and is a constant. Note that is a deterministic function. Then, we have
[TABLE]
for all whose elements are pairwise different. Then, using the properties of (conditional) expectation, we have
[TABLE]
where we also used that the elements of are almost surely pairwise different. This concludes the proof of the claim. ∎
III-C Confidence Regions
Inspired by FSID methods [4, 5, 6], the core idea of the proposed algorithms is to compare the original dataset with alternative samples which are randomly generated according to a given hypothesis. The comparison will be based on the rank of the original dataset among all the available samples, therefore, the ranking function is in the heart of all proposed algorithms. The differences between various algorithms primarily come from the various ways they rank.
Lemma 1 will be one of our main technical tools, however, it requires almost surely different elements, which is not guaranteed for . This will be resolved by random tie-breaking, similarly to the solution of [5]. To make this precise, consider a permutation of the set , generated randomly with uniform distribution, and independently of . Then, obviously are almost surely different, exchangeable random variables.
We extend datasets with . As a shorthand notation we introduce, for , the sample
[TABLE]
which now takes values in .
Given a ranking function , defined on the codomain (range) of the extended datasets, and hyper-parameters with , a confidence region can be defined by
[TABLE]
where denotes the applied hyper-parameters, with being the total number of available samples, including the original one as well as the generated ones.
Our main abstract result about the coverage probability of the true parameter of such confidence regions is
Theorem 1
We have for all ranking function and hyper-parameter with integers ,**
[TABLE]
Proof:
First note that are conditionally i.i.d., given the inputs, , therefore they are also exchangeable. As are exchangeable, as well, and is generated independently of the datasets, we have that are exchangeable, too, furthermore, they are almost surely pairwise different.
Then, the theorem follows directly from Lemma 1, as the lemma implies that the rank of takes each value in with probability exactly , therefore, the probability that its rank is between and is exactly . ∎
Theorem 1 shows that the confidence regions constructed as (22) have exact coverage probabilities, independently of the underlying probability distribution generating the (i.i.d.) data and for all ranking functions (satisfying P1 and P2). Observe that it is a non-asymptotic result, the exact coverage probability is valid irrespective of the sample size, . Also note that the hyper-parameters are user-chosen, therefore, any (rational) confidence probability in can be achieved.
This theorem is very general and hence also allows some degenerate constructions, like the ones that do not depend on the data at all, only on the tie-breaking random permutation, . Such regions are called purely randomized. In order to avoid such constructions, we should analyze other properties of the methods. Besides having guaranteed confidence, one of the most important properties an algorithm can have is (strong) consistency, namely, the property that, for any false parameter, as the sample size increases, eventually it will be excluded from the constructed confidence region (a.s.).
Formally, a method is strongly consistent if
[TABLE]
for all parameter , , where denotes the confidence region constructed based on a sample of size . Obviously, purely randomized regions are not consistent.
IV Kernel-Based Constructions
In this section we propose three kernel-based algorithms to construct confidence regions based on the resampling framework of Section III. We show that all of these methods have exact coverage probabilities and are strongly consistent.
IV-A Algorithm I (Neighborhood Based)
The main idea of Algorithm 1 is that we can estimate the regression function, , based on the available (quantized) dataset, , by the kNN (-nearest neighbors) algorithm. We can similarly do so based on the alternative datasets, . Then, we can compare the estimate based on to the ones coming from the alternative samples.
For Algorithm I we assume that , is compact, the support of the (marginal) distribution of the inputs, , is the whole , furthermore, is absolutely continuous.
Let us introduce functions, for , as
[TABLE]
where is an indicator function (its value is if its argument is true, and [math] otherwise), denotes the closest neighbors of from , and is a constant (window size), which can depend on . We use the standard Euclidean distance as a metric on (to define neighbors). Since the inputs, , have a distribution that is absolutely continuous, there is zero probability of ties in .
Given two square integrable functions, , let
[TABLE]
We will need the total (cumulative) distance of from all other functions, thus we introduce, for
[TABLE]
Then, we can define the rank of among as
[TABLE]
where is an indicator function, and binary relation “” is the standard “” with random tie-breaking. More precisely, as before, let be a random (uniformly chosen) permutation of the set . Then, given arbitrary real numbers, , we can construct a strict total order, denoted by “”, by defining if and only if or it both holds that and .
Therefore, in case of Algorithm I, the ranking function is
[TABLE]
As we will see (cf. the proof of Theorem 2), for any fixed false parameter, tends to have the largest rank, therefore, we fix and only exclude parameters which lead to high ranks. That is, using (22), the confidence set is
[TABLE]
where again denotes the user-chosen hyper-parameters with ; we assume that .
The main theoretical results can be summarized as
Theorem 2
The coverage probability of the region is
[TABLE]
for any sample size . Moreover, if are chosen such that and , as , then the confidence regions are strongly consistent, as defined by (24).**
Proof:
The exact confidence of the constructed regions immediately follows from Theorem 1, as it is straightforward to check that the applied ranking satisfies P1 and P2.
In order to prove strong consistency, let us fix a false parameter with . Since the parametrization is injective, we know that on a set of positive measure.
Under our assumptions we know that the kNN estimator (25) is strongly consistent [3, Theorem 23.7], that is
[TABLE]
almost surely, for . Since the support of is and it is absolutely continuous, we have the same (a.s.) convergence properties if we use instead of . Now, let , then taking (27) into account,
[TABLE]
almost surely, from which tends to take rank in the ordering (a.s.), as . Therefore, for any fixed , asymptotically we (a.s.) have that , which means that will be (a.s.) excluded from the confidence region (since ), as the sample size tends to infinity. ∎
Regarding the computation aspects of Algorithm I note that can be calculated exactly based on the available data, as they are piece-wise constant functions. The distance can also be calculated from the available data. Nevertheless, one may use the Monte Carlo approximation
[TABLE]
where is a constant and are i.i.d. random variables having uniform distribution on . Note that we know from the strong law of large numbers (SLLN) that the sum in (36) almost surely converges to , as .
It is relatively easy to see that using the approximation in (36), instead of (26), does not affect the exact coverage probability of the algorithm. Moreover, if as , then one can also show the strong consistency of the Monte Carlo approximated variant. Hence, the theoretical properties of Theorem 2 remain valid even under (36), but the sizes of regions are of course affected by the approximation.
The kNN estimator, which is in the core of Algorithm I, is a simple kernel method that uses a variable bandwidth rectangular window. A natural generalization of this approach is to apply other kernels, such as Gaussian or Laplacian, for local averaging. Given any kernel , by interpreting it as a similarity measure, we can redefine functions as
[TABLE]
which leads to alternative confidence region constructions.
These variants typically also build confidence regions with exact coverage probabilities. Moreover, as a wide variety of such kernel estimates are strongly consistent, under some technical conditions [3], and the generalized Algorithm I inherits these properties, the resulting confidence sets are also strongly consistent. The corresponding coverage and consistency theorems could be proved analogously to Theorem 2.
IV-B Algorithm II (Embedding Based)
The core idea of Algorithm II is to embed the distribution of the original sample and that of the alternative ones in an RKHS using a characteristic kernel. If the underlying distributions are different, then the original dataset results in a different element than the one the alternative datasets are being mapped to, which can be detected statistically.
Assume is a separable RKHS containing type functions with a characteristic, bounded, and translation-invariant kernel . If , then , and we can use, for example, the Gaussian, the Laplacian, or the Poisson kernel, which are all characteristic [10].
Let us introduce the following kernel mean embeddings
[TABLE]
where and are a random elements from ; Variable has the “true” distribution of the observations, while has a distribution where the output, , is generated according to the conditional probability (III-A), parametrized by , while the marginal distribution of the input, , remains the same.
Since the kernel is bounded, \mathbb{E}\big{[}\,\sqrt{k(S_{\theta},S_{\theta})}\,\big{]}<\infty, for all , which ensures that exist and belong to [10].
Because the kernel is characteristic, we know that if and only if . Now, let us introduce the following empirical versions of the embedded distributions,
[TABLE]
for , where ; and recall that for (original sample), we have . In other words, has the same distribution of for and its distribution is the same as that of for .
Let be a constant that satisfies for all . Then, obviously for all , as well. Now, applying the reproducing property, we have the bound
[TABLE]
where is either or , and h\,\doteq\,\mathbb{E}\big{[}\,k(\cdot,S)\,\big{]}.
Then, we know from the SLLN for Hilbert space valued elements that (a.s.), as , for , additionally, (a.s.), as .
Now, we can define the variables similarly to (27), but using the squared distances instead of , and construct the confidence set as (30).
Theorem 3
The confidence regions of Algorithm II have
[TABLE]
for any sample size ; and they are strongly consistent.**
Proof:
The exact confidence again follows from Theorem 1 by noting that the ranking satisfies P1 and P2.
The proof of consistency follows the ideas of the proof of Theorem 2. Namely, let us fix a false parameter with . Since the parametrization is injective, we know that and have different distributions. As the kernel is characteristic, we know that the RKHS embedded distributions and are different. We then apply the SLLN for Hilbert space valued elements [11] and use the construction of the variables to get the limits
[TABLE]
for , almost surely, where . Thus, again tends to take rank (a.s.), as , which leads to the (a.s.) asymptotic exclusion of the false parameter (for more details, see the proof of Theorem 2). ∎
The squared distance of the empirical versions of the embeddings can be computed by applying the reproducing property of the kernel and the Gram matrix of the sample .
Algorithm II has a nice theoretical interpretation as comparing embedded distributions in an RKHS. However, as the Gram matrices required to compute the variables depend on , this method has a large computational burden, hence the importance of Algorithm II is mainly theoretical. Nevertheless, motivated by its ideas, in the next section we suggest a computationally much lighter algorithm.
IV-C Algorithm III (Discrepancy Based)
Algorithm III follows the intuitions behind Algorithm II, but ensures that we can work with the same Gram matrix for all . Moreover, it has a simpler construction for , which also makes it computationally more appealing.
For Algorithm III we assume that is a separable RKHS containing functions with a universal, bounded, and translation-invariant kernel . We assume that is a compact metric space, hence, is also characteristic [10]. Finally, we assume that each is continuous.
Let us introduce the notation , for and . Note that if , has zero mean for all , as f_{\theta}(x_{j})=\,\mathbb{E}_{\theta}\big{[}\,y_{i,j}(\theta)\,|\,x_{j}\,\big{]}.
The fundamental objects of Algorithm III are
[TABLE]
for . Observe that can be easily computed using the Gram matrix , as
[TABLE]
using the notation .
From this point, we follow the construction of Algorithms I and II, namely, we define the ranking function as (28), and the confidence region as (30), but naturally we apply our new functions (45) as the definition of the variables.
Theorem 4
The confidence regions of Algorithm III have
[TABLE]
for any sample size ; and they are strongly consistent.**
Proof:
The exact confidence follows from Theorem 1.
For the proof of strong consistency, let us fix and an . To simplify the notations, introduce and . We first show that has zero mean
[TABLE]
About the variance of , observe that
[TABLE]
where , for any since the kernel is translation-invariant; also note that , for any , because of the reproducing property of the kernel.
Therefore, we can apply the Hilbert space valued SLLN to conclude that (a.s.), as , for all .
Now, let . We will prove that the mean of is not zero. We can again show
[TABLE]
using similar steps as in (48), except in the last one, where in our case we have . We will argue that the term \mathbb{E}\big{[}\,(f_{*}(x_{j})-f_{\theta}(x_{j}))k(\cdot,x_{j})\,\big{]} cannot be zero.
Let us introduce , and assume indirectly that \mathbb{E}\big{[}\,f_{0}(x_{j})\,k(\cdot,x_{j})\,\big{]} is the zero function. Then, for all , \left<f_{0},k(x,\cdot)\right>_{\scriptscriptstyle P}\!\doteq\mathbb{E}\big{[}\,f_{0}(x_{j})k(x,x_{j})\,\big{]}=\,0 (note that an RKHS is a space of functions and not that of equivalence classes of functions). Since the kernel is universal, is compact, and is continuous, we know that for all , there exists an , such that . Then, clearly
[TABLE]
since is a probability measure on . Hence, for all ,
[TABLE]
Since is the kernel of the RKHS, we can write as
[TABLE]
for some points . Since for all , ,
[TABLE]
where we have applied Fubini’s theorem [12] to exchange the two integrals (one of which is a sum). Regarding the applicability of Fubini’s theorem note that both integrals are w.r.t. a finite measure, and the functions are bounded.
Then, combining (52) and (54) we get that for all ,
[TABLE]
which implies that . On the other hand, we know from (8) that this norm cannot be zero if . Therefore, we have reached a contradiction, hence \mathbb{E}\big{[}\,(f_{*}(x_{j})-f_{\theta}(x_{j}))k(\cdot,x_{j})\,\big{]} cannot be the zero element of the RKHS.
We can use a similar argument to (41) to show that is bounded, also using that are bounded. Then, applying the Hilbert space variant of SLLN [11],
[TABLE]
almost surely. Therefore, summarizing our results, we have
[TABLE]
for , almost surely, where . Thus, again tends to take rank (a.s.), as , which leads to the (a.s.) asymptotic exclusion of the parameter . ∎
V Numerical Experiments
Numerical experiments were carried out to demonstrate the proposed algorithms. In the presented test scenario the joint probability distribution of the data was assumed to be the mixture of two Laplace distributions with different locations, , but with the same scale . It was assumed that with probability we observe the “” class, and with we see an element of the “” class. Selecting , , and induces a regression function, e.g., see (9).
During the experiments the confidence regions were built for parameters and , while the location parameters were fixed, and , to allow two dimensional figures. Figure 1 demonstrates the obtained ranks for various using Algorithm I with the kNN approach (a), Algorithm I with a Gaussian kernel (b) and Algorithm III with a Gaussian kernel (c). For the Gaussian kernel we choose . On parts (a), (b) and (c) darker colors indicate smaller ranks, hence, the darker the color is, the more likely the parameter is included in a confidence region. The three corresponding (exact) confidence regions are also demonstrated by part (d). The true parameters were (-axis) and (-axis). The sample size was and (original and alternative) samples were generated. The regions were evaluated on a grid.
It can be observed that Algorithm III produced the most concentrated rank clusters and provided the smallest confidence region. The extended version (37) of Algorithm I, with a Gaussian kernel, produced comparable results, while the kNN version was the worst in this case. Nevertheless, it still has computational advantages which may make it attractive.
Note that in this special example it is possible to construct individual confidence regions for parameters and based on standard results. One can use, for example, Hoeffding’s inequality [12] to get confidence intervals for probability , and can be estimated based on the fact that the variance of the observations, for both classes, is . Nevertheless, such approaches need the specific interpretations of the parameters: on how they influence the observations. Furthermore, even in this very special case it is not obvious how to construct a joint confidence region for the pair. Simply intersecting the two confidence tubes (i.e., if we extend the confidence intervals for and to , then they define two infinite “stripes”, a vertical and a horizontal one) produces a set with a lower confidence than that of the original sets, and hence it ultimately leads to conservative confidence regions.
On the other hand, the suggested three algorithms do not presuppose any interpretation of the tested parameters, apart from the fact that they determine a regression function. They do not need a fully parametrized joint distribution, indeed, the regression function is compatible with infinitely many joint distributions having widely different (marginal) input distributions. Furthermore, if , then the algorithms automatically build joint and non-conservative confidence sets. Hence, another advantage of the presented framework, apart from its strong theoretical guarantees, is its flexibility.
VI Conclusions
In this paper we addressed the problem of building non-asymptotic confidence regions for the regression function of binary classification, which is a key object defined as the conditional expectation of the class labels given the inputs.
The main idea was to test candidate models by generating alternative samples based on them, and then computing the performance of a kernel-based algorithm on all samples. If the candidate model is wrong, then the algorithm behave differently on the alternatively generated samples than on the original one, which can be detected statistically by ranking.
Three constructions were proposed and it was proved that all of them build confidence regions with exact coverage probabilities, for any sample size, and are strongly consistent.
The proposed framework is semi-parametric, because the regression function does not determine the (joint) probability
distribution of the data, it does not contain information about the (marginal) distribution of the inputs (and that is why only the outputs are resampled in the alternative datasets).
Moreover, the algorithms only indirectly depend on the given family of candidate functions, namely, their inputs are just the original sample and several alternative samples generated based on the tested function. Consequently, the family of regression functions can be arbitrary. It could even be the set of all possible regression functions which satisfy (8) and the theoretical results are still valid. If we work with an infinite dimensional class of functions, then the confidence regions cannot be explicitly constructed in practice. Nevertheless, it is still possible to test any candidate regression function to check whether it is included in a confidence set, or in other words, to quantify its uncertainty by computing how compatible it is with the available observations.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] V. N. Vapnik, Statistical Learning Theory . Wiley-Interscience, 1998.
- 2[2] A. Goudjil, M. Pouliquen, E. Pigeon, O. Gehan, and M. M’Saad, “Identification of systems using binary sensors via support vector machines,” in 54th IEEE Conference on Decision and Control (CDC), Osaka, Japan , pp. 3385–3390, 2015.
- 3[3] L. Györfi, M. Kohler, A. Krzyzak, and H. Walk, A Distribution-Free Theory of Nonparametric Regression . Springer, 2002.
- 4[4] A. Carè, B. Cs. Csáji, M. Campi, and E. Weyer, “Finite-sample system identification: An overview and a new correlation method,” IEEE Control Systems Letters , vol. 2, no. 1, pp. 61 – 66, 2018.
- 5[5] B. Cs. Csáji, M. C. Campi, and E. Weyer, “Sign-Perturbed Sums: A new system identification approach for constructing exact non-asymptotic confidence regions in linear regression models,” IEEE Transactions on Signal Processing , vol. 63, no. 1, pp. 169–181, 2015.
- 6[6] S. Kolumbán, System Identification in Highly Non-Informative Environment . Ph D thesis, Budapest University of Technology and Economics, Hungary, and Vrije Univesiteit Brussels, Belgium, 2016.
- 7[7] G. Pillonetto, A. Carè, and M. C. Campi, “Kernel-based SPS,” in Proceedings of the 18th IFAC Symposium on System Identification (SYSID 2018), Stockholm, Sweden, July 9-11, 2018 , pp. 31–36, Elsevier, 2018.
- 8[8] T. Hofmann, B. Schölkopf, and A. J. Smola, “Kernel methods in machine learning,” The Annals of Statistics , pp. 1171–1220, 2008.
