Discriminative Learning of Prediction Intervals

2017·Arxiv

Abstract

Abstract

In this work we consider the task of constructing prediction intervals in an inductive batch setting. We present a discriminative learning framework which optimizes the expected error rate under a budget constraint on the interval sizes. Most current methods for constructing prediction intervals offer guarantees for a single new test point. Applying these methods to multiple test points can result in a high computational overhead and degraded statistical guarantees. By focusing on expected errors, our method allows for variability in the per-example conditional error rates. As we demonstrate both analytically and empirically, this flexibility can increase the overall accuracy, or alternatively, reduce the average interval size.

While the problem we consider is of a regressive flavor, the loss we use is combinatorial. This allows us to provide PAC-style, finite-sample guarantees. Computationally, we show that our original objective is NPhard, and suggest a tractable convex surrogate. We conclude with a series of experimental evaluations.

1 Introduction

Constructing an interval which contains some point of interest with high probability is a fundamental task in statistics. In contrast to point predictions, intervals provide some measure of confidence, and can be used to reason about the reliability of a prediction. In this paper we focus on prediction intervals (PIs). For some predetermined , the classic task of

Proceedings of the 21International Conference on Ar-tificial Intelligence and Statistics (AISTATS) 2018, Lanzarote, Spain. PMLR: Volume 84. Copyright 2018 by the author(s).

PI estimation is to construct an interval [] which will contain a point sampled from some distribution D with probability of at least 1 . PIs are hence similar in spirit to confidence intervals, but are designed to contain future sampled points rather than population parameters such as the mean or variance.

In this paper we consider non-parametric PI estimation in a regressional setting. Let be an unknown joint distribution over examples and labels , where X, Y denote random variables and x, y their instantiations. In the classic PI task, we are given a training set of m pairs sampled i.i.d. from , and an additional test example sampled from the marginal . Then, for a given confidence level , the goal is to construct an interval [which will contain the true label with probability of at least 1 . The classic approach to this task is to first estimate the conditional , and then infer the smallest interval which covers 1 of the probability mass. In the case of a Gaussian conditional distribution, this leads to simple closed form solution for computing PIs, and provides asymptotic guarantees when the data is indeed Gaussian (see also Sec. 2). There are many variations on this parametric two-step approach [10, 11], as well as other direct and non-parametric methods [24, 9, 23].

Methods such as the above are designed for the classic setting which concerns only a single new test example. In many realistic cases, however, the task is to predict intervals for a set of future test points, given only the training data. This setting is known as inductive batch learning and has been extensively studied in machine learning. As we later discuss in detail, applying single test-point methods to the batch setting is rarely straightforward, and often comes at the cost of a significant computational overhead and/or the loss of statistical guarantees [14, 15, 3]. This is also true for the recently popular methods based on conformal prediction designed in the online learning setting [2, 13].

Our goal in this paper is to provide a general framework for efficient PI estimation in the batch setting. The approach we present formulates PI estimation as a discriminative learning task, where the goal is to learn an interval predictor with high expected accuracy. To this end, we design a learning objective which takes into account the natural tradeoff between accuracy and interval size. Our analysis provides computational guarantees on training such predictors, as well as statistical guarantees on their generalization. These ensure that an interval predictor with an average error of on the training set is guaranteed to have an expected error of roughly on the entire population.

The method we present differs from the standard single-point approach in three important ways. First, the learning objective we consider relaxes the classic -confidence requirement to hold in expectation. Focusing on expected errors allows our method to predict intervals with different error rates for different examples. Second, a model-free discriminative framework separates the task (predicting accurate intervals) from the model (Gaussian, linear, etc.). To this end, we first identify an appropriate combinatorial loss function, and then suggest a tractable convex surrogate. This allows for trading off guarantees on optimization (in the linear case) with potentially higher accuracy (via more expressive predictor classes). Third, our approach allows for reversing the classic roles of accuracy and interval size: instead of fixing an error rate of and predicting tight intervals, we can minimize the error under a fixed budget constraint on the mean interval size. Intuitively, allowing for variability in individual interval sizes enables the overall accuracy to be boosted by “sacrificing” some points for the sake of others. Overall, the formulation we present is geared towards maximizing expected accuracy, rather than providing (asymptotic) worst-case guarantees.

For the analysis, we partition the significance level into a confidence term (over the train set ) and an accuracy term (over new points ), thus promoting PAC-style results. Fixing a base class B of real functions, we show how the VC dimension of interval predictors based on B can be expressed in terms of the VC dimension of thresholds over B. This covers several well-established classes of binary clas-sifiers. Our results show that the VC of intervals is O(d), where d is the VC of the corresponding threshold class. Thus, our framework provides finite-sample bounds that depend only on the function class. This is in contrast to classic methods which typically offer asymptotic guarantees that depend on the algorithm.

The paper is structured as follows. In Sec. 2 we review related work on prediction intervals. We then compare the single-point and batch settings in Sec. 3, and present our discriminative method in Sec. 4. Sec. 5 contains a theoretical analysis of both the statistical complexity (Sec. 5.1) and computational complexity (Sec. 5.2) of our approach. Finally, Sec. 6 contains a detailed experimental evaluation of our method on a collection of benchmark datasets. We conclude with a discussion of our results in Sec. 7.

2 Related Work

The simplest approach for constructing PIs includes two steps. In the first step, as in standard regression, a point-predictor is trained. Then, intervals [] are constructed around the predictions ˆy = f(x). In the parametric setting, the conditional distribution is assumed to have some parametric form (for a comprehensive review, see [6]). Given a new example x, the interval boundaries and u are then set to contain 1 of the probability mass. Many parametric forms of lead to closed form solutions for []. For example, assuming 1) gives:

where Φ) is the inverse normal cdf, and the conditional mean estimates ˆy = ˆ) can be learned via simple regression [20].

In Eq. (1), the interval boundaries are in effect set to be the 2 and 1 2 quantiles of the (assumed) conditional distribution. This suggests that the above two-stage process can be replaced with a direct estimation of the conditional quantiles ). Quantile regression can then be used to predict PIs [9], circumventing the need to explicitly state a distributional assumption. This can either be done by minimizing a tilted version of the absolute loss over a parametric hypothesis class [10, 11], or by using non-parametric empirical quantile estimates using bootstrapping [24] or leave-one-out sampling [23].

Methods such as the above are often justified by asymptotic guarantees. These, however, do not always lead to good performance in practice. Some methods offer corrections for finite-sample biases [19, 17], but are often based on further assumptions, and general sample complexity results are typically hard to obtain.

In a set of comprehensive papers on conformal prediction, the authors expand the classic single test-point setting to an online setting where a set of new examples are given in sequence [5, 21]. The goal is then to minimize regret, namely predict intervals which will be good in hindsight compared to the best fixed alternative. Based on this, recent work [12] introduces flexible extensions to the basic conformal method, as well as additional finite-sample and distribution-free asymptotic guarantees. While several works on conformal prediction discuss the batch setting [2, 14, 15], the implicit goal in these is still to achieve a per-example error of at most . This typically induces a large computational overhead in the inductive setting, since every new point effectively requires fitting a new model. The split-conformal method in [13] fits a single model, but at the cost of larger intervals [3]. Our method, in contrast, focuses on an inductive batch setting where the goal is to minimize the expected error, and a predictor is trained only once on a fixed training set.

Several works consider a learning setting that is similar to ours, most of which are motivated by specific applications. In [8], the authors design a multi-criteria loss and train a neural network to explicitly predict the interval boundaries. Several extensions of this approach have been suggested as well [25, 7]. In contrast to our method, the above methods balance accuracy and interval size heuristically, use a discontinuous (and non-convex) objective, offer no statistical guarantees, and are applied only to small datasets.

3 Single-point vs. Batch

Before presenting our method, it will be useful to formally discuss the subtle but crucial distinctions between the single test-point and inductive batch settings. Let be an interval predictor. In the single test-point setting (as well as in the online learning setting used in conformal prediction [21]), the requirement is to guarantee that:

where denotes the joint probability over both S and (). In this setting, and in order for Eq. (2) to hold, the algorithm for constructing f is typically given access to both . In contrast, in the batch setting, the algorithm is allowed access to S alone. To highlight this distinction we use the notations ) and ) accordingly.

Methods which are designed to satisfy Eq. (2) can in principle be applied to the batch setting. This, however, often comes at either a computational or a statistical cost. One popular and straightforward approach is to compute a new predictor ) for every new test point x. For example, this idea lies at the core of conformal prediction, and is used to provide regret-type guarantees for the online learning settings. While feasible, such an approach carries a significant computational overhead. To circumvent this, other approaches partition S into effective ‘train’ and ‘test’ subsets [2, 13, 3]. This allows them to work with a single predictor, but can result in the downgrading or loss of statistical guarantees.

One way to restore some guarantees in this setting is to tighten the condition in Eq. (2), and require that the probability of success conditionally holds for

examples [15], namely:

Here, the probability is over the joint distribution of sample sets S and conditional new labels y. This means that for , the predicted intervals should contain the labels with probability of at least 1 , and is in effect what methods such as quantile regression [10, 9] aim for.

Due to its worst-case nature, the performance of predictors constructed to satisfy Eq. (3) is dominated by the difficult instances. Here we argue that such worst-case requirements can be overly demanding. In accordance, we propose an objective which modifies Eq. (3) in two important ways. First, we relax the worst-case requirement over to hold in expectation over the marginal . Second, in the analysis (Sec. 5), we partition into a confidence term over the training set and an accuracy term over new examples. Overall, our aim is to guarantee that, with probability of at least 1 over , we have:

Intuitively, this means that when the training set is representative of the distribution, we’d like f to generalize well to new examples. In the next section, we show how this can be achieved by minimizing an appropriate loss function.

4 Method

Our approach considers the task of generating PIs from a model-free, discriminative learning perspective. Given a training set sampled i.i.d. from , our goal is to learn an interval predictor f with a low expected loss:

The loss function L (y, f(x)) should quantify how well the predicted interval f(x) fits the label y. Since a good interval is one which contains the true label, a natural choice is the following interval 0/1-loss:

Under this loss, Eq. (5) can be rewritten as:

Hence, a good mapping is one which produces good intervals in expectation. Specifically, a mapping f with L (f) = guarantees that predicted intervals will contain the true labels with probability 1, on average.

When comparing the above discriminative criterion with the standard PI criterion in Eq. (3), it becomes clear that they differ only in their requirement over x. Specifically, while Eq. (3) requires that labels be covered with probability 1 for , Eq. (7) requires this only in expectation. The discriminative objective in Eq. (7) can therefore be seen as a relaxation of the classic criterion, one which allows for variability in the probability of covering the true label. This gives our approach some flexibility, which as we show, can boost predictive performance.

4.1 Learning Objective

When considering how to train a predictor over S, it might at first be tempting to solve the following empirical risk minimization (ERM) objective:

where [ˆ] = f(x) is the predicted interval, and F is a class of interval predictors. However, it quickly becomes apparent that without constraining the size of the predicted intervals, the loss can be arbitrarily low for any input. This is because, for any reasonable F, intervals can be made large enough to always contain the true labels. This emphasizes a fundamental trade-off between error and interval size, and motivates the addition of a global budget constraint:

Thus, for a given budget B, our hypothesis class is effectively restricted to include only predictors f which generate intervals with an average size of at most B. Of these, our objective is to choose one with minimal error. Note that the ˆconstraints are always feasible when F includes functions with a bias term.

The idea of fixing a budget and minimizing error in some sense reverses their roles when compared to that of classic PI methods. In these, the first step is to predetermine and fix the amount of tolerated error . Then, for a new point x, the interval is set to the tightest lower and upper bounds which contain 1 of the (estimated) conditional density of Y given

Compared to this approach, the roles of the objective and constraints in Eq. (9) are reversed.

Nonetheless, our method can also be applied to the fixed-error setting in two ways. First, for a given , it is possible to solve a “reversed” variant of Eq. (9):

When ) is convex (such as in the surrogate we consider in next section), Eqs. (9) and (10) are in fact dual, in the sense that for every error there exists a budget B such that the solutions of Eq. (9) and Eq. (10) coincide. A second option is to perform a line search over B using Eq. (9), and estimate ) over a held-out validation set. Since the error is monotone in the budget, this can be done efficiently. Note that a budget-error curve can be constructed by solving Eq. (9) for a range of budgets (as in Fig. 1(B)).

4.2 Convex Surrogate

Since the labels and predictions in our setting are real, the problem we consider may appear to be one of regression. Nonetheless, it is in essence a classification problem, and the combinatorial nature of the 0/1 loss in Eq. (19) makes it NP-hard to solve (see Sec. 5.2). Due to this, we turn to learning with tractable surrogates. In what follows we suggest a convex surrogate to the 0/1 loss, and discuss its properties.

Our surrogate loss is inspired by the used in Support Vector Regression Machines [26, 22]:

Here, a point-prediction ˆincurs no penalty if it is within distance of the true label y; otherwise, the penalty is linear. For the special case of = 0, the -insensitive reduces to the standard mean absolute error loss. For = 1, the loss ˜L can be thought of as a symmetrized variant of the popular hinge loss used in SVMs, in which both under- and over-estimates of y are penalized. This motivates the idea that, just as the hinge loss serves as a proxy to the binary 0/1-loss, the -insensitive loss can be used as a surrogate to the interval 0/1-loss.

Recall that our learning goal is to produce a low-error interval predictor under a budget constraint on the average interval size (Eq. (9)). For a given budget B, one way to achieve this is to set and learn a point-predictor ˜with ˜L. Then, predicted intervals are constructed via ˆ= ˜2 and ˆu = ˜f(x) + ∆/2, for ∆ = . Note that for every x, the interval size is exactly ∆ = ˆˆ. Under this approach, the training loss and test-time predictions are calibrated: a predicted interval is penalized only if it does not contain the true label.

Clearly, fixing all interval sizes ∆ to B is sufficient for satisfying the budget constraint. This, however, is not necessary, as the constraint requires only that the intervals be of size B on average. Hence, interval sizes can vary, and solutions with varying interval size can in principle give lower error.

The idea of varying interval sizes lies at the base of our approach. To allow for variation, we parametrize the interval size ∆, and jointly learn a point predictor ˆy = f(x; w) and an interval-size predictor ˆ∆ = g(x; v). For learning, we use a parametrized -insensitive loss, with a per-example insensitivity scale ) = g(x; v). The learning objective can be written as follows:

where in practice f and g are additionally regularized. For a liner parameterization, namely f(x; w) = and g(x; v) = for and , the loss and constraints in Eq. (12) become convex in both w and v. Finding the global optimum can be done efficiently using standard convex solvers. Although ˆy lies at the center of ˆ∆, the quantiles which correspond to the interval endpoints ˆare not necessarily symmetric, and can vary across examples. This is in contrast to most methods which use fixed symmetric-tail quantiles. A possible alternative is to directly parametrize the interval boundaries via ˆ) and ˆ). In the supplementary material we show that for linear predictors both parameterizations are equivalent (up to regularization).

The objective in Eq. (12) allows for variability in the size of predicted intervals. As in other approaches, this can be used to account for conditional heteroskedasticity. But, more importantly, a differential allocation of the budget allows for variability in the conditional probability of errors, namely:

Intuitively, this allows our method to boost the overall accuracy by “sacrificing” the accuracy of some points (by reducing the size of their interval) in favor of others (by allocating them more of the budget).

Without restricting the form of ˆ∆, solving Eq. (12) would most likely result in overfitting. In this scenario, intervals would either be allocated just enough budget to cover the labels exactly, or allocated no budget at all. This outcome is clearly undesired as it can result in unstable predictions. It hence remains to show that learning parametrized interval predictors can lead to good generalization. In the next section we analyze the sample complexity of learning in our setting, and show that the VC dimension of a class of interval predictors is linear in the VC dimension of a corresponding class of threshold functions.

5 Theoretical Analysis

In this section we consider three aspects of our approach: the asymptotic properties of the interval constraints in Eq. (9), the sample complexity of learning with the 0/1-interval loss Eq. (19), and the computational hardness of ERM (Eq. (9)).

Constraints: Eq. (9) requires that the average interval size does not exceed the budget B, and that each predicted interval is consistent (that is, ˆ). For the budget constraint, let D be a random variable specifying the size of predicted intervals,with instances denoted by d. The distance between the average and expected interval sizes can therefore be bounded using standard concentration bounds. For consistency, note that if functions in F include a bias term, then the constraint can always be satisfied. This means that given an empirically consistent predictor f, its expected consistency can be estimated using sample complexity bounds for the realizable case. In practice, inconsistent predicted intervals can simply be replaced by point predictions. Alternatively, both constrains can be replaced by a single convex constraint of the form max.

Sample complexity: As noted in Sec. 1, classic PI methods consider a single confidence term defined the joint distribution of training set and a new example. For our analysis, we separately consider the training set and new examples. We use PAC theory to determine, for every [0, 1], the minimal number of examples m that guarantee an expected error of at most (over the test distribution) with probability of at least 1 (over the train set). To this end, in the following Sec. 5.1 we analyze the VC dimension of learning a class of interval predictors F.

Computational hardness: Many of the discontinuous losses in machine learning lead to combinatorial optimization problems which are hard to optimize. In Sec. 5.2 we prove that this is also the case for the interval 0/1 loss in Eq. (19). To this end, we show a reduction from the NP-hard problem MAX FS, which motivates the use of the convex proxy loss in Eq. (12).

5.1 VC Dimension

In this section we analyze the VC dimension of batch interval prediction. The difficulty in analysis lies in the fact that the function classes we consider are not binary, as both labels and predictions in our setting are real. Albeit the regressive nature of the learning setup, the loss is binary, and as a result, the complexity of learning is combinatorial. To overcome this difficulty, the main modeling point here is that we consider both x and y (and not just x) as the input to an hypothesis. This allows for expressing the VC dimension of a class of interval predictors in terms of the VC dimension of some base class of threshold functions.

Let be a base class of real functions (e.g., linear functions). Denote by F(B) the class of interval predictors whose interval boundaries are set by functions in B, namely function of the form ) = [)], where . Our goal here is to bound the VC dimension of F(B). We show that this can be done by first considering the VC dimension of threshold functions over the base class B.

In binary classification, a conventional way of using real functions for classification is to consider the corresponding classes of threshold functions:

For example, when B is the set of linear functions, both ) and ) are equivalent to the standard class of halfspace classifiers, whose VC dimension is d + 1.

The VC dimension of a class H of binary classifiers (such as ) and )) regards the number of possible label assignments of functions to a set of m points . The interval class F(B), however, is not binary, as functions ) map examples to real intervals. Nonetheless, the true object of interest in terms of sample complexity is rather the number of assignments of the loss function over a given class. This means that, for a given sample set of size m, we will analyze the num- ber of possible assignments to the interval 0/1 loss in Eq. (19) when learning with F(B). Formally, with a slight abuse of notation, we analyze the VC dimension of the binary class:

Note that analyzing the complexity of a class under a loss function is in fact the true (though sometime implicit) goal in standard binary classification as well. We prove the following in the supplementary material:

Lemma 1. The VC dimension of H equals the VC dimension of ).

where is appropriately defined over the standard binary 0/1 loss ) = .

The main difference in the analysis of these classes lies in the input and output of the functions they include. For binary classifiers, the inputs are examples x, and the outputs (which we’d like to shatter) are labels y. In contrast, inputs to functions in L(F) and ) are pairs (x, y) of an example and a label, while outputs are the binary evaluations of the loss function.

The next theorem shows that the VC dimension of F(B) under ) can be linearly bounded by the VC dimension of a corresponding binary threshold class. For simplicity, we focus on the case where H(B) = ) = ), which holds under mild assumptions. The general case is straightforward.

Theorem 2. Let be a base class. If the VC dimension of the threshold class H(B) is k, then the VC dimension of the interval class F(B) over the interval 0/1-loss in Eq. (19) is at most 10k.

Proof. For some ), we have:

Consider a set of size m that L(F) shatters. On the one hand, the m pairs have 2assignments under L(F). On the other hand, due to Eq. (15), the number of assignments is at most that of ) times that of ), namely:

where Π) denotes the maximal number of assignments of an hypothesis class over m points. Using the Sauer-Shelah Lemma and our assumptions on the VC dimension of H(B), for 3 we have:

Solving for the maximal m satisfying Eq. (16) gives 10k. Hence, VC(F(B)) under L is at most 10k.

Corollary 2.1. Let H(B) be a class of binary classi-fiers over the base class B with VC-dimension k, and let F(B) be the corresponding interval class. Then, for every [0, 1], if H(B) is ()-PAC-learnable over the binary 0/1-loss with m(k) samples, then F(B) is ()-PAC-learnable over the interval 0/1-loss with m(10k) samples. Hence, for any (10k):

5.2 NP-hardness

In this section we establish the computational hardness of minimizing the empirical risk over the interval 0/1-loss as in Eq. (9). We focus on the linear case where and the interval class is:

Proof. We show a reduction from the NP-hard problem Max-FS [18]. In this problem, given a (not necessarily feasible) linear system Az = d of M equations over N variables, the goal is to find the maximal feasible subsystem.Given an instance of Max-FS, namely and , we will construct a training set and budget B with cor- responding optimal solutions. W.l.o.g. we will assume that rows in A are distinct and that 2.

Our construction is as follows. Let m = 2M + 1. For every i = 1, . . . , M, set = () and = , for i = M + 1, . . . , m set = (0, . . . , 0) and = 0, and set B = 0. Let ) = [)] be a minimizer of Eq. (9), with ) = and ) = . First, note that must have = 0. This is because a solution with no bias terms is correct on at least M + 1 > m/2 examples, while any other solution can be correct on at most 2 examples. Second, in order to satisfy the budget and interval constraints, it must also hold that . This means that for i = 1, . . . , M, we have ) = (and therefore )) = 0) iff the equation in Az = d is satisfied by z = w, concluding our proof.

6 Experiments

In this section we evaluate the performance of our method on a collection of benchmark datasets. We compare our method to several baselines on data from the UCI repository [16]. We used all dense-featured regression datasets with between 1,000 and 10,000 samples, giving a total of 8 datasets. All of our experiments use a 80:20 train-test split. For each considered setting we set all meta-parameters via 5-fold crossvalidation on the training set over a tight grid. We report average errors (1-accuracy) over 100 random data splits. For datasets with less than 25 features, we augment each example with pairwise terms.

At its core, our method offers a general means for exploiting the variability in interval size for reducing error. While applicable to virtually any base class of real functions, our evaluation focuses on linear functions. This is because linear functions can be plugged into almost any method, provide computational guarantees for our method as well as the other baselines, and in many cases work well in practice. By using a linear base class in all methods, we allow for a fair comparison, where results express the statistical power (rather than computational traits) of the different methods.

In accordance with the above, we compare our method (IntPred) to several baselines, some of which are designed for the fixed-error setting (and take as input a significance lever ), and some, likes ours, which are designed for the fixed-budget setting (and take a budget B as input). Our fixed-error baselines include quantile regression (QuantReg) with symmetric tails, and batch-mode conformal prediction with the absolute loss (AbsConf) and squared loss (SqrConf). We use the efficient split-conformal inference method suggested in [13, 12], since other conformal methods are computationally infeasible for the datasets we consider. Our fixed-budget baselines include regressing with the absolute loss (AbsReg) or squared loss (LinReg) augmented with a fixed symmetric interval of size B, as well as the fixed-budget method (SVR) discussed in Sec. 4.2, which minimizes the -insensitive loss with . We use regularization in methods where this is possible.

Our main evaluation criterion is the test error, namely the probability that a predicted interval does not contain the true test label. Since errors can be reduced simply by enlarging the intervals, for a fair comparison we evaluated all methods over a fixed set of average interval sizes , and compared for each separately. This is easily achieved for the fixed-budget methods (since the budget is part of the input), but not neces-

Figure 1: (A) Accuracy across datasets, for budgets B under which the test error of IntPred is roughly 0.1. (B) Test error per normalized interval size, averaged over datasets. (C) Ratio of baseline test errors vs. IntPred.

sarily so for the fixed-error methods, which do not offer a direct way to control interval sizes. To include these in the comparison, we first evaluate them over a tight set of confidence levels [0, 1]. Then, we interpolate errors from the interval size outputs, and compute approximate errors for the budgets . For interpolation, we used 3-order monotonically-increasing concave splines with 5 knots over 30 points. This gave average values of 0.996 for QuantReg, 0.855 for AbsConf, and 0.901 for SqrConf.

Our results are presented in Fig. 1. In the spirit of classic PI methods, we focus on the high-confidence regime with errors in the range [0, 0.2].Fig. 1 (A) presents an evaluation across all datasets. For each dataset, we show results for the under which the test accuracy of our method was roughly 0.1. As can be seen, IntPred outperforms all other baselines for all but one dataset (where it ranks a close second). Across all evaluations, IntPred is statistically sig-nificantly better than the other methods (Friedman test [4], P < 10). While other methods perform well over some datasets, their performance is in general inconsistent. This is demonstrated in Fig. 1 (B) which displays errors averaged over all datasets for a range of (normalized) budgets.As the plot shows, the volatility of some baselines (especially of the fixed-error methods) results in high average errors.

Recall that, in effect, SVR optimizes over the same interval loss as IntPred, but is constrained to fixed-size interval predictions. Hence, comparing IntPred to SVR quantifies the added value (in terms of accuracy) of allowing for variability in interval size. Fig. 1(C) presents a direct comparison between the average error of IntPred and that of other methods, where each point on the plot corresponds to a different budget . The relative performance of SVR demonstrates that interval-size flexibility reduces the error by roughly 20% across most of the focal error region.

7 Discussion

This paper presents a method for constructing prediction intervals in an inductive batch setting. Our approach views PI estimation as a discriminative learning task, where the goal is to minimize the probability of error under a budget constraint. The algorithmic, computational, and statistical results were made possible by modifying the classic PI objective: focusing on expected errors, allowing for error variability, and separating accuracy from confidence.

Our experimental evaluation empirically demonstrates the potential of allowing for variability in accuracy across examples. As in many discriminative methods, this boost in accuracy comes at the price of explainability, as our method does not offer any guarantees on the confidence associated with individual examples. For example, a predicted interval can be small either because the confidence is very high (and there is no reason to waist budget), or because it is very low (and allocating budget is justified in terms of the loss). One interesting direction worth exploring is that of augmenting each prediction with a confidence estimate, namely the probability that the true label is within the interval. We leave this for future research.

Acknowledgments Supported in part by a grant from the Israel Science Foundation, a grant from the United States-Israel Binational Science Foundation (BSF), and the Israeli Centers of Research Excellence (I-CORE) program (Center No. 4/11). NR would like to thank Alon Gonen for his moral support, good advice, and technical contribution.

References

[1] Amaldi, E., and Kann, V. The complexity and approximability of finding maximum feasible subsystems of linear relations. Theoretical computer science 147, 1-2 (1995), 181–210.

[2] Burnaev, E., and Vovk, V. Efficiency of conformalized ridge regression. In Conference on Learning Theory (2014), pp. 605–622.

[3] Chen, W., Wang, Z., Ha, W., and Barber, R. F. Trimmed conformal prediction for high-dimensional models. arXiv preprint arXiv:1611.09933 (2016).

[4] Statistical comparisons of classifiers over multiple data sets. Journal of Machine learning research 7, Jan (2006), 1–30.

[5] Gammerman, A., and Vovk, V. Hedging predictions in machine learning: The second computer journal lecture. The Computer Journal 50, 2 (2007), 151–163.

[6] Geisser, S. Predictive inference, vol. 55. CRC press, 1993.

[7] Hosen, M. A., Khosravi, A., Nahavandi, S., and Creighton, D. Improving the quality of prediction intervals through optimal aggregation. IEEE Transactions on Industrial Electronics 62, 7 (2015), 4420–4429.

[8] Khosravi, A., Nahavandi, S., Creighton, D., and Atiya, A. F. Lower upper bound estimation method for construction of neural network-based prediction intervals. IEEE Transactions on Neural Networks 22, 3 (2011), 337–346.

[9] Koenker, R. Quantile regression. No. 38. Cambridge university press, 2005.

[10] Koenker, R., and Bassett Jr, G. Regression quantiles. Econometrica: journal of the Econometric Society (1978), 33–50.

[11] Koenker, R., and Hallock, K. Quantile regression: An introduction. Journal of Economic Perspectives 15, 4 (2001), 43–56.

[12] rani, R. J., and Wasserman, L. Distributionfree predictive inference for regression. Journal of the American Statistical Association, justaccepted (2017).

[13] Lei, J., Rinaldo, A., and Wasserman, L. A conformal prediction approach to explore functional data. Annals of Mathematics and Artificial Intelligence 74, 1-2 (2015), 29–43.

[14] Lei, J., Robins, J., and Wasserman, L. Distribution-free prediction sets. Journal of the American Statistical Association 108, 501 (2013), 278–287.

[15] Lei, J., and Wasserman, L. Distribution-free prediction bands for non-parametric regression. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 76, 1 (2014), 71–96.

[16] Lichman, M. UCI machine learning repository, 2013.

[17] Olive, D. J. Prediction intervals for regression models. Computational statistics & data analysis 51, 6 (2007), 3115–3122.

[18] Sankaran, J. K. A note on resolving infeasibility in linear programs by constraint relaxation. Operations Research Letters 13, 1 (1993), 19–20.

[19] Schmoyer, R. L. Asymptotically valid prediction intervals for linear models. Technometrics 34, 4 (1992), 399–408.

[20] Seber, G. A., and Lee, A. J. Linear regression analysis, vol. 936. John Wiley & Sons, 2012.

[21] Shafer, G., and Vovk, V. A tutorial on conformal prediction. Journal of Machine Learning Research 9, Mar (2008), 371–421.

[22] A tutorial on support vector regression. Statistics and computing 14, 3 (2004), 199–222.

[23] Steinberger, L., and Leeb, H. Leave-one-out prediction intervals in linear regression models with many variables. arXiv preprint arXiv:1602.05801 (2016).

[24] Stine, R. A. Bootstrap prediction intervals for regression. Journal of the American Statistical Association 80, 392 (1985), 1026–1031.

[25] Taormina, R., and Chau, K.-W. Ann-based interval forecasting of streamflow discharges using the lube method and mofips. Engineering Applications of Artificial Intelligence 45 (2015), 429– 440.

[26] Vapnik, V. The nature of statistical learning theory. Springer science & business media, 2013.

8 Equivalence of Parameterization

There are two natural parameterizations of intervals. The first is to model the interval boundaries via:

The second is to model the interval center and size:

Here we show that for linear predictors, both parameterizations are equivalent. Specifically, we show that for every () there exist some ( ˜) whose predictions coincide on all x, and vice versa.

Let , and consider some . Note that:

Similarly, for , we have:

We note that the only practical difference here would be when each component is regularized separately (e.g., with a different regularization constant).

9 VC of Functions and Losses

Recall that for a loss function L and a function class F, we define their composition as:

we denote the by ) the composition of the binary 0/1-loss function ) with a binary function class H, where:

Here we prove the following claim:

Lemma 4. The VC dimension of H equals the VC dimension of ).

Proof. The important observation here is that while both H and ) include functions with binary outputs, the functions differ in their domain. Specifically, functions in H map items x to binary outputs , while functions in ) take as input pairs (x, y) with and, via some , output the loss value .

Assume the VC dimension of H is m, then there exist some which shatter H. This means that for every , there exists some for which ) = for every i. Consider the set of pairs (0)0). For any , we have some for which ) = for every i. This means that any = 0 gives ) = 0, and hence:

Similarly, for any = 1 we have ) = 1 and:

Now, assume the VC dimension of ) is m. Then there exist some () which shatter ). This means that for every , there exists some such that )) = . Consider the set . For any , set = 0 for all i. Hence, the corresponding is such that )) = 0 for all i, which means that ) = as needed.

designed for accessibility and to further open science