Manuscript Offprint
arXiv:2610.31336Metric Conformal Prediction via the Conditional Expected Local Radius
Abstract
We introduce the conditional expected local radius (CELR) and develop a new conformal prediction method for non-Euclidean responses in general metric spaces. CELR measures local conditional probability concentration, allowing prediction sets to accommodate heterogeneity and multimodality without requiring densities or a vector space structure. Its conditional distribution yields a nonconformity score that is comparable across covariate values and avoids costly transport comparisons between distance profiles. We further adapt a metric distributional random forest that handles multivariate covariates and nonlinear interactions, while a single forest fit supplies all score components, reducing computation by eliminating repeated local fitting. We establish uniform consistency of the estimators and asymptotic conditional validity under suitable regularity conditions, together with finite-sample marginal coverage under exchangeability. Numerical studies demonstrate effective uncertainty quantification across different metric spaces and substantial computational savings over the conditional profile score method.
Keywords: Conditional validity, Conformal prediction, Metric space, Random forest, Random object
1 Introduction
Conformal prediction (CP) quantifies predictive uncertainty through prediction sets with finite-sample and distribution-free coverage guarantees (Vovk et al., 2005). In regression, the aim is to construct a set for a future observation satisfying the marginal coverage requirement
Under exchangeability, this guarantee holds without specifying a parametric model for the joint distribution of (Shafer and Vovk, 2008). For scalar responses, CP yields prediction intervals and bands (Lei and Wasserman, 2014; Lei et al., 2018; Chernozhukov et al., 2021; Sesia and Romano, 2021; Barber et al., 2023). The nonconformity score ranks candidate responses and determines the size and shape of the prediction set. Studentized residual scores (Lei et al., 2018) and scores based on conditional quantiles (Romano et al., 2019), for example, allow prediction intervals to adapt to heteroskedasticity. Other developments concern data reuse (Vovk, 2015; Barber et al., 2021), adaptation to changing distributions (Gibbs and Candes, 2021; Gibbs and Candès, 2024), and the selection and aggregation of prediction sets (Yang and Kuchibhotla, 2025; Xu et al., 2026).
Marginal coverage averages over the covariate distribution and need not provide adequate coverage at a particular covariate value. Exact conditional validity without restrictions on the joint distribution is generally unattainable (Vovk, 2012; Lei and Wasserman, 2014; Barber et al., 2021). A common alternative is asymptotic conditional validity:
To attain (2), Chernozhukov et al. (2021) used conditional distribution ranks in place of residual scores (Lei et al., 2018), obtaining prediction intervals. Conditional density ranks yield sets that converge to highest predictive density regions and adapt to skewness, heavy tails, and multimodality (Izbicki et al., 2022). Localized conformal methods pursue related coverage goals (Guan, 2023; Hore and Barber, 2025; Gibbs et al., 2025). For a general account of conformal prediction, see Angelopoulos et al. (2024).
These methods are designed primarily for Euclidean responses. Non-Euclidean responses, such as phylogenetic trees, covariance matrices, and networks, are naturally treated as random objects in metric spaces. Methods for such data include Fréchet regression, regression on manifolds (Lin et al., 2017; Petersen and Müller, 2019; Dubey and Müller, 2020; Lin and Müller, 2021; Bhattacharjee et al., 2025), and dimension reduction (Panaretos et al., 2014; Virta et al., 2022; Zhang et al., 2024). Constructing informative prediction sets requires additional information about the spread and shape of the conditional law. Vector operations and densities need not be available in these spaces, so conventional constructions based on residuals or densities are not directly applicable. The conditional law may also concentrate in several separated regions whose locations and relative masses vary with the predictors. A ball centered at a single regression estimate may therefore give a poor description of the likely responses.
Zhou and Müller (2025) addressed this problem by constructing conformal prediction sets from conditional distance profiles, using the average transport cost between profiles. Their method accommodates multimodality without requiring a density or a conventional distribution function for the response. A candidate’s distance profile can also be summarized by the radii needed to accumulate probability mass around it. These local radii underlie the distance-to-a-measure (DTM) family (Chazal et al., 2011, 2016), including the formulation studied by Brécheteau (2019), which primarily concern unconditional geometric or topological inference and comparisons between metric spaces equipped with probability measures.
In this work, our contributions are three-fold. First, we construct a conformal score from the conditional expected local radius (CELR) that is distinct from the conditional distance profiles. Its unconditional counterpart, the expected local radius (ELR), coincides with the formulation of DTM studied by Brécheteau (2019), up to the convention used at probability mass thresholds. Under the conditional law of , CELR averages the radii needed to accumulate probability mass around a candidate. This description of local concentration complements metric depths, ranks, and quantiles (Geenens et al., 2023; Dai et al., 2023; Liu et al., 2022; Dubey et al., 2024). We transform CELR by its conditional distribution before conformal calibration, making the score comparable across covariate values. The resulting prediction sets can accommodate heterogeneity and multimodality in the conditional law without requiring densities or a vector space structure. CELR also simplifies computation: it uses only the candidate's conditional distance profile and avoids the transport comparisons between profiles required by Zhou and Müller (2025).
Second, we estimate the conditional law with a metric distributional random forest (MDRF). Local linear smoothing often requires additional structure or dimension reduction as the number of covariates increases (Fan and Gijbels, 1996). Our construction uses maximum mean discrepancy to select splits and draws on generalized random forests (Athey et al., 2019; Wager and Athey, 2018) and distributional random forests (Cevid et al., 2022). It differs from the local linear approach of Zhou and Müller (2025) in three respects:
(1) Unified estimation. A single forest fit provides the weights for estimating conditional distance profiles, CELRs, and the conditional distributions of CELRs.
Reusing these weights reduces the computation needed at each stage. Zhou and Müller (2025) estimate distance profiles, average transport costs, and their conditional distributions through separate local linear fits.
(2) Adaptive weights. The forest uses response information to choose splits, so its weights can adapt to variation in the conditional law (Lin and Jeon, 2006; Qiu et al., 2024). The local linear weights in Zhou and Müller (2025) are instead based on Euclidean distances in covariate space.
(3) Multivariate covariates. The forest partitions the multivariate covariate space directly and can represent nonlinear interactions and local variation. The multivariate procedure of Zhou and Müller (2025) relies on a single index assumption, which can be restrictive when covariate effects cannot be captured by a single linear combination.
Third, we establish uniform consistency of the estimated conditional distance profiles, CELRs, and score ranks, and derive asymptotic conditional validity. Pointwise consistency does not suffice because the score construction evaluate fitted quantities at arguments that depend on the data. The proof treats the forest as a growing-order U-statistic whose order increases with sample size. We derive a maximal inequality for the associated U-process and combine it with leaf shrinkage and stability bounds to control the accumulated estimation error.
The paper is organized as follows. Section 2 defines ELR and studies its geometric properties. Section 3 presents the score construction, split conformal calibration, and forest estimator. Section 4 gives the uniform consistency and asymptotic conditional validity results. Sections 5 and 6 present simulations in several metric spaces and two data applications, respectively. Section 7 concludes. Proofs and additional implementation details are in the supplementary material.
The corresponding quantile function is
When finite, is the smallest radius of a ball centered at that contains probability mass of at least . For a locality level , define the expected local radius (ELR) at by
ELR measures concentration around by averaging distance quantiles over probability levels up to . Smaller values indicate greater concentration at this scale.
ELR belongs to the DTM family. Chazal et al. (2011) defined local mass radii using a strict mass inequality and combined them through an average. The version studied by Brécheteau (2019) agrees with ; the different conventions at mass thresholds do not affect the integral. We use the name expected local radius to emphasize its geometric interpretation. Both ELR and expected shortfall are averages of quantiles: ELR uses the lower tail of a distance distribution, and expected shortfall uses the upper tail of a loss distribution. Supplementary Section S.1 compares ELR with classical statistics based on quantiles.
Using ELR in a conformal score avoids the transport comparisons between conditional distance profiles required by the method of Zhou and Müller (2025). The following proposition gives three basic properties. Monotonicity and the quantile bounds follow from quantile averaging; Lipschitz continuity is a standard DTM property (Chazal et al., 2011; Brécheteau, 2019).
Proposition 1 (Basic properties of ELR). For , assume that for all . The ELR satisfies the following properties:
-
(Monotonicity). For every , the map is nondecreasing on .
-
(Quantile sandwich). For every and ,
- (Lipschitz continuity). For every and ,
Proposition 1 relates ELR to ordinary distance quantiles. Its Lipschitz bound shows that moving the candidate center changes ELR by at most the distance moved.
The role of can be seen from its limiting cases. When and the first distance moment is finite,
so ELR averages distances over the whole distribution. As , approaches the distance from to the support of Y. The next proposition gives the rate of decay on a Riemannian manifold when the density near is continuous and positive.
Proposition 2 (Metric concentration via density). Let be a -dimensional Riemannian manifold equipped with its geodesic distance. Fix an interior point and assume that admits a continuous and strictly positive density in a neighborhood of with respect to Riemannian volume. Then, as ,
where is the volume of the unit ball in .
Proposition 2 shows that the rescaled ELR is asymptotically proportional to . As , higher local density corresponds to smaller rescaled ELR values. This motivates using ELR to rank candidate responses by local concentration. In a general metric space, ELR is still defined by metric-ball probabilities, even when no natural density is available. The next proposition gives the corresponding expansion directly in terms of these probabilities.
Proposition 3 (Metric concentration via small-ball probability). Let be a general metric space. Assume that, at a point , the distribution of satisfies the local small-ball expansion
where is the local dimension exponent and is the local concentration coefficient. Then, as ,
Smaller values of emphasize probability mass near , while larger values include mass farther away. Very small values can give unstable estimates because only a few observations contribute to the empirical average. In the numerical studies, we consider candidate values of in [0.1, 0.25] to balance locality and robustness. Figure 1 illustrates the effect of for a Gaussian mixture with three components.

Figure 1: Empirical surfaces of the ELR functional for a three-component Gaussian mixture with , and 0.5. Smaller values of emphasize fine local concentration, whereas larger values shift the functional toward global dispersion. Colors represent ELR values, white curves show level sets, and black points denote observations.
3 ELR-based conformal prediction in metric spaces
ELR quantifies local concentration around any point in a metric space. We now use its conditional counterpart to construct prediction sets for random objects.
3.1 Split conformal prediction
Let take values in , where and is a Polish metric space equipped with its Borel -field. For and , the conditional distance profile (CDP) is
The corresponding quantile function is
For a locality level , define the conditional expected local radius (CELR) by
This is the ELR under the conditional law of Y given X = x.
Given an independent and identically distributed (i.i.d.) sample , , we seek a prediction set satisfying (2) for an additional i.i.d. observation . At the chosen locality level , smaller CELR values indicate greater concentration of conditional probability mass around a candidate response, while larger values indicate weaker concentration. This motivates using CELR as a nonconformity measure. Because its scale may vary with , we transform CELR by its conditional distribution function (Chernozhukov et al., 2021; Izbicki et al., 2022; Zhou and Müller, 2025):
We call the conditional radius score (CRS) and use it as the oracle nonconformity score. If the conditional distribution of given is continuous, the probability integral transform implies that is uniformly distributed on and independent of . The oracle prediction set
therefore satisfies .
In practice, the conditional law of is unknown. We use split conformal prediction (Lei et al., 2018), which separates model fitting from calibration. Randomly partition into a training set and a calibration set , where . Use only to construct the estimators , , and . For each , compute . Let be the empirical quantile of . The resulting prediction set at is
Conditional on the training sample and the data split, the calibration and test scores are exchangeable. This gives the marginal coverage guarantee (1).
Theorem 4 (Finite-sample marginal coverage). The split conformal set satisfies
For multivariate covariates, we estimate these conditional quantities with a metric distributional random forest, avoiding the repeated local fits and restrictive single index assumption in Zhou and Müller (2025).
3.2 Metric distributional random forests
We adapt the distributional random forest of Cevid et al. (2022) from Euclidean responses to responses in by choosing a kernel on this space.
3.2.1 Conditional mean embeddings for metric-space responses
Let be a bounded, continuous, characteristic kernel. Its reproducing kernel Hilbert space (RKHS) has feature map satisfying
. For , the conditional law has mean embedding (Muandet et al., 2017; Park and Muandet, 2020)
Because is characteristic, uniquely determines the conditional law. We estimate this embedding using the forest weights described below.
The choice of kernel depends on the response space. For a general metric , the Gaussian form need not be positive definite. This issue arises, for example, with the affine-invariant Riemannian distance between symmetric positive-definite matrices (Jayasumana et al., 2013). Appendix S.2 gives valid kernels for the response spaces considered in Sections 5 and 6.
3.2.2 Estimation via metric distributional random forests
Maximum mean discrepancy (MMD) compares distributions through the distance between their kernel mean embeddings (Gretton et al., 2006). Following Cevid et al. (2022), we use MMD to select tree splits. For a node , a covariate coordinate , and a threshold , let and denote the index sets of the two daughter nodes, with , , and . The empirical splitting criterion is
We choose the candidate split that maximizes this criterion and repeat the process until the prescribed minimum node size is reached. With a characteristic kernel, MMD responds to differences in the entire response distribution, including changes in spread or shape. CART splitting rules (Breiman, 2001; Qiu et al., 2024) reduce variance or Fréchet variance and primarily target conditional centers. Exact evaluation of the MMD criterion is computationally demanding because it involves pairwise kernel evaluations; the approximations in Appendix S.2 allow each coordinate to be scanned in linear time after sorting and feature construction.
For simplicity, take and . Fit a forest of trees to . Tree uses a subsample of size and randomization . Let , abbreviated as , denote the indexed collection of covariates of the observations used for averaging in the terminal leaf containing . Here denotes
Algorithm 1 ELR-based split conformal prediction for object-valued responses
Require: Observations , miscoverage level , locality level , and a new covariate
Ensure: Prediction set with nominal coverage
1: Randomly partition into training indices and calibration indices ; set and .
2: Fit a metric distributional random forest to the training set .
3: Use the forest weights to compute , , and .
4: For each , compute the nonconformity score .
5: Let be the empirical quantile of .
6: Return
.
the corresponding sample size. The forest weights are
where . The corresponding estimate of the conditional mean embedding is
(3)
Thus, is the kernel mean embedding of the weighted empirical measure , where denotes the point mass at . For any integrable measurable function on , we estimate by .
Applying these weights to metric-ball indicators gives the CDP estimator
Integrating the corresponding distance quantiles gives the CELR estimator
We estimate the conditional distribution function of CELR by
All three estimators use weights from the same forest, so no additional forest fits are required. Algorithm 1 summarizes the split conformal procedure. For any candidate , membership in is determined by . In numerical work, this rule is evaluated on a finite candidate set suited to the response space.
4 Theoretical guarantees
We derive uniform convergence rates for the forest estimators and use them to establish asymptotic conditional validity. Following Wager and Athey (2018); Athey et al. (2019); Cevid et al. (2022), we consider the infinite forest obtained as the number of trees B tends to infinity. It averages over all subsamples of of size and over the tree randomization for each subsample. Its weights are
where indexes the subsamples of , and the expectation is over . We use the same notation for the weights of finite and infinite forests when no ambiguity arises. Writing for , a generic estimator based on the infinite forest takes the form
where is the prediction from a tree built on with randomization . Equation (4) is a U-statistic of order , which grows with . Working with the infinite forest is standard in (Wager and Athey, 2018; Athey et al., 2019) because it separates statistical error from the Monte Carlo error due to a finite number of trees. The latter can be made negligible in practice by choosing sufficiently large.
4.1 Uniform consistency of the forest estimator
We first prove uniform convergence of the MDRF estimator in RKHS norm. The proof extends the pointwise analysis of Cevid et al. (2022) using bounds on leaf diameters and a discretization of the covariate space. We assume the following conditions on the forest construction (Wager and Athey, 2018; Athey et al., 2019).
A1 (Forest regularity). The forest satisfies the following properties:
(P1) (Subsampling) Each tree is built from a subsample of size drawn without replacement from the training observations, where and .
(P2) (Honesty) Each tree subsample is randomly divided into equally sized splitting and estimation sets. Tree construction may use the splitting observations and estimation covariates, but not estimation responses, which are used only for leaf averages.
(P3) (Random split) At each internal node, the probability of selecting the jth covariate for splitting is at least for some and every .
(P4) ( -regularity) Split thresholds are selected from observed covariate values, and each child node receives at least a fraction of the estimation observations in its parent node. Trees are grown until every terminal leaf contains between and estimation observations for some fixed .
(P5) (Symmetry) The distribution of the randomized tree output is invariant under permutations of the training observations.
We also require the following condition on the marginal covariate density, as in Assumption (A3) of Zhou and Müller (2025).
A2 (Bounded covariate density). The covariates have a density that is bounded above and bounded away from zero.
Theorem 5 (Uniform consistency of MDRF). Let H be the RKHS associated with a bounded, continuous, and characteristic kernel k. Suppose Assumptions A1 and A2 hold, and let the subsample size satisfy for some . If the target map
is Lipschitz continuous, then
where .
The rate reflects a bias–variance tradeoff between subsampling variability, represented by , and the cell-shrinkage rate under -regular random splitting, represented by . The factor is the cost of extending pointwise convergence to uniform convergence over the covariate space. Theorem 5 gives uniform control of the conditional mean embedding and hence of the forest-induced conditional law in the MMD metric. This result justifies reusing the forest weights to estimate the distributional quantities required by the ELR-based conformal procedure. It does not, however, directly establish consistency of the conditional distance profiles, which are metric-ball probabilities defined by nonsmooth indicator functions.
4.2 Asymptotic conditional validity for conformal prediction
To analyze the CRS, we first establish uniform consistency of the CDP estimator over covariates, candidate centers, and radii. This requires regularity in the covariates and control of the complexity of metric balls in the response space.
A3 (Lipschitz continuity). The CDP is Lipschitz continuous in : there exists a constant such that, for all , , and ,
A4 (Complexity). Let . There exist constants and such that, for every probability measure on ,
Assumption A3 bounds the variation of conditional ball probabilities with x; compare Assumption (A7) of Zhou and Müller (2025). Assumption A4 controls the uniform entropy of the class of ball indicators. It holds for VC-type ball classes, including those in finite metric spaces, Euclidean spaces and their subsets, finite-dimensional Hilbert spaces, spheres with geodesic distance, symmetric positive-definite matrices with the log-Euclidean metric, and network spaces with the Frobenius metric.
Theorem 6 (Uniform convergence of CDP). Suppose Assumptions A1–A4 hold and the subsample size satisfies for some . Let denote the MDRF estimator of CDP. Then
where .
Theorem 6 gives the same rate as Theorem 5, now uniformly over . Uniformity over follows from the discretization argument used for Theorem 5, whereas control over relies on a maximal inequality for growing-order -processes. Enlarging the index set does not change the polynomial rate; the factor accounts for uniformity.
Remark 1. For local linear CDP estimation, Zhou and Müller (2025, Theorem 2) obtain stochastic terms and under polynomial uniform covering numbers and polynomial uniform entropy, respectively, where is the bandwidth and is the entropy exponent. The second bound contains an additional factor beyond the usual scale. In their analysis, the entropy bound is combined with localization to a shrinking covariate neighborhood, so response complexity enters the bandwidth balance and leads to a slower bound as V increases. Our forest analysis controls response complexity through normalized tree averages. Each tree prediction is a convex combination of ball indicators with weights that do not depend on . The resulting kernels are bounded by one and inherit the uniform entropy bound with constants independent of . Since , the entropy integral is finite, giving a uniform stochastic bound of order ; see Supplementary Lemmas S.4 and S.3. Thus response complexity affects the constant in this bound, while subsampling and the bias from shrinking leaf regions determine the convergence exponent. These bounds do not establish a general rate advantage for forests.
To transfer the CDP bound to CELR, we control the tails of distances from a fixed anchor point. Assumption A5 allows unbounded response spaces and holds, for example, for Euclidean responses with bounded conditional location and sub-Weibull noise.
A5 (Uniform anchor Orlicz integrability). There exist an anchor point and constants and such that
where the conditional Orlicz norm is defined by
Theorem 7 (Uniform consistency of CELR). Suppose Assumptions A1–A5 hold and the subsample size satisfies for some . For a fixed , let denote the MDRF estimator of CELR. Then
where .
Theorem 7 establishes uniform consistency of the CELR estimator over covariates and candidate centers. Relative to Theorem 6, the polynomial exponent is unchanged, but the additional factor appears. This factor arises when uniform control of the distance profiles is transferred to their integrated quantiles without assuming a bounded response space. Lighter conditional tails, corresponding to larger in Assumption A5, reduce the logarithmic penalty, while the forest estimation error continues to determine the polynomial rate. This result is essential because the conformal score depends on the estimated CELR and its conditional distribution rather than directly on the CDP. Uniform CELR consistency ensures that replacing with does not asymptotically distort the ranking of candidate responses.
Uniform consistency of CELR alone is nevertheless insufficient for conditional validity. Because the conformal cutoff depends on the conditional distribution of CELR, small estimation errors must produce only small changes in score ranks. The following continuity condition rules out nonnegligible shifts of probability mass across score thresholds, also stated in Assumption (A1) of Zhou and Müller (2025).
A6 (Score continuity). Let denote the conditional distribution function of CELR. Assume the following conditions: (1) is Lipschitz continuous in uniformly over . (2) is Lipschitz continuous in uniformly over .
Theorem 8 (Asymptotic conditional validity). Let be the prediction set constructed by Algorithm 1. Suppose Assumptions A1–A6 hold and the subsample size satisfies for some . Then
Theorem 8 complements the marginal coverage guarantee in Theorem 4. Exchangeability gives finite-sample marginal validity for any score fitted on the training sample. Under the stated regularity conditions, uniform estimation of the score components also yields coverage approaching conditional on .
5 Simulation studies
We assess the finite-sample performance of the proposed ELR-based conformal method in simulations designed to evaluate conditional coverage across the covariate domain, prediction-set size, and applicability to non-Euclidean responses. In each experiment, the data are randomly divided into equally sized training and calibration samples, and split-conformal prediction sets are constructed at the nominal coverage level . Throughout this section, ELR denotes the proposed procedure estimated by the MDRF, whereas CPS denotes the conditional profile score procedure of Zhou and Müller (2025) implemented with local linear smoothing. We consider seven settings in total: Settings 1–2, 4, and 6–7 are presented below, while Settings 3 and 5 are reported in Supplementary Section S.4. Results are averaged over 100 Monte Carlo replications; Appendix S.3 describes the hyperparameter choices.
5.1 Univariate covariates
We begin with the one-dimensional settings of Zhou and Müller (2025), taking , and compare ELR with CPS. Both scalar and sphere-valued responses are considered.
Setting 1 (Nonlinear regression with heteroscedastic variability). Given a covariate , the response is generated as
where . Hence, the conditional distribution is more dispersed for than for .
Setting 2 (Nonlinear regression with a bimodal pattern). The response is generated from the two-component mixture
where and . The two components coincide for ; for , their means separate continuously, yielding a bimodal distribution once the separation is sufficiently large.

Figure 2: Average conditional coverage (top) and prediction-set length (bottom) under Settings 1–2 with sample size n = 2000. The left and right columns correspond to Settings 1 and 2, respectively. Red and black curves denote ELR and CPS, respectively. The dashed horizontal line marks the nominal coverage level 0.9.
Figure 2 shows empirical coverage close to 0.9 over much of the covariate range for both methods. In Setting 1, both methods produce longer prediction sets for x < 0 and shorter sets for x > 0, reflecting the difference in noise levels. ELR has a sharper decrease in length across x = 0 and smaller coverage deviations near the discontinuity. In Setting 2, prediction-set length increases near x = 0 and remains approximately constant for larger positive x. ELR shows less overcoverage just to the left of zero, although both methods have undercoverage immediately to its right. Both also show undercoverage at the left endpoint, while the departure at the right endpoint is more pronounced for CPS.
Setting 3, presented in Supplementary Section S.4.1 and Supplementary Figure S.1, provides an additional univariate experiment with sphere-valued responses. This experiment shows that both ELR and CPS remain close to the nominal coverage level. Together with Settings 1–2, these results demonstrate that the proposed method remains competitive for univariate covariates with both Euclidean and non-Euclidean responses.
5.2 Multivariate covariates
We next consider multivariate covariates . These settings assess whether our method can adapt to higher-dimensional covariate structure without explicit parametric assumptions.
Setting 4 (Single-index model). For comparison with the multivariate single-index approach of Zhou and Müller (2025), let . We generate scalar responses from the heteroscedastic single-index model
where and .
Figure 3 compares the empirical conditional coverage surfaces of ELR and CPS over a grid with and the remaining coordinates fixed at zero. Both methods have coverage close to the nominal level, with local deviations near the change in noise level. CPS, which exploits the correctly specified single-index structure, achieves smaller absolute conditional coverage errors for both p = 5 and p = 10. Forest-based ELR offers a nonparametric alternative without imposing this structural assumption, albeit with somewhat larger coverage errors in this experiment. The similar ELR coverage patterns for p = 5 and p = 10 suggest little sensitivity to the additional nuisance variables, demonstrating that forest weights are adaptive to the informative coordinates. Setting 5, presented in Supplementary Section S.4.2 and Supplementary Figure S.2, provides a complementary multivariate experiment with vector-valued mixture responses. The experiment considers two-component, three-component, and covariate-dependent mixtures; empirical coverage remains close to the target level across these heterogeneous conditional structures. We do not implement CPS in Settings 5–7, as these settings do not satisfy the single-index assumption used in its multivariate extension.

Figure 3: Average conditional coverage for ELR (top) and CPS (bottom) under the single-index model in Setting 4 with n = 2000. The left and right columns correspond to p = 5 and p = 10, respectively. Each panel shows coverage at 100 test points. The nominal coverage level is 0.9.
Setting 6 (Sphere-valued responses). We next consider sphere-valued responses. Responses are generated from a von Mises–Fisher distribution,
where
We consider . The test points form a grid over the first five coordinates, each taking values in , with the remaining coordinates fixed at zero. Figure 4 reports empirical coverage and prediction-set size for and . Coverage remains near the nominal level for all three values of . Prediction-set size decreases as the training sample grows, consistent with more accurate estimation of the conditional law. Increasing p has only a moderate effect: additional covariates yield slightly larger sets but do not visibly impair calibration. This finding suggests that the forest-based weighting scheme remains adaptive when only a subset of the covariates drives the conditional response distribution.

Figure 4: Average conditional coverage (left) and prediction-set size (right) for the sphere-valued model in Setting 6, with p = 5, 10, 20 and n = 500, 1000. Each boxplot summarizes the results at 243 test points. The dashed red line marks the nominal coverage level 0.9.
Setting 7 (Distribution-valued responses). Finally, we consider distribution-valued responses equipped with the Wasserstein distance. Define
The distribution-valued response is
We use the same test-point grid as in Setting 6. Figure 5 shows that empirical coverage remains stable across the different covariate dimensions and sample sizes. Together with Setting 6, this result demonstrates that the proposed method remains well calibrated for non-Euclidean responses.
5.3 Computation time comparison
We compare the computation times of ELR and CPS (Zhou and Müller, 2025) in Settings 1, 3, and 4, representing heteroscedastic scalar responses, sphere-valued responses, and a single-index model with multivariate covariates, respectively. For each configuration, we run five Monte Carlo replications with preselected tuning parameters held fixed. Within each replication, the methods use the same simulated data, training-

Figure 5: Average conditional coverage for the distribution-valued model in Setting 7, with and . Each boxplot summarizes the results at 243 test points. The dashed red line marks the nominal coverage level 0.9.
calibration split, test covariate points, and candidate-response grid. All computations are performed on the same Linux server with Intel Xeon Gold 5218R processors at 2.10 GHz, with both methods restricted to a single CPU thread. We record elapsed time for data generation, model fitting, score evaluation, prediction-set construction, and empirical coverage and size evaluation.
Table 1 shows that ELR is faster in all three configurations. ELR fits the MDRF once and reuses its weights to estimate CDPs, CELRs, and the conditional distribution functions that define the scores. CPS instead repeatedly applies local smoothing to construct calibration scores and prediction sets, with additional comparisons between conditional distance profiles. The largest timing difference occurs in the multivariate-covariate setting (Setting 4), where CPS also estimates a single-index direction by numerical optimization. MDRF fitting can be further accelerated by parallelizing across trees, although this option is not used in the benchmark.
Table 1: Mean elapsed times (seconds) for ELR and CPS over five Monte Carlo replications. Speedup is the ratio of mean times, .
| Setting | Response space | n | p | ELR (s) | CPS (s) | Speedup |
|---|---|---|---|---|---|---|
| 1 | 2000 | 1 | 62.2 | 187.7 | 3.02 | |
| 3 | 400 | 1 | 276.8 | 2,515.5 | 9.09 | |
| 4 | 2000 | 10 | 73.3 | 22,208.7 | 303.14 |
6 Real data applications
6.1 New York City taxi data
We apply the proposed ELR-based conformal method to data derived from New York City yellow taxi trips recorded during 2024 (https://www.nyc.gov/site/tlc/about/tlc-trip-record-data.page). This application combines multivariate predictors with symmetric positive-definite matrix (SPD) responses. The trip-level records, released by the New York City Taxi and Limousine Commission, include pickup and drop-off times and locations, trip distance, passenger count, and payment information. We restrict the analysis to Manhattan and partition the borough into 10 subregions. Each response is constructed from a network matrix summarizing traffic flows among these subregions. Because nighttime traffic is sparse and exhibits distinct patterns, we retain trips between 7:00 and 22:00 each day and group them into consecutive bins of 1000 trips. For each bin, we form a flow matrix whose entry is the number of trips from subregion i to subregion j. We scale the matrix by its largest entry, symmetrize it, and then apply the matrix exponential transformation. This yields an SPD-valued response Y representing the taxi-flow network for that bin. Distances between responses are measured using the log-Cholesky metric (Lin, 2019).
The 10 predictors are the time of day, defined as the midpoint of each bin; the within-bin averages of trip distance, passenger count, and tip amount; an indicator distinguishing weekdays from weekends and holidays; and five daily weather summaries from Weather Underground for New York City (https://www.wunderground.com/history/monthly/us/ny/new-york-city/KLGA/date). The weather variables are average temperature, average humidity, average wind speed, average barometric pressure, and total precipitation. The taxi analysis in Zhou and Müller (2025) uses time of day alone; here we use all ten predictors jointly. We randomly divide the observations into training, calibration, and test sets in the ratio 4:4:2. Continuous predictors are standardized, while the binary indicator is left unchanged.
We first evaluate coverage on the test set at the nominal level . The overall empirical coverage is 0.9502, nearly identical to the target. To examine calibration over the daily traffic cycle, Figure 6 plots local empirical coverage against time of day, separately for weekday and weekend/holiday bins and for rainy and non-rainy conditions. Throughout the main daytime period, the curves remain centered near the nominal level, with the larger deviations occurring primarily in sparse or more variable regimes. The method therefore exhibits stable empirical calibration both overall and across substantively different traffic conditions.

Figure 6: Local empirical coverage as a function of time of day in the New York City taxi application. Left: weekday versus weekend/holiday bins. Right: rainy versus non-rainy conditions. The solid red horizontal line indicates the nominal coverage level 0.95.
To broaden the assessment beyond time of day, we consider one-dimensional diagnostics for representative transportation and weather variables, as well as two-dimensional binned diagnostics for selected covariate pairs. Complete results are reported in Supplementary Section S.5.1.3 and Supplementary Figures S.4–S.5. Coverage remains close to the target in most regimes, with the more noticeable departures concentrated in sparse cells or under conditions of high intrinsic variability. These diagnostics support the conclusion from Figure 6 that calibration remains stable across diverse traffic and weather conditions, rather than only in aggregate.
We next use representative local network patterns to examine the interpretation of the fitted CRS. Figure 7 considers two scenarios: weekday morning commuting and weekend/holiday nightlife travel. For each scenario, we display the local Fréchet mean and the observations with the smallest and largest CRS within the corresponding local training sample. The local Fréchet mean summarizes the selected responses, while the minimum- and maximum-CRS matrices illustrate relatively typical and atypical observations, respectively. Weekday morning networks exhibit more concentrated and recurrent flow patterns, whereas weekend/holiday nightlife networks are more diffuse and less regular. The CRS ordering thus complements the local mean by illustrating variation in conditional typicality within each traffic regime.
Overall, the New York City taxi application illustrates the proposed method in a setting with genuinely multivariate inputs and non-Euclidean outputs. It provides stable empirical coverage for SPD-valued traffic networks together with interpretable local summaries of heterogeneous transportation patterns.

Figure 7: Representative local network patterns in the New York City taxi application. For each traffic regime, we display the local Fréchet mean and the observations with the smallest and largest CRS within the corresponding local training sample. Heatmaps display the matrix logarithms of the corresponding SPD matrices.
6.2 U.S. energy data
We next analyze a state-level panel of U.S. energy consumption (https://www.eia.gov/state/seds/seds-data-complete.php?sid=US), comprising annual observations for the 50 states and the District of Columbia from 1970 through 2023. For each state-year, the response records the shares of total energy consumption in three broad categories, , where U is the share of traditional energy (coal and petroleum), V is the share of natural gas, and W is the share of non-fossil energy, including hydroelectric, wind, solar, geothermal, biomass, and nuclear sources. Since , the response lies on the probability simplex. We map it to the positive orthant of the unit sphere using the square-root transformation , and construct prediction sets on the sphere using the geodesic metric. This representation preserves the compositional structure of the response while placing the conformal procedure in a natural non-Euclidean space. Our objective is to quantify predictive uncertainty in a changing and heterogeneous energy system, rather than to provide point predictions alone.
The 10 predictors are calendar year, population, per-capita electricity consumption, heating degree days, cooling degree days, the nominal prices of coal, petroleum, natural gas, and electricity, and a coastal indicator. These variables represent the long-run energy transition, climate-related demand, incentives for fuel substitution, and persistent geographic heterogeneity. The energy analysis in Zhou and Müller (2025) uses calendar year alone; our additional covariates allow comparisons among states within the same year. Table S.4 in Supplementary Section S.5.2 provides detailed definitions of the response components and covariates. We reserve five benchmark years (1970, 1985, 1999, 2012, 2023) spanning the sample period for testing and divide the remaining observations equally between training and calibration. Continuous predictors are standardized before model fitting, while the coastal indicator remains binary.
We construct prediction sets at the nominal coverage level and display them on the ternary simplex. In each panel, the shaded region denotes the ELR-based conformal prediction set, and the red cross marks the observed energy composition. Rather than imposing a fixed-width uncertainty band, the method produces adaptive regions whose location, size, and shape vary with the covariates. Figure 8 compares Arizona and Alaska, two states chosen for their pronounced climatic contrast. Arizona's prediction sets move progressively away from the traditional-energy edge and toward the non-fossil corner, particularly after the mid-1980s, a pattern consistent with persistent cooling demand and abundant solar resources. Alaska's sets remain concentrated near the traditional-energy side throughout the sample period, although the natural-gas share gradually increases within this fossil-dominated mix. This pattern is consistent with sustained heating demand and improvements in natural-gas transportation and delivery infrastructure.
Two complementary comparisons appear in Supplementary Section S.5.2.2. Supplementary Figure S.6 contrasts New York and Wyoming, selected to represent low and high per-capita electricity consumption, while Supplementary Figure S.7 summarizes broader geographic patterns by averaging responses and covariates within coastal and inland groups. These results show that the prediction sets respond both to state-level structural differences and to the common temporal transition evident after geographic aggregation.
Taken together, these results illustrate three practical features of the method. First, the observed compositions generally fall within or near their corresponding prediction sets, supporting sensible uncertainty quantification for compositional responses. Second, the sets shift over time toward larger shares of non-fossil energy, reflecting the long-run transition of the U.S. energy system. Third, they vary systematically across geographic, climatic, and structural contrasts, indicating that the ELR-based conformal procedure responds to meaningful covariate heterogeneity rather than reproducing a global average pattern.
ELR Prediction Sets: Arizona vs Alaska
Red cross = observed composition in that state-year

Figure 8: Arizona versus Alaska in the U.S. energy data. Blue regions denote ELR-based conformal prediction sets with nominal coverage 0.9 across selected years; red crosses mark the observed energy compositions.
7 Discussion
CELR provides a way to construct prediction sets from local concentration in a metric space. Transforming CELR by its conditional distribution function gives the score CRS, whose values are comparable across covariate values. CRS ranks candidates by local concentration rather than distance from a point predictor, so the sets can reflect heteroscedasticity and multimodality without requiring a density or vector space structure. All score components are estimated using the weights from a single metric distributional random forest. Split conformal calibration guarantees finite-sample marginal coverage under exchangeability, and we establish asymptotic conditional validity under the stated regularity conditions.
Sample splitting leaves only part of the data for estimating the conditional law. Out-of-bag forest predictions could make fuller use of the sample by scoring each observation with trees fitted without it. A coverage argument would need to account for the dependence among these scores. Conditional local radii may also be useful for anomaly detection, change point testing, and decision problems under distributional ambiguity in metric spaces.
References
A. N. Angelopoulos, R. F. Barber, and S. Bates. Theoretical foundations of conformal prediction. arXiv preprint arXiv:2411.11824, 2024.
S. Athey, J. Tibshirani, and S. Wager. Generalized random forests. The Annals of Statistics, 47(2):1148–1178, 2019.
R. F. Barber, E. J. Candes, A. Ramdas, and R. J. Tibshirani. Predictive inference with the jackknife+. The Annals of Statistics, 49(1):486–507, 2021.
R. F. Barber, E. J. Candes, A. Ramdas, and R. J. Tibshirani. Conformal prediction beyond exchangeability. The Annals of Statistics, 51(2):816–845, 2023.
S. Bhattacharjee, B. Li, and L. Xue. Nonlinear global fréchet regression for random objects via weak conditional expectation. Annals of statistics, 53(1):117, 2025.
C. Brécheteau. A statistical test of isomorphism between metric-measure spaces using the distance-to-a-measure signature. Electronic Journal of Statistics, 13(1):795–849, 2019. doi: 10.1214/19-EJS1539.
L. Breiman. Random forests. Machine learning, 45(1):5–32, 2001.
D. Cevid, L. Michel, J. Näf, P. Bühlmann, and N. Meinshausen. Distributional random forests: Heterogeneity adjustment and multivariate distributional regression. Journal of Machine Learning Research, 23(333):1–79, 2022.
F. Chazal, D. Cohen-Steiner, and Q. Mérigot. Geometric inference for probability measures. Foundations of Computational Mathematics, 11(6):733–751, 2011. doi:10.1007/s10208-011-9098-0.
F. Chazal, P. Massart, and B. Michel. Rates of convergence for robust geometric inference. Electronic Journal of Statistics, 10(2):2243–2286, 2016. doi: 10.1214/16-EJS1161.
V. Chernozhukov, K. Wüthrich, and Y. Zhu. Distributional conformal prediction. Proceedings of the National Academy of Sciences, 118(48):e2107794118, 2021.
X. Dai, S. Lopez-Pintado, and A. D. N. Initiative. Tukey's depth for object data. Journal of the American Statistical Association, 118(543):1760–1772, 2023.
P. Dubey and H.-G. Müller. Functional models for time-varying random objects. Journal of the Royal Statistical Society Series B: Statistical Methodology, 82(2): 275–327, 2020.
P. Dubey, Y. Chen, and H.-G. Müller. Metric statistics: Exploration and inference for random objects with distance profiles. The Annals of Statistics, 52(2):757–792, 2024.
J. Fan and I. Gijbels. Local polynomial modelling and its applications. Chapman and Hall/CRC, 1996.
G. Geenens, A. Nieto-Reyes, and G. Francisci. Statistical depth in abstract metric spaces. Statistics and Computing, 33(2):46, 2023.
I. Gibbs and E. Candes. Adaptive conformal inference under distribution shift. Advances in Neural Information Processing Systems, 34:1660–1672, 2021.
I. Gibbs and E. J. Candès. Conformal inference for online prediction with arbitrary distribution shifts. Journal of Machine Learning Research, 25(162):1–36, 2024.
I. Gibbs, J. J. Cherian, and E. J. Candès. Conformal prediction with conditional guarantees. Journal of the Royal Statistical Society Series B: Statistical Methodology, page qkaf008, 2025.
A. Gretton, K. Borgwardt, M. Rasch, B. Schölkopf, and A. Smola. A kernel method for the two-sample-problem. Advances in neural information processing systems, 19, 2006.
L. Guan. Localized conformal prediction: A generalized inference framework for conformal prediction. Biometrika, 110(1):33–50, 2023.
R. Hore and R. F. Barber. Conformal prediction with local weights: randomization enables robust guarantees. Journal of the Royal Statistical Society Series B: Statistical Methodology, 87(2):549–578, 2025.
R. Izbicki, G. Shimizu, and R. B. Stern. Cd-split and hpd-split: Efficient conformal regions in high dimensions. Journal of Machine Learning Research, 23(87):1–32, 2022.
S. Jayasumana, R. Hartley, M. Salzmann, H. Li, and M. Harandi. Kernel methods on the riemannian manifold of symmetric positive definite matrices. In proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 73–80, 2013.
J. Lei and L. Wasserman. Distribution-free prediction bands for non-parametric regression. Journal of the Royal Statistical Society Series B: Statistical Methodology, 76(1):71–96, 2014.
J. Lei, M. G'Sell, A. Rinaldo, R. J. Tibshirani, and L. Wasserman. Distribution-free predictive inference for regression. Journal of the American Statistical Association, 113(523):1094–1111, 2018.
L. Lin, B. St. Thomas, H. Zhu, and D. B. Dunson. Extrinsic local regression on manifold-valued data. Journal of the American Statistical Association, 112(519):1261–1273, 2017.
Y. Lin and Y. Jeon. Random forests and adaptive nearest neighbors. Journal of the American Statistical Association, 101(474):578–590, 2006.
Z. Lin. Riemannian geometry of symmetric positive definite matrices via cholesky decomposition. SIAM Journal on Matrix Analysis and Applications, 40(4):1353–1370, 2019.
Z. Lin and H.-G. Müller. Total variation regularized fréchet regression for metric-space valued data. The Annals of Statistics, 49(6):3510–3533, 2021.
H. Liu, X. Wang, J. Zhu, and H. Zhang. Quantiles, ranks and signs in metric spaces. arXiv preprint arXiv:2209.04090, 2022.
K. Muandet, K. Fukumizu, B. Sriperumbudur, B. Schölkopf, et al. Kernel mean embedding of distributions: A review and beyond. Foundations and Trends® in Machine Learning, 10(1-2):1–141, 2017.
V. M. Panaretos, T. Pham, and Z. Yao. Principal flows. Journal of the American Statistical Association, 109(505):424–436, 2014. doi: 10.1080/01621459.2013.849199.
J. Park and K. Muandet. A measure-theoretic approach to kernel conditional mean embeddings. Advances in neural information processing systems, 33:21247–21259, 2020.
A. Petersen and H.-G. Müller. Fréchet regression for random objects with euclidean predictors. The Annals of Statistics, 47(2):691–719, 2019.
R. Qiu, Z. Yu, and R. Zhu. Random forest weighted local fréchet regression with random objects. Journal of Machine Learning Research, 25(107):1–69, 2024.
Y. Romano, E. Patterson, and E. Candes. Conformalized quantile regression. Advances in neural information processing systems, 32, 2019.
M. Sesia and Y. Romano. Conformal prediction using conditional histograms. Advances in neural information processing systems, 34:6304–6315, 2021.
G. Shafer and V. Vovk. A tutorial on conformal prediction. Journal of Machine Learning Research, 9(3), 2008.
J. Virta, K.-Y. Lee, and L. Li. Sliced inverse regression in metric spaces. Statistica Sinica, 32:2315–2337, 2022.
V. Vovk. Conditional validity of inductive conformal predictors. In Asian conference on machine learning, pages 475–490. PMLR, 2012.
V. Vovk. Cross-conformal predictors. Annals of Mathematics and Artificial Intelligence, 74(1):9–28, 2015.
V. Vovk, A. Gammerman, and G. Shafer. Algorithmic learning in a random world. Springer, 2005.
S. Wager and S. Athey. Estimation and inference of heterogeneous treatment effects using random forests. Journal of the American Statistical Association, 113(523):1228–1242, 2018.
C. Xu, Y. Yu, Z. Wang, C. Zou, and H. Ren. Aggregating conformal prediction sets via -allocation. Biometrika, page asag048, 2026.
Y. Yang and A. K. Kuchibhotla. Selection and aggregation of conformal prediction sets. Journal of the American Statistical Association, 120(549):435–447, 2025.
Q. Zhang, L. Xue, and B. Li. Dimension reduction for fréchet regression. Journal of the American Statistical Association, 119(548):2733–2747, 2024.
H. Zhou and H.-G. Müller. Conformal inference for random objects. The Annals of Statistics, 53(3):1123–1149, 2025.