<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Universal Prediction Band via Semi-Definite Programming</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>08/19/2022</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10417123</idno>
					<idno type="doi">10.1111/rssb.12542</idno>
					<title level='j'>Journal of the Royal Statistical Society Series B: Statistical Methodology</title>
<idno>1369-7412</idno>
<biblScope unit="volume">84</biblScope>
<biblScope unit="issue">4</biblScope>					

					<author>Tengyuan Liang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Abstract            We propose a computationally efficient method to construct nonparametric, heteroscedastic prediction bands for uncertainty quantification, with or without any user-specified predictive model. Our approach provides an alternative to the now-standard conformal prediction for uncertainty quantification, with novel theoretical insights and computational advantages. The data-adaptive prediction band is universally applicable with minimal distributional assumptions, has strong non-asymptotic coverage properties, and is easy to implement using standard convex programs. Our approach can be viewed as a novel variance interpolation with confidence and further leverages techniques from semi-definite programming and sum-of-squares optimization. Theoretical and numerical performances for the proposed approach for uncertainty quantification are analysed.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">INTRODUCTION</head><p>A plausible criticism from the statistics community of modern machine learning is the lack of rigorous uncertainty quantification, with perhaps the exception in conformal prediction <ref type="bibr">(Lei et al., 2018;</ref><ref type="bibr">Romano et al., 2019;</ref><ref type="bibr">Vovk et al., 2005)</ref>. Instead, the machine learning community would argue that conventional uncertainty quantification based on idealized distributional assumptions may be too restrictive for real data. Nevertheless, without a doubt, uncertainty quantification for predictive modelling is essential to statistics, learning theory and econometrics. This paper will resolve the above inference dilemma by introducing a new method with provable uncertainty quantification via semi-definite programming. This paper provides an alternative approach to the now-standard conformal prediction for uncertainty quantification, with novel theoretical insights and computational advantages. The proposed method learns a data-adaptive, heteroscedastic prediction band that is: (a) universally applicable without strong distributional assumptions, (b) with desirable theoretical coverage with or without any user-specified predictive model and (c) easy to implement via standard convex programs (when used in conjunction with a wide range of positive-definite kernels). Let (x, y) &#8712; &#57924; &#215; R be the covariates and response data pair drawn from an unknown probability distribution &#57916;. There are plenty of regression or predictive models-denoted by m 0 (x)-that estimate m(x) &#8758;= E[y | x = x] sufficiently well with finite data. However, to make downstream decisions reliable, a good prediction band quantifying the uncertainty in |ym 0 (x)| with provable coverage is urgently needed. The prediction band is of particular relevance to complex machine learning models that construct m 0 (x) in a less transparent way, such as deep neural networks and boosting machines. This paper makes progress in filling in such a gap: we estimate a nonparametric, heteroscedastic prediction band PI(x) that enjoys provable coverage with minimal data assumptions for any predictive model. Our approach can be viewed as a novel variance interpolation with confidence and leverages techniques from sum-of-squares relaxations for nonparametric variance estimation. On a non-technical level, this paper enriches the toolbox of applied researchers with a theoretically justified new methodology for uncertainty quantification and visualization, as in conformal prediction.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Semi-definite programs and prediction bands</head><p>We introduce our procedure for constructing the predictive band in this section. Let K(&#8901;, &#8901;) &#8758; &#57924; &#215; &#57924; &#8594; R be a continuous symmetric and positive-definite kernel function. Given n data pairs {(x i , y i )} n i=1 and the corresponding kernel matrix K &#8712; S n&#215;n with K ij = K(x i , x j ), our prediction band is constructed based on the following semi-definite program (SDP) min B Tr(KB)</p><p>where the optimization variable B &#8712; S n&#215;n is a symmetric positive semi-definite (PSD) matrix, m 0 (&#8901;) &#8758; &#57924; &#8594; R is a given predictive model (user-specified), and K i &#8712; R n denotes the ith column of the kernel matrix K. Given the estimated B, the prediction band, PI(x) that maps each x to an interval, can be constructed accordingly</p><p>where v(x) &#8758;= &#10216;K x , BK x &#10217;,</p><p>with &#120575; &#8712; R being a scalar quantifying confidence. &#120575; can be later calibrated for exact coverage control, and may be set as 0 if n is large. Here v(x) estimates the variability in the 'deviations' e i &#8758;= y im 0 (x i ). A few remarks on such deviations are in place.</p><p>1. First, e i 's can be computed based on any user-specified predictive model m 0 (x) that estimates the conditional mean m 0 (x) &#8776; E[y|x = x], be it accurate or not. 2. Second, in the absence of such a predictive model for the conditional mean, one can set m 0 (x) &#8801; 0 and learn a conditional second-moment function to assess uncertainty. 3. Last, as shown next in (3), in practice, one can simultaneously learn the conditional mean and variance functions using a variant of the above SDP. Therefore, a pre-specified model m 0 (x) is not required.</p><p>Let K m and K v specify two kernel functions, corresponding to the conditional mean and variance functions respectively. K m , K v &#8712; S n&#215;n denote empirical kernel matrices on finite data with size n. For any &#120574; &#8805; 0, the following convex SDP program constructs the prediction band and the conditional mean function simultaneously min</p><p>where the optimization variables are B &#8712; S n&#215;n and &#120572; &#8712; R n . Given the solution B and &#945;, the PI(x) is constructed as</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">A numerical illustration</head><p>Before diving into the motivations behind the above SDPs (Section 1.3) and corresponding theory (Section 2), let us first visually illustrate the empirical performance of the constructed prediction bands on a toy numerical example. A complete simulation study comparing our methods and conformal predictions will be deferred to Section 3.1. Details of the data generating processes will be elaborated therein as well. The quick exercise here is to showcase that convex programs (1) and ( <ref type="formula">3</ref>) are easy to implement using standard optimization toolkits (say, CVX <ref type="bibr">(Grant &amp; Boyd, 2014)</ref>), and construct flexible prediction bands with desired coverage properties. As a motivating example, we try out the SDP (3), which simultaneously estimates the conditional mean and variance functions. A minimal 10-line Python implementation is provided in Listing 1.</p><p>The first example is a linear model with heteroscedastic error: the conditional mean m(x) being a linear function and variance v(x) being a quadratic (with the conditional variance   generated from a uniform distribution). We generate a training dataset of size n = 40 and compare the coverage among three methods: (a) SLR, simple linear regression, (b) SDP1, a SDP (3) with linear kernels K m and K v for both mean and variance functions and (c) SDP2, a SDP (3) with a linear K m and a (degree-3) polynomial kernel K v . The coverage is compared on the same test dataset of size N = 800. Here &#120574; = 0.1. See Figure <ref type="figure">1a</ref> for details and Table <ref type="table">1</ref> for coverage statistics.</p><p>The second example is a non-linear, heteroscedastic error model: mean m(x) and variance v(x) functions lying in a reproducing kernel Hilbert space (RKHS) with a radial basis function (rbf) kernel. Here n = 60 training samples and N = 800 test samples are generated. Three methods being compared are: (a) SLR, (b) SDP1, rbf kernel for K m and linear kernel for K v and (c) SDP2, rbf kernels for both K m and K v , summarized in Figure <ref type="figure">1b</ref> and Table <ref type="table">1</ref>. Here &#120574; = 1.</p><p>These two numerical examples are minimal yet informative. In Figure <ref type="figure">1a</ref>, SLR misspends a wide prediction bandwidth on data where the conditional variances are small yet fails to capture the large conditional variance cases, resulting in the overall coverage of 86% and a median bandwidth of 8.21. SDP1&#8725;SDP2 re-distributes the bandwidth budget leveraging the heteroscedastic nature and achieves an improved coverage 91%&#8725;94%, with a smaller median bandwidth of 7.47&#8725;7.30. Such an effect is even more pronounced in Figure <ref type="figure">1b</ref>. Observe first that in SDP2, the prediction band constructed by (3) almost perfectly contours the heteroscedastic variances, thus achieving a &gt;99% prediction coverage with a merely 3.35 median bandwidth, in contrast to SLR with a 96% coverage and a 4.80 bandwidth. Second, a better conditional variance estimate also improves performance in learning the conditional mean, as seen in the differences between Blue lines and Red lines. The errors are also numerically summarized in the column 'MSE' of Table <ref type="table">1</ref>. Leveraging the heteroscedasticity in data, our prediction band distributes the bandwidth in a data-adaptive way, thus improving the overall coverage.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.3">Sum-of-squares, interpolation and connections to literature</head><p>The SDPs proposed in (1) and ( <ref type="formula">3</ref>) are inspired by recent advancements in optimization and learning theory. We will elaborate on the connections to related works and explain the innovations in our approach. We start with some basic observations about the SDPs. First, when &#120572; is not an optimization variable, (3) recovers (1). Second, the constraints set of ( <ref type="formula">3</ref>) is always non-empty since</p><p>Sum-of-squares and phase retrieval As shown in Proposition 3, the infinite-dimensional SDP with a nuclear norm minimization is equivalent to (3), min</p><p>Here &#57908; m , &#57908; v denote two RKHSs where the conditional mean and variance functions reside. &#120601; x i &#8712; &#57908; is the feature map w.r.t. the Hilbert space &#57908; and &#10216;&#8901;, &#8901;&#10217; &#57908; is the Hilbert space inner product. We call it the infinite-dimensional SDP since the optimization variables (&#120573;, A) are (function, operator) rather than finite-dimensional <ref type="bibr">(vector, matrix)</ref>. A few remarks are in place. First, if the kernel K m is universal, &#10216;&#120601; m</p><p>x , &#120573;&#10217; &#57908; m is dense in L 2 and hence can universally approximate all conditional mean function m(x). Second, as for the conditional variance which has positivity constraints over a continuum x &#8712; &#57924; with 0 &#8804; v(x) = (ym(x)) 2 , we relax the positivity constraints using a sum-of-squares form</p><p>It turns out that when K v is universal, the above sum-of-squares function can approximate all smooth, positive functions <ref type="bibr">(Bagnell &amp; Farahmand, 2015;</ref><ref type="bibr">Fefferman &amp; Phong, 1978;</ref><ref type="bibr">Marteau-Ferey et al., 2020)</ref>, thus explaining the name 'universal' in the title. Remark that sum-of-squares optimization <ref type="bibr">(Lasserre, 2001)</ref> for nonparametric estimation has recently been considered; see <ref type="bibr">(Bagnell &amp; Farahmand, 2015;</ref><ref type="bibr">Curmei &amp; Hall, 2020;</ref><ref type="bibr">Marteau-Ferey et al., 2020)</ref>. The further relaxation changing from equality in (4) to inequality will be discussed in the next paragraph. Last, the minimum nuclear norm objective translates to a particular form of "minimum bandwidth" in the prediction band as</p><p>In language, for all prediction bands that shelter the data, (3) aims to find the one with minimum bandwidth.</p><p>The curious reader may wonder where the nuclear norm ||A|| &#8902; arises from. The first reason is conceptual: the nuclear norm is a relaxation for rank, and the procedure is to minimize the number of factors (rank) that explain the variance. The second reason is a connection to phase retrieval: specify K m (x, x &#8242; ) &#8801; 0 and K v (x, x &#8242; ) = &#10216;x, x &#8242; &#10217; (the linear kernel with &#120601; v x = x), and force the inequality constraints to be equal, our SDP in (3) is equivalent to phase retrievel min</p><p>Conceptually, the minimum nuclear norm procedure estimates the smallest number of factors that could generate the variance.</p><p>Min-norm variance interpolation with confidence Now we discuss the tuning parameter &#120574; &#8712; [0, &#8734;] and reveal the connection to the recent min-norm interpolation literature <ref type="bibr">(Bartlett et al., 2020</ref><ref type="bibr">(Bartlett et al., , 2021;;</ref><ref type="bibr">Ghorbani et al., 2020;</ref><ref type="bibr">Liang &amp; Rakhlin, 2020;</ref><ref type="bibr">Liang &amp; Recht, 2021;</ref><ref type="bibr">Montanari et al., 2020)</ref>. In the limit of &#120574; &#8594; 0, (3) reduces to the familiar min-norm interpolation with kernel K m (whenever it has full rank, since optimal B = 0)</p><p>In the limit of &#120574; &#8594; &#8734;, (3) reduces to (since optimal &#120572; = 0)</p><p>Now it is clear what the role of the tuning parameter &#120574; is: it trades off the conditional mean m(x) and variance v(x) to explain the variability in y's witnessed on the data. A small &#120574; aims to use a complex mean m(x) and a parsimonious variance v(x) to explain the overall variability, and vice versa.</p><p>From the above discussion, it is also clear that the SDP (3) can be viewed as a min-norm variance interpolation with confidence. Instead of having the typical equality constraints in interpolation &#10216;</p><p>which violates the disciplined convex programming ruleset (due to the quadratic form on the RHS), we further relax to inequality constraints to incorporate additional 'confidence' (and to make the problem convex at the same time)</p><p>As we shall see, the notion of confidence in this variance interpolation is closely related to the notion of margin in classification <ref type="bibr">(Bartlett et al., 1998;</ref><ref type="bibr">Liang &amp; Sur, 2020)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Support vector regression</head><p>We illustrate that minor modifications to our SDP formulation lead to other problems, including support vector regression and kernel ridge regression.</p><p>Specify the variance kernel as the trivial one K v (x, x &#8242; ) = 1(x = x &#8242; ), then the decision variable B only matters in its diagonal component, and our SDP (3) reduces to the kernel ridge regression min</p><p>Moreover, a slight modification of ( <ref type="formula">3</ref>) is to use the absolute deviation rather than the squared deviation in the constraints, namely</p><p>In this case support vector regression is exactly our procedure with the specification</p><p>In summary, our SDP generalize beyond support vector machines, with the new non-trivial variance component for rigorous uncertainty quantification for heteroscedastic data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.4">Literature review</head><p>There are increasingly many approaches proposed to address the uncertainty quantification dilemma in machine learning due to its significance and centrality. However, very few methods are theoretically grounded and universally applicable to the best of our knowledge. Many approaches are merely heuristics or data visualization tools. This section divides related theoretical studies in the literature into two categories and discusses how our method significantly differs from them and could potentially lead to a stronger theory.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Conformal prediction</head><p>Based on the exchangeability of data and a user-specified nonconformity measure, <ref type="bibr">Vovk et al. (2005)</ref>; <ref type="bibr">Shafer and Vovk (2008)</ref> pioneered the field of conformal prediction, which uses past data to determine precise levels of confidence in new predictions. To some extent, the elegant theory of conformal prediction, motivated by online learning and sequential prediction, resolved the uncertainty quantification dilemma. The conformal prediction algorithm (see, for instance Shafer and Vovk, 2008, section 4.3) usually requires to enumerate over all the possibilities of z = (x, y) &#8712; &#57924; &#215; &#57925;, and for each possibility, calculate n nonconformity measures via the leave-one-out method. Therefore, the total budget is n &#215; |&#57925;| &#215; |&#57924;|, which can be expensive for continuous y and multi-dimensional x. Much of the above computation can be saved if additional information about the metric structure in x &#8712; &#57924; can be leveraged. In contrast, our SDP approach constructs the prediction band over all the x's at once, leverages the metric structure in &#57924;, and suffers at most a computational budget of n 2 . An additional key feature in our approach is in the coverage theory established in Theorem 1: the prediction band has coverage probability &gt;95% on a new data point (x, y), for 99.9999% dataset {(x i , y i )} n i=1 of size n drawn from the same distribution. Such a distinction on 'confidence' versus 'probability' is discussed extensively in section 2.2 of <ref type="bibr">Shafer and Vovk (2008)</ref>.</p><p>There has been a vast line of recent work on extending the conformal prediction idea further to address the bottlenecks above in the regression setting. The body of work proliferates, and we certainly cannot do justice here. <ref type="bibr">Lei et al. (2018)</ref> alleviates the computational burden of the conformal prediction by introducing the sample-splitting technique. Remarkably, theory on the bandwidth is also studied in <ref type="bibr">Lei et al. (2018)</ref>, thus providing an angle to probe the statistical efficiency. <ref type="bibr">Romano et al. (2019)</ref> studies the problem that existing conformal methods can form nearly constant or weakly varying bandwidth and provide conservative results. <ref type="bibr">Romano et al. (2019)</ref> proposes conformalized quantile regression to address this issue. One shared feature of our SDP approach and the method in <ref type="bibr">Romano et al. (2019)</ref> is that the prediction band is fully adaptive to heteroscedasticity. Finally, we would like to emphasize that conformal prediction constructs prediction bands in a numerical, black-box fashion without a structural understanding of the variance function. In contrast, our SDP approach provides a transparent and efficient way of learning the variance function, a complementary contribution to the conformal literature.</p><p>Residual subsampling and quantile regression An alternative approach for uncertainty quantification that leverages the metric structure in x &#8712; &#57924; is to resample the residuals locally. Typically, this is done by first fitting a predictive model m 0 (x), and defining a local neighbourhood around a new data x, then subsampling the residuals for uncertainty quantification via (conditional) quantiles. The validity of the above approach crucially depends on how many 'similar residuals' to pool information from. However, the curse of dimensionality comes in since data points are far from each other in high dimensions, posing challenges in pooling the residuals. One can also use either the obtained residuals or the original responses y to fit a conditional quantile regression model <ref type="bibr">(Belloni &amp; Chernozhukov, 2011;</ref><ref type="bibr">Belloni et al., 2019;</ref><ref type="bibr">Koenker &amp; Bassett Jr, 1978;</ref><ref type="bibr">Koenker &amp; Hallock, 2001)</ref>, &#958;&#120591; (&#8901;) &#8758;= arg min &#120585;</p><p>where &#120591; &#8712; (0, 1) is a quantile parameter, &#120588; &#120591; (&#8901;) &#8758; R &#8594; R + is the tilted absolute value function, and &#958;&#120591; (&#8901;) &#8758; &#57924; &#8594; R is the estimated conditional quantile function. However, it is not guaranteed that over all x &#8712; &#57924;, the estimated conditional quantile function satisfies &#958;&#120591; 1 (x) &lt; &#958;&#120591; 2 (x) for two quantiles &#120591; 1 &lt; &#120591; 2 . In other words, it is entirely possible that for several x's, the conditional prediction intervals are empty <ref type="bibr">(Chernozhukov et al., 2010)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">THEORY FOR UNCERTAINTY QUANTIFICATION</head><p>In this section, we develop a theory for the coverage property of the prediction band constructed above, under the mild assumption that the data are i.i.d. drawn with (x, y) &#8764; &#57916;. To highlight the main arguments in a simple form, let us consider the setting m 0 (x) &#8801; 0. Otherwise, the same proof follows by replacing y with ym 0 (x). Define the corresponding prediction band, with a confidence parameter &#120575; &#8712; (0, 1]</p><p>] .</p><p>(5)</p><p>We need the following assumptions before stating the theorem, where (x, y) &#8764; &#57916; and C &gt; 0 denotes a universal constant.</p><p>[S1] (Kernel and RKHS) The continuous symmetric kernel K is positive definite and satisfies sup x&#8712;&#57924; K(x, x) &#8804; C. In addition, eigenvalues of the associated integral operator &#57920; &#8758; &#57908; &#8594; &#57908; satisfy &#120582; j (&#57920; ) &#8804; Cj -&#120591; , j &#8712; N for some constant &#120591; &gt; 1.</p><p>[S2] (Non-trivial uncertainty) There exist constants &#120578; &#8712; (0,1), &#120585; &gt; 0 such that P[y 2 &gt; &#120585; &#8901; K(x, x) | x = x] &gt; &#120578; holds for all x &#8712; &#57924;.</p><p>[S3] (Non-wild uncertainty) There exists a constant &#120596; &gt; 0 such that P[y 2 &gt; t &#8901; K(x, x)] &lt; exp(-Ct &#120596; ) for all t &#8805; 1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Discussion of Assumptions</head><p>All the above assumptions are mild. The eigenvalue decay in [S1]  is almost identical to Tr(&#57920; ) &lt; &#8734; (bounded trace integral operator).</p><p>[S2] is also minimal, since it is only not true when there is no variability in y | x = x. <ref type="bibr">[S3]</ref> is the most stringent one, which requires the variability of y to exhibit a certain tail-decay. For small &#120596; &#8712; (0, 1), [S3] can be much milder than exponential tail-decay. Bounded or Gaussian y | x = x satisfies [S3] with arbitrarily large &#120596; or &#120596; = 2 respectively. With some extra work, [S3] can be relaxed to the case of a sufficiently rapid polynomial tail-decay. [S2] can be relaxed to restricting only to x with</p><p>Theorem 1. Define the objective value of the SDP in (1)</p><p>hold. For any &#120575; &#8712; (0, 1], the following non-asymptotic, data-dependent prediction band coverage guarantee holds,</p><p>and</p><p>with probability at least 1n -10 on {(x i , y i )} n i=1 . Here the constants C &#120591;,&#120585;,&#120578;,&#120596; , c &#120596; only depend on parameters in [S1]-[S3].</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">What does the theorem entail</head><p>A few remarks are in order before we sketch the proof of Theorem 1.</p><p>Coverage First, the above theorem says that the prediction band constructed using the SDP based on a dataset of size n, will correctly cover a fresh data point (x, y) &#8764; &#57916; drawn from the same distribution, with a non-asymptotic coverage probability (on the new data x, y)</p><p>With &#120575; = 0.5, the bandwidth Length[ PI(x)] = 2.45</p><p>is at a heteroscedastic level adaptive to x with corresponding coverage probability at least 1</p><p>Here O &#8902; hides polylog factors.</p><p>The coverage can be arbitrary close to 1 with large n without the need of increasing &#120575;, which is in clear distinction to the conventional wisdom that coverage 1 can only be possible with an increasing &#120575; regardless of n. Again, we emphasize that the above coverage guarantee holds essentially on 99.9999% &#8810; 1n -10 of the datasets {x i , y i } n i=1 . In Section 2.2, we propose a rigorous calibration algorithm to choose &#120575; &#8902; (&#120572;) to achieve a constant coverage level 1-&#120572; &#8712; (0, 1).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Optimality If one wishes to obtain the classic 95% coverage probability, then choosing &#120575;</head><p>Recall that in classic simple linear regression, the prediction interval is of length</p><p>i n-2 being the estimated residual standard error. The fact that ( <ref type="formula">6</ref>) and ( <ref type="formula">7</ref>) share the Data adaptivity Curiously, the objective value of the convex optimization program quantifies the uncertainty of the prediction band: a smaller &#212;pt n implies (a) a better confidence&#8725;coverage guarantee and (b) a narrower prediction band overall. More importantly, the &#212;pt n can be calculated directly from data! We find such an optimization&#8725;inference interface exciting: the data-adaptive bound lets us know the coverage guarantee specific to the current dataset. Put differently, the convex program constructs the prediction band via its solution and at the same time, reveals the confidence via its objective value. Since &#212;pt n is a function of the dataset, our Theorem reveals which dataset allows for a better prediction band. Remark that &#212;pt n = ||v(&#8901;)|| 2 &#8902; is also a particular norm of the heteroscedastic variance function, quantified by the nuclear norm of the associated PSD operator &#194; &#10928; 0 with v(x) = &#10216;&#120601; x , A&#120601; x &#10217; &#57908; . Curiously, a simpler variance function v(x) (with a small norm) will simultaneously result in a narrower band and better coverage. We emphasize that the above discussion is in sharp contrast to the conventional wisdom that a narrow band usually leads to poor coverage guarantees.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Calibration and coverage control</head><p>One nice feature about conformal prediction is that it directly operates on a user-specified coverage level (e.g. 95%), albeit the resulting procedure only achieves some form of coverage guarantee in the marginal sense. In contrast, the coverage level guarantee of the current SDP approach in Theorem 1 is in an inequality form with a mild dependence on the non-explicit universal constant C &#120574;,&#120585;,&#120578;,&#120596; ; however, the coverage is in a stronger conditional sense conditioned on {(x i , y i )} n i=1 . The constant will not significantly affect the coverage guarantee in the large n setting; nevertheless, curious readers may wonder if more transparent control could be achieved by tuning &#120575;. This section provides a theoretically justified calibration procedure in choosing &#120575; (in the SDP band) to control coverage at a user-specified level 1-&#120572; &#8712; (0,1), as in conformal prediction. Such fine calibration on &#120575; can be helpful numerically in the moderate n and constant &#120572; setting (e.g. 5%).</p><p>The calibration idea is based on sample-splitting. Split the samples into two parts, the training set {(x i , y i )} n i=1 and the calibration set {x &#8242; j , y &#8242; j } m j=1 , with in total n + m data points drawn i.i.d. from &#57916;. The training set will be used to construct prediction band PI(&#8901;, &#120575;). The calibration dataset will be used to choose &#120575; to calibrate coverage.</p><p>Calibration procedure Suppose that there exists large enough constants &#916;, L &gt; 0 such that</p><p>The calibration uses a dyadic search to select &#120575; &#8902; (&#120572;) &#8712; [-1, &#916;] with the set {x &#8242; j , y &#8242; j } m j=1 . The goal of the calibration is to ensure P (x,y)&#8764;&#57916; </p><p>then the calibrated &#120575; &#8902; (&#120572;) satisfies the coverage control</p><p>with probability at least 1 -2m -10 on the calibration set {x &#8242; j , y &#8242; j } m j=1 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Intuition and proof sketch</head><p>We first explain the key intuition before presenting the details of the proof sketch. The proof first leverages a representation theorem that relates the finite-dimensional (kernelized) SDP to an infinite-dimensional SDP to decouple the dependencies among x i 's. Next, we propose to use empirical process theory to analyse the prediction coverage, inspired by the margin-based analysis originally done in analysing classification. Finally, in controlling the uniform deviations between empirical and population coverage, we use properties of the PSD operators and conditional quantile functions. The additional calibration procedure in fine-tuning the confidence parameter &#120575; &#8902; (&#120572;) for a fixed coverage level 1 -&#120572; &#8712; (0, 1) also hinges on uniform deviation arguments. Our analysis fundamentally relies on empirical process theory and is crucially different from conformal prediction analysis (based on exchangeability). Since the SDP provides a rigorous coverage guarantee as conformal prediction, we hope the new proof idea opens new doors to study uncertainty quantification. Now we sketch the proof of Theorem 1. Observe that by definition</p><p>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Define a hinge function h</head><p>and thus Here &#120601; x y &#8712; &#57908; lies in the RKHS, and A &#8758; &#57908; &#8594; &#57908; is a PSD operator. Define a sequence of function spaces according to its nuclear norm radius</p><p>With the Proposition 3 establishing the equivalence between the kernelized SDP and the infinite-dimensional SDP, &#194; = &#8721; i,j Bij &#120601; x i &#8855; &#120601; x j , we know that y -2 v(x) = f &#194;(z). There exists a k &#8712; N such that f &#194; &#8712; &#57906; k with 2 k-1 &#8804; &#212;pt n &lt; 2 k , and thus we continue to bound</p><p>.</p><p>For term (i), recall the optimality condition of (1),</p><p>For term (ii), we will use the high probability symmetrization in Proposition 4. Introduce i.i.d. Rademacher variables {&#120598; i } n 1 independent of the data. Note that we only need to consider k &#8804; k 0 such that 2 k 0 = [log(n)] c &#120596; , where we use the upper estimate on &#212;pt n obtained in Proposition 5, which is implied by Assumption <ref type="bibr">[S3]</ref>. With probability at least 1-2 exp (-t) on the data</p><p>where the last step follows from the duality between the nuclear norm and operator norm. Before getting into the deviation term (iii) (originated by Proposition 4, formally upper bounded in ( <ref type="formula">15</ref>)), first recall 2 k &#8804; 2( &#212;pt n &#8744; 1), we know</p><p>Similarly by Proposition 4, the deviation term (iii) can be bounded by 6(</p><p>To bound the expected operator norm for the above random matrix, namely term (iv), we rely on matrix Bernstein's inequality plus a truncation technique. Observe that</p><p>and that</p><p>Naively applying the matrix Bernstein inequality, one would expect the term (iv) to behave like sup</p><p>x,y</p><p>This is educative yet wrong, since dim(&#120601;) is infinity. To make things rigorous, we rely on a truncation technique to look at a finite-dimensional version &#120601; &#8804;m x truncated at a level m = poly(n) to apply matrix Bernstein, and then estimate the remaining contribution from &#120601; &gt;m</p><p>x by the eigenvalue decay in Assumption [S1]. With details given in Proposition 6, we derive that</p><p>The final piece of the puzzle lies in the term sup (x,y)&#8712;dom(&#57916;) || &#120601; x y || 2 &#57908; , which appears in both the main term (iv) and deviation term (iii). It is not true that a.s. for all x, y, the above term is bounded. To resolve this issue, we rely on a conditional quantile technique. Introduce the conditional quantile function Q y 2 |x=x (&#8901;) &#8758; [0, 1] &#8594; R + for the conditional random variable y 2 | x = x. Let's only look at data (x i , y i )'s lying in the region</p><p>and denote &#57916;| &#937; as the conditional distribution of data (x, y) conditioning on the region &#937;. Claim that for any PI(x, &#120575;)</p><p>This is based on two facts. First,</p><p>regardless of the ordering of Q y 2 |x=x (1 -&#120578;) and (1 + &#120575;)v(x). Second, conditioning on &#937; does not change the marginal distribution of x due to the quantile construction, namely</p><p>Marginalizing (12) over x proves the above claim. The inequality (11) makes the analyses upper bounding (LHS) from ( <ref type="formula">8</ref>) and ( <ref type="formula">9</ref>) applicable, with the changes: (a) &#57916;| &#937; replacing &#57916;, and (b) &#202; denoting average over data points inside &#937; rather than the whole dataset. With the conditioning on &#937;,</p><p>Now, we only need to estimate the effective sample size inside &#937; to complete the analyses. By the quantile construction, P (x,y)&#8764;&#57916; <ref type="bibr">[(x, y)</ref> &#8712; &#937;] = &#120578;, a simple Bernstein's inequality asserts that <ref type="bibr">Finally,</ref><ref type="bibr">plug (13)</ref> into upper bounds on terms (iii) and (iv), with &#120578; 2 &#8901; n replacing n in (10) and (9), we have proved that</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">NUMERICAL STUDIES</head><p>We now study the numerical performance of our procedure.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Empirical example: Comparison to conformal prediction</head><p>This section compares our SDP methods to the conformal prediction methods, measuring the coverage and statistical efficiency of the prediction bands. We compare five methods on two simulated datasets, including (a) standard prediction band using simple linear regression (SLR), without accounting for heteroscedasticity, as a baseline; (b) SDP prediction bands proposed in this paper, with two specifications of the kernels, denoted as SDP1 and SDP2; (c) conformal prediction bands, including full conformal prediction (CF) and split conformal prediction (SplitCF), see <ref type="bibr">(Lei et al., 2018</ref>, Algorithms 1 and 2 respectively). For each method, we report the coverage probability, efficiency statistics (including median length and average length) and finally, the mean squared error (MSE) of the estimated conditional mean function.</p><p>We first explain the two simulated datasets. Here the x &#8764; Unif([-</p><p>]), and the con-</p><p>where the independent error &#120598; is either drawn from a standard normal N(0, 1) (Figure <ref type="figure">2b</ref>) or a uniform distribution Unif([- <ref type="figure">2b</ref>). The conditional mean function m(x) = 0. The heteroscedastic variance function scales as v(x) = 1 + x + 4x 2 , depending on x. For each simulated dataset, we generate {(x i , y i )} n i=1 i.i.d. from the above data generating process (DGP), with n = 50 as the training data, marked by Blue dots. The test dataset are drawn from the same DGP, with N = 500 marked by Red dots. For the SDP1&#8725;SDP2, and SplitCF, an independent calibration dataset with n = 50 is used. The calibration set is used to choose &#120575; in SDPs as in Algorithm 1, and the homoscedastic conformal bandwidth as in SplitCF. We compare five methods that construct the prediction bands, illustrated by the Blue band, on the Gaussian error dataset in Figure <ref type="figure">2a</ref>, and Uniform error dataset in Figure <ref type="figure">2b</ref>. For all methods, the desired coverage is set at 1 -&#120572; = 95%. For the SDPs in (3) &#120574; = 10. Table <ref type="table">2</ref> summarizes the coverage, efficiency and estimation error.  Nearly all methods achieve 95% desired coverage, with the only exception of SLR. The focus will be on comparing efficiencies, namely, which method estimates a smaller, truly heteroscedastic band in achieving the desired coverage. As seen visually in Figure <ref type="figure">2a</ref> and b and numerically in Table <ref type="table">2</ref>, the two conformal methods, SplitCF and CF, estimates a conservative, wide prediction band that is almost homoscedastic. In contrast, both SDP approaches estimate desirable heteroscedastic bands that are on average much shorter, with the closest (94.20% and 95.40%) to the desired 95% coverage. Finally, we would like to remark that all four methods SLR, SDP1, SDP2 and SplitCF are efficient to compute. Yet, the full conformal method CF involves discretizing input space, which is computationally intensive. Our empirical results show that the two conformal methods can be unnecessarily conservative and form bands of nearly constant width across x <ref type="bibr">(Romano et al., 2019)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Real data example: Fama-French factors</head><p>In this section, we apply our method of constructing the prediction band to the celebrated three-factor dataset created by <ref type="bibr">Fama and French (1993)</ref>. We choose this dataset for three reasons: (a) financial data are known to suffer severe heteroscedasticity, (b) the factors are believed to be different sources explaining returns of diversified portfolios, thus when conditioned on one factor, the other factors should have large, heteroscedastic conditional variability and (c) the factors-Market, Size and Value-correspond nicely to our common sense about the financial market for exploratory data analysis.</p><p>Let us first explain the data in plain language. The dataset consists of yearly and monthly observations of four variables from July 1926 to December 2020. The four variables are (a) Risk-free return rate (RF), the 1-month Treasury bill rate (i.e. interest rate), (b) Market factor (MKT), the excess return on the market (i.e. market return minus interest rate), (c) Size factor (SMB, Small Minus Big), the average difference in returns between small and big portfolios according to the market capitalization and (d) Value factor (HML, High Minus Low), the difference  in returns between value and growth portfolios. We design two experiments, one focusing on the prediction coverage and bandwidth, and the other on exploring the role of the tuning parameter &#120574; in trading off mean and variance. The first experiment aims to access the prediction coverage in the SDP (3), using MKT (as x) to predict other variables (as y): RF and two other factors SMB and HML. Here we use yearly data (n = 94 from 1927 to 2020, shown as Blue dots) to construct the prediction bands, each illustrated in Figure <ref type="figure">3a-c</ref>. As for the test data, we use the standardized monthly data (N = 1134, normalized to zero mean and unit standard deviation, shown as Red dots) as a surrogate for test (x,y) pairs. Namely, we match 12 test data to each training data. We verified that after standardization, the histograms of yearly and monthly data match nicely for all four variables. For each type of response variable, we run two SDPs with different kernels. The summary statistics about the coverage probability, median and mean bandwidth are given in Table <ref type="table">3</ref>.</p><p>We note a few observations regarding the empirical results. First, all models achieve desirable coverage (all &gt;95%). Second, controlling for MKT, all other factors have significant heteroscedastic error left unexplained. For the RF, a high MKT return implies a low expected RF interest, and more importantly, a small variability, compared to the low MKT return case. For the size factor SMB, the conditional variability is much larger when the MKT is high versus low, so does the conditional expectation. The conditional variability in SMB is roughly minimized when the market is significantly below average. While for the value factor HML, conditional variability is minimized when the market is slightly below its average.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F I G U R E 4</head><p>Cross-validate &#120574; experiment. On the left is SMB as the response and on the right is HML. For each response variable, we run two sub-experiments: the top row corresponds to a linear m(x) and a quadratic v(x), and the bottom row corresponds to a degree-3 polynomial m(x) and a quadratic v(x). Each sub-figure corresponds to a specific &#120574;, noted in its title. The cv &#120574; denotes the cross-validated optimal &#120574; using the validation dataset. Here the (train, valid, test) dataset has size proportional to 1:3:9, denoted by Blue dots, Red pluses, and Red dots respectively [Colour figure can be viewed at wileyonlinelibrary.com]</p><p>The second experiment aims to verify the mean and variance trade-offs by tuning the parameter &#120574;, discussed in Section 1.3. Here we use the monthly return data, and for each sub-experiment, we split the data into (train, valid, test) parts. We train models with different &#120574; = 0.1, 1, 10 on the training data, then valid their performances on the validation data. We finally evaluate the performance using the test data with the cross-validated optimal &#120574; (based on the validation data). A nice feature about this experiment is that, one can visualize how the SDPs trade a complex&#8725;large conditional variance v(x) for a simple&#8725;small conditional mean m(x) in explaining y|x = x as &#120574; increases, illustrated by Figure <ref type="figure">4</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">SUMMARY</head><p>The current paper progresses to resolve the uncertainty quantification dilemma faced by modern machine learning models. There are two innovative viewpoints we are taking. First, rather than relying on idealized parametric distributional assumptions on error ym(x), we make minimal assumptions. Both the conditional mean and variance functions are modelled nonparametrically and can universally approximate all functions. It is worth noting that such flexibility does not hinder computational feasibility due to the sum-of-squares and convex relaxations. The computational complexity and statistical guarantee scale favourably with high-dimensional covariates x. Second, rather than modelling the conditional mean only and giving up the variance (Frequentist justification, the conditional mean is assumed inside an RKHS, see <ref type="bibr">Caponnetto and De Vito (2007)</ref>, <ref type="bibr">Liang and Rakhlin (2020)</ref>, <ref type="bibr">Liang et al. (2020)</ref>), or modelling the conditional variance function only (Bayesian justification of kriging&#8725;Gaussian processes regression, the covariance function is specified by a kernel, see <ref type="bibr">Handcock and Stein (1993)</ref>, <ref type="bibr">Stein (2005</ref><ref type="bibr">Stein ( , 2012))</ref>) for the variability in data, we model both the mean and the variance and prove strong, non-asymptotic Frequentist coverage guarantees. Such a modelling advantage enables the uncertainty quantification with or without any black-box predictive model, whether accurate or not.</p><p>To conclude, our Theorem 1 established a strong, non-asymptotic coverage guarantee in the language of Neyman, yet with two distinct new features. First, the coverage probability can go to 1 with a fixed confidence parameter &#120575; as long as the sample size n is large enough. Second, the data-adaptive quantity &#212;pt n controls both the average bandwidth and the coverage guarantee of the prediction band PI(x). A small objective value of the SDP makes the prediction band accurate and narrow simultaneously. Finally, our procedure for constructing prediction bands can be viewed as a novel variance interpolation with confidence and further leverages techniques from semi-definite programming and sum-of-squares optimization. We conducted simulated and real data experiments to validate the prediction interval's numerical performance for uncertainty quantification. A minimal 10-line Python implementation is provided in Listing 1 for interested readers. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>How</head><p>Proof. Noticing that the solution to the infinite-dimensional problem must lie in the span of data, namely A = &#8721; i,j B ij &#120601; v x i &#8855; &#120601; v x j with some PSD B &#8712; S n&#215;n , and &#120573; = &#8721; i &#120572; i &#120601; m x i with some &#120572; &#8712; R n . With the above representation, plug in the infinite-dimensional SDP and recall Tr(A) = ||A|| &#8902; , we can derive (3). When &#120573; is not a decision variable, this representation theorem applies to (1). &#9632; Proposition 4 (Symmetrization). Let &#57906; be a class of functions f &#8758; &#57926; &#8594; R, with sup x&#8712;&#57926; |f (z)| &#8804; M.</p><p>Then with probability at least 1-2 exp (-t) on {z i } n i=1 i.i.d. drawn from a distribution, we have</p><p>Proof. First, with McDiarmid's inequality, we know w.h.p.</p><p>Apply Gin&#233;-Zinn symmetrization to the first term on the RHS, then apply McDiarmid's inequality again, we can establish the claim. See <ref type="bibr">Liang and Rakhlin (2020)</ref> for details. &#9632; Proposition 5 (Objective value estimate). Under [S3], the following holds with probability at least 1n -10 , &#212;pt n &#8804; [log(n)] c &#120596; .</p><p>Proof. Apply union bound on the tails given by [S3], with the choice t 0 = [log(n)] c &#120596; we know</p><p>In view of Proposition 3, the above certifies that A &#8758;= t 0 &#8901; I lies in the feasibility set &#10216;&#120601; x i , A&#120601; x i &#10217; &#57908; = t 0 &#8901; K(x i , x i ) &#8805; y 2 i , which implies t 0 being an upper bound on &#212;pt n . &#9632; Proposition 6 (Operator-norm estimate). Under [S1], for any {x i } n i=1 , the following holds</p><p>Proof. Recall [S1], due to the Mercer's theorem, one can represent &#120601; x as an infinite-dimensional vector, with each coordinate of &#120601; j x corresponding to the eigenfunction of the integral operator, with j = 1, &#8230; , &#8734; and &#120582; j &#8804; Cj -&#120591; . To bound the operator norm, recall the Rayleigh quotient form, for any h &#8712; &#57908; with ||h|| 2 &#57908; = 1 &#10216; h,</p><p>Note &#10216;&#120601; x , h&#10217; &#57908; = &#10216;&#120601; &#8804;m x , h &#8804;m &#10217; &#57908; + &#10216;&#120601; &gt;m x , h &gt;m &#10217; &#57908; where the superscript indicates a truncation on the coordinates of &#120601; x . By Cauchy-Schwarz</p><p>Therefore LHS in (A1) can be upper bounded by 2</p></div></body>
		</text>
</TEI>
