Partition Trees: Conditional Density Estimation over General Outcome Spaces Felipe Angelim, Alessandro Leite Abstract We propose Partition Trees , a tree-based framework for conditional density estimation over general outcome spaces, supporting both continuous and categorical variables within a unified formulation. Our approach models conditional distributions as piecewise-constant densities on data-adaptive partitions and learns trees by directly minimizing conditional negative log-likelihood. This yields a scalable, nonparametric alternative to existing probabilistic trees that does not make parametric assumptions about the target distribution. We further introduce Partition Forests , an ensemble extension obtained by averaging conditional densities. Empirically, we demonstrate improved probabilistic prediction over CART-style trees and competitive or superior performance compared to state-of-the-art probabilistic tree methods and Random Forests, along with robustness to redundant features and heteroscedastic noise. 1 Introduction Decision trees are among the earliest and most widely used learning algorithms, valued for their computational efficiency, interpretability, and ability to capture nonlinear interactions through recursive partitioning ( 25 ; 21 ; 3 ; 23 ) . Early methods such as Automatic Interaction Detection (AID) ( 25 ) and CHAID ( 21 ) introduced the idea of fitting piecewise-constant models on data-adaptive partitions of the input space. The CART framework later systematized tree construction for both classification and regression and popularized pruning via cost-complexity regularization ( 3 ) . Although classical trees focus on point prediction or class probabilities, there has been growing interest in extending tree-based methods to probabilistic prediction and conditional density estimation. Recent approaches include CADET ( 9 ) , which employs parametric conditional densities at the leaves and selects splits using a cross-entropy criterion, and CDTree ( 34 ) , which jointly optimizes splits and leaf-wise histograms via a minimal description length objective. Although these methods demonstrate strong empirical performance, CADET’s leaf models impose parametric assumptions, whereas CDTree’s joint split-and-histogram optimization can be computationally demanding, limiting scalability on large datasets. In this paper, we introduce Partition Trees , a tree-based framework for conditional density estimation over general outcome spaces that supports both continuous and categorical variables. Our approach models conditional distributions as piecewise-constant densities defined on data-adaptive partitions of the joint covariate-outcome space. Formally, we adopt a measure-theoretic perspective in which conditional densities are defined via probability measures and Radon–Nikodym derivatives with respect to these partitions. Within this unified framework, both classification and regression emerge as cases of conditional density estimation. Trees are constructed greedily by maximizing an empirical log-loss objective, which is equivalent to minimizing the conditional negative log-likelihood of the resulting density estimator. This objective naturally accommodates heteroscedastic noise and leads to empirical robustness to redundant features. We further extend Partition Trees to ensembles, termed Partition Forests , by averaging the predicted conditional densities across multiple trees. Experiments on a diverse set of classification and regression benchmarks demonstrate that Partition Forests consistently improve probabilistic prediction compared to CART-style trees. On classification tasks, they achieve lower log-loss on several datasets, while Partition Forests outperform Random Forests on the majority of benchmarks. For regression, Partition Forests provide competitive point predictions and provide strong probabilistic performance, outperforming CADET on larger datasets without relying on parametric assumptions. Finally, semi-synthetic experiments highlight robustness to both homoscedastic and heteroscedastic noise, and to redundant features. We provide an implementation of Partition Trees and Partition Forests at github.com/felipeangelimvieira/partition_tree . 2 Methodology 2.1 Setting Let \displaystyle(\Omega,\mathcal{A},\mathbb{P}) be a probability space. Let \displaystyle X\in\mathcal{X} denote the covariates and \displaystyle Y\in\mathcal{Y} is the outcome. We observe a dataset \displaystyle\mathcal{D}=\{(x_{i},y_{i})\}_{i=1}^{N} of i.i.d. samples drawn from the joint distribution \displaystyle\mathbb{P}_{XY} , the push-forward of \displaystyle\mathbb{P} on the product space \displaystyle\mathcal{Z}:=\mathcal{X}\times\mathcal{Y} . A measurable cell \displaystyle A\subseteq\mathcal{Z} is written as a product set \displaystyle A=A_{X}\times A_{Y} , where \displaystyle A_{X}\subseteq\mathcal{X} and \displaystyle A_{Y}\subseteq\mathcal{Y} denote its covariate and outcome components, respectively. We use subscripts to indicate projections of a cell onto a specific coordinate space, and omit subscripts when referring to subsets of the joint space. Let \displaystyle\mathrm{pr}_{X}:\mathcal{X}\times\mathcal{Y}\to\mathcal{X} and \displaystyle\mathrm{pr}_{Y}:\mathcal{X}\times\mathcal{Y}\to\mathcal{Y} denote the canonical coordinate projections. Accordingly, for any \displaystyle A\subseteq\mathcal{X}\times\mathcal{Y} , we define \displaystyle A_{X}:=\mathrm{pr}_{X}(A) and \displaystyle A_{Y}:=\mathrm{pr}_{Y}(A) . Let \displaystyle\displaystyle n_{XY}(A) \displaystyle\displaystyle:=\sum\limits_{i=1}^{N}\mathbf{1}\{(x_{i},y_{i})\in A\}=N\;\hat{\mathbb{P}}_{XY}(A) (1) \displaystyle\displaystyle n_{X}(A) \displaystyle\displaystyle:=\sum\limits_{i=1}^{N}\mathbf{1}\{x_{i}\in A_{X}\}=N\;\hat{\mathbb{P}}_{X}(A_{X}) (2) denote the number of samples on a cell and its \displaystyle\mathcal{X} and \displaystyle\mathcal{Y} components. We use \displaystyle\mathbb{P}_{X}(A):=\mathbb{P}_{X}(A_{X}) , \displaystyle\mathbb{P}_{Y}(A):=\mathbb{P}_{Y}(A_{Y}) , \displaystyle\mu_{Y}(A):=\mu_{Y}(A_{Y}) for simplicity. In addition, let \displaystyle\pi_{N}(\{z_{i}\}_{i=1}^{N}) , \displaystyle z_{i}\in\mathcal{Z} , be a partitioning rule that maps datasets of size \displaystyle N to measurable partitions \displaystyle\pi_{N}(\{z_{i}\}_{i=1}^{N})=\{A_{i}\}_{i=1}^{K} . We overload the usage of \displaystyle\pi_{N} to also represent a partition generated by \displaystyle\pi_{N}(\{z_{i}\}_{i=1}^{N}) when the dataset is fixed or irrelevant to the context. In particular, \displaystyle\pi_{N}(\mathcal{D}) implies that \displaystyle|\mathcal{D}|=N . For any \displaystyle z\in\mathcal{Z} , we denote by \displaystyle\pi_{N}[z] the unique cell \displaystyle A\in\pi_{N} such that \displaystyle z\in A . 2.2 Mixed-Type Covariates and Outcomes We allow \displaystyle\mathcal{X} and \displaystyle\mathcal{Y} to contain a mixture of coordinate types. \displaystyle\displaystyle X \displaystyle\displaystyle=(X^{(c)},X^{(k)})\in\mathcal{X}^{(c)}\times\mathcal{X}^{(k)}=:\mathcal{X} \displaystyle\displaystyle Y \displaystyle\displaystyle=(Y^{(c)},Y^{(k)})\in\mathcal{Y}^{(c)}\times\mathcal{Y}^{(k)}=:\mathcal{Y} where, (a) \displaystyle\mathcal{X}^{(c)}\subseteq\mathbb{R}^{d_{x,c}} and \displaystyle\mathcal{Y}^{(c)}\subseteq\mathbb{R}^{d_{y,c}} are continuous coordinates; (b) \displaystyle\mathcal{X}^{(k)}=\prod_{j=1}^{d_{x,k}}\Sigma_{x,j} and \displaystyle\mathcal{Y}^{(k)}=\prod_{j=1}^{d_{y,k}}\Sigma_{y,j} are categorical coordinates with alphabets \displaystyle\Sigma_{x,j},\Sigma_{y,j} (assumed finite). Cells are factorized coordinate-wise, with internal splits for continuous coordinates, and subset splits for categorical coordinates. We introduce some notions that will be important in the consistency theorem. We first define a distance metric for continuous coordinates. To handle unbounded continuous domains, we use the transformation \displaystyle\phi(u)=u/(1+u) on the Euclidean distance. Define \displaystyle d_{cont}(z,z^{\prime})=\phi(\big\|(x^{(c)},y^{(c)})-(x^{\prime(c)},y^{\prime(c)})\big\|_{2}) and \displaystyle\mathrm{diam}_{cont}(A)=\sup_{z,z^{\prime}\in A}d_{cont}(z,z^{\prime}) . Also, define the diameter: \mathrm{diam}(A)=\mathrm{diam}_{cont}(A)+\sum_{k}\frac{|S_{k}(A)|-1}{|\Sigma_{k}|-1}. where \displaystyle S_{k}(A)\subseteq\Sigma_{k} is the set of categories present in leaf \displaystyle A along categorical coordinate \displaystyle k . 2.3 Conditional Density Estimation via Radon–Nikodym Derivatives Let \displaystyle(X,Y) be a random pair taking values in \displaystyle\mathcal{X}\times\mathcal{Y} , where \displaystyle\mathcal{X} and \displaystyle\mathcal{Y} are measurable spaces. Let \displaystyle\mathbb{P}_{XY} and \displaystyle\mathbb{P}_{X} denote the joint and marginal distributions, respectively. We fix a \displaystyle\sigma -finite reference measure \displaystyle\mu_{Y} on \displaystyle\mathcal{Y} , chosen as the counting measure for discrete outcomes and Lebesgue measure for continuous ones. Existence of a conditional density. We assume throughout that the joint distribution admits a conditional density of \displaystyle Y given \displaystyle X with respect to \displaystyle\mu_{Y} . Assumption 2.1 (Existence of conditional density) . The joint distribution \displaystyle\mathbb{P}_{XY} is absolutely continuous with respect to \displaystyle\mathbb{P}_{X}\otimes\mu_{Y} , i.e., \mathbb{P}_{XY}\ll\mathbb{P}_{X}\otimes\mu_{Y} Under 2.1 , the Radon–Nikodym derivative f:=\frac{d\mathbb{P}_{XY}}{d(\mathbb{P}_{X}\otimes\mu_{Y})} exists and defines a version of the conditional density of \displaystyle Y given \displaystyle X with respect to \displaystyle\mu_{Y} , in the sense that for \displaystyle\mathbb{P}_{X} -almost every \displaystyle x and all measurable \displaystyle B\subseteq\mathcal{Y} , \mathbb{P}(Y\in B\mid X=x)=\int_{B}f(x,y)\,\mu_{Y}(dy). 2.3.1 Piecewise-constant approximation on a partition Define \displaystyle\nu:=\mathbb{P}_{X}\otimes\mu_{Y} and let \displaystyle\bar{\mathcal{Z}}\subseteq\mathcal{Z} be a measurable subset with \displaystyle\nu(\bar{\mathcal{Z}})<\infty . When \displaystyle\nu(\mathcal{Z})<\infty , one may take \displaystyle\bar{\mathcal{Z}}=\mathcal{Z} . Let \displaystyle\pi be a measurable partition of \displaystyle\bar{\mathcal{Z}} into cells \displaystyle A=A_{X}\times A_{Y} . On a cell \displaystyle A with \displaystyle 0<\nu(A)<\infty , the best constant approximation of \displaystyle f in the sense of matching the \displaystyle\mathbb{P}_{XY} -mass of the cell is obtained by choosing \displaystyle c_{A}\geq 0 such that \int_{A}c_{A}\,\nu(dz)=\mathbb{P}_{XY}(A). Solving gives the cell-average value c_{A}=\frac{\mathbb{P}_{XY}(A)}{\nu(A)}. (3) This yields the piecewise-constant estimator f_{\pi}(z)=\begin{cases}\displaystyle\frac{\mathbb{P}_{XY}(\pi[z])}{\nu(\pi[z])},&z\in\bar{\mathcal{Z}},\\[6.00006pt] 0,&\text{otherwise.}\end{cases} (4) Equivalently, \displaystyle f_{\pi}=\mathbb{E}_{\nu}[f\mid\sigma(\pi)] \displaystyle\nu -a.e. on \displaystyle\bar{\mathcal{Z}} , i.e., the conditional expectation of \displaystyle f given the \displaystyle\sigma -algebra generated by the partition. Because \displaystyle\nu=\mathbb{P}_{X}\otimes\mu_{Y} factorizes over \displaystyle X and \displaystyle Y , a product cell \displaystyle A=A_{X}\times A_{Y} satisfies \nu(A)=\mathbb{P}_{X}(A_{X})\,\mu_{Y}(A_{Y}), so ( 3 ) can be written more explicitly as c_{A}=\frac{\mathbb{P}_{XY}(A)}{\mathbb{P}_{X}(A_{X})\,\mu_{Y}(A_{Y})}. 2.3.2 Empirical estimator from counts We estimate \displaystyle\mathbb{P}_{XY}(A) and \displaystyle\mathbb{P}_{X}(A_{X}) from the sample \displaystyle\mathcal{D}=\{(x_{i},y_{i})\}_{i=1}^{N} . Recall the counts defined in Equations ( 1 ) and ( 2 ). Then \displaystyle\hat{\mathbb{P}}_{XY}(A)=n_{XY}(A)/N and \displaystyle\hat{\mathbb{P}}_{X}(A_{X})=n_{X}(A)/N , and the plug-in estimate of \displaystyle c_{A} becomes \hat{c}_{A}=\frac{\hat{\mathbb{P}}_{XY}(A)}{\hat{\mathbb{P}}_{X}(A_{X})\,\mu_{Y}(A_{Y})}=\frac{n_{XY}(A)}{n_{X}(A)\,\mu_{Y}(A_{Y})}, (5) defined whenever \displaystyle n_{X}(A)>0 and \displaystyle\mu_{Y}(A_{Y})>0 . Substituting ( 5 ) into ( 4 ) yields a fully explicit estimator once a partition \displaystyle\pi_{N} is fixed. 2.3.3 Truncation of unbounded outcome spaces If \displaystyle\mu_{Y}(\mathcal{Y})=\infty (e.g., \displaystyle\mathcal{Y} contains an unbounded continuous component), then \displaystyle\nu(A)=\mathbb{P}_{X}(A_{X})\mu_{Y}(A_{Y}) may be infinite unless \displaystyle A_{Y} has finite \displaystyle\mu_{Y} -measure. To ensure well-defined denominators while still covering most of the probability mass, we restrict the estimator to a data-dependent truncated outcome domain \displaystyle\bar{\mathcal{Y}}_{N} with \displaystyle\mu_{Y}(\bar{\mathcal{Y}}_{N})<\infty , and define \displaystyle\bar{\mathcal{Z}}_{N}:=\mathcal{X}\times\bar{\mathcal{Y}}_{N} . For \displaystyle N samples \displaystyle\{y_{i}^{(c)}\}_{i=1}^{N} in the continuous part \displaystyle\mathcal{Y}^{(c)}\subseteq\mathbb{R}^{d_{y,c}} , define the axis-aligned box \displaystyle\displaystyle\bar{\mathcal{Y}}_{N}^{(c)}:=\prod_{j=1}^{d_{y,c}}\big[\,\underline{y}_{N,j}-\delta_{N},\ \overline{y}_{N,j}+\delta_{N}\,\big], (6) \displaystyle\displaystyle\underline{y}_{N,j}:=\min_{1\leq i\leq N}y_{i,j},\ \ \overline{y}_{N,j}:=\max_{1\leq i\leq N}y_{i,j}, and set \displaystyle\bar{\mathcal{Y}}_{N}:=\bar{\mathcal{Y}}_{N}^{(c)}\times\mathcal{Y}^{(k)} for the mixed case. The padding \displaystyle\delta_{N}>0 (typically \displaystyle\delta_{N}\downarrow 0 ) avoids boundary effects and ensures \displaystyle\mu_{Y}(\bar{\mathcal{Y}}_{N})<\infty . Given a data-dependent partition \displaystyle\pi_{N} of \displaystyle\bar{\mathcal{Z}}_{N} , our estimator is \hat{f}_{\pi_{N}}(z)=\begin{cases}\displaystyle\frac{n_{XY}(\pi_{N}[z])}{n_{X}(\pi_{N}[z])\,\mu_{Y}(\pi_{N}[z]_{Y})},&z\in\bar{\mathcal{Z}}_{N},\\[8.99994pt] 0,&\text{otherwise.}\end{cases} (7) We assume that \displaystyle\delta_{N}\downarrow 0 and that the truncation captures asymptotically all the probability mass, i.e., \mathbb{P}_{XY}(Y\notin\bar{\mathcal{Y}}_{N})\longrightarrow 0\quad\text{almost surely as }N\to\infty. We assume a deterministic boundary convention (e.g., half-open intervals) so that partition cells from a disjoint cover up to \displaystyle\mu_{Y} -null cells. For a fixed \displaystyle x , the map \displaystyle y\mapsto\hat{f}_{\pi_{N}}(x,y) is piecewise constant over the sets \displaystyle\{A_{Y}:A\in\pi_{N},\ x\in A_{X}\} , and its normalizing factor depends on the corresponding \displaystyle X -projections \displaystyle A_{X} . Unless these sets form a partition of \displaystyle\bar{\mathcal{Y}}_{N} with a common denominator, \displaystyle\hat{f}_{\pi_{N}}(x,\cdot) need not integrate to one. When a proper conditional density on \displaystyle\bar{\mathcal{Y}}_{N} is required, we therefore use the normalized version \bar{f}_{\pi_{N}}(x,y)=\frac{\hat{f}_{\pi_{N}}(x,y)}{\int_{\bar{\mathcal{Y}}_{N}}\hat{f}_{\pi_{N}}(x,y^{\prime})\,d\mu_{Y}(y^{\prime})}, (8) whenever the denominator is positive. The next section describes how to efficiently choose \displaystyle\pi_{N} to optimize a conditional log-loss objective. 2.4 Tree Construction Algorithm Figure 1 : Illustration of a partition of the joint space \displaystyle\mathcal{Z}=\mathcal{X}\times\mathcal{Y} . Each leaf of the tree corresponds to a rectangular cell in the induced partition (right). For a fixed query \displaystyle x=t , the leaves whose \displaystyle X -projection contains \displaystyle t form a histogram over \displaystyle\mathcal{Y} : the associated \displaystyle Y -intervals \displaystyle A_{Y} are the bins, and the estimator is constant on each bin. In particular, for \displaystyle x\leq t_{1} the slice \displaystyle x=t intersects two leaves, yielding a two-bin histogram defined by \displaystyle A_{11} and \displaystyle A_{12} ; for \displaystyle t_{1}t . For categorical coordinates \displaystyle z_{\ell}\in\Sigma , we use subset tests \displaystyle z_{\ell}\in S vs. \displaystyle z_{\ell}\notin S for \displaystyle\emptyset\subsetneq S\subsetneq\Sigma . We only accept splits that keep both children well-defined for the density estimator, i.e., \displaystyle\displaystyle n_{X}(A_{l})>0,\quad n_{X}(A_{r})>0, \displaystyle\displaystyle\mu_{Y}(A_{l,Y})>0,\quad\mu_{Y}(A_{r,Y})>0. Clearly, when splitting on a \displaystyle Y -coordinate, \displaystyle n_{X}(A_{l})=n_{X}(A_{r})=n_{X}(A) . Candidate splits producing a child with \displaystyle n_{X}(A)=0 or \displaystyle\mu_{Y}(A_{Y})=0 are discarded; if no admissible split exists for a leaf, it is declared terminal. 2.4.2 Log-loss objective and split gain Given a partition \displaystyle\pi , recall that the piecewise-constant conditional density estimate is \displaystyle f_{\pi}(z)=\mathbb{P}_{XY}(\pi[z])/\nu(\pi[z]) with \displaystyle\nu=\mathbb{P}_{X}\otimes\mu_{Y} . We score a partition using the conditional negative log-likelihood \displaystyle\displaystyle\mathcal{L}(\pi) \displaystyle\displaystyle:=-\mathbb{E}_{\mathbb{P}_{XY}}\big[\log f_{\pi}(Z)\big] (9) \displaystyle\displaystyle=-\sum_{A\in\pi}\mathbb{P}_{XY}(A)\log\!\left(\frac{\mathbb{P}_{XY}(A)}{\mathbb{P}_{X}(A_{X})\,\mu_{Y}(A_{Y})}\right), with conventions \displaystyle 0\log 0:=0 . Consider splitting a leaf \displaystyle A\in\pi into \displaystyle A_{l},A_{r} and let \displaystyle\pi^{\prime}:=(\pi\setminus\{A\})\cup\{A_{l},A_{r}\} . The population gain is the log-loss reduction G(\pi^{\prime},\pi):=\mathcal{L}(\pi)-\mathcal{L}(\pi^{\prime})\;\;\geq 0, and can be written as a Jensen gap (Appendix A ). In practice, we maximize the empirical gain obtained by replacing \displaystyle\mathbb{P}_{XY} and \displaystyle\mathbb{P}_{X} with their empirical counterparts. \displaystyle\displaystyle\widehat{G}(\pi^{\prime},\pi) \displaystyle\displaystyle=\frac{n_{XY}(A_{l})}{N}\log\!\left(\frac{n_{XY}(A_{l})}{n_{X}(A_{l})\,\mu_{Y}(A_{l,Y})}\right) \displaystyle\displaystyle\quad+\frac{n_{XY}(A_{r})}{N}\log\!\left(\frac{n_{XY}(A_{r})}{n_{X}(A_{r})\,\mu_{Y}(A_{r,Y})}\right) \displaystyle\displaystyle\quad-\frac{n_{XY}(A)}{N}\log\!\left(\frac{n_{XY}(A)}{n_{X}(A)\,\mu_{Y}(A_{Y})}\right), (10) where any term with \displaystyle n_{XY}(\cdot)=0 contributes \displaystyle 0 . 2.4.3 Best-first growth with exploitation and optional exploration budgets The tree is grown by repeatedly selecting a leaf and splitting it, under a global split budget \displaystyle k_{N} . Our default procedure is gain-based (exploitation), which greedily chooses the split that maximizes the empirical log-loss gain ( 2.4.2 ). For worst-case \displaystyle L^{1}(\nu) -consistency guarantees ( Section 3 ), we also analyze a hybrid variant that injects a small number of geometry-driven splits (exploration) to enforce leaf shrinkage. Exploitation (gain-based) step. For each current leaf \displaystyle A , we search over admissible one-coordinate splits and record the best achievable empirical gain. We then split the leaf–split pair with the largest gain among all leaves. Operationally, we maintain a priority queue of leaves by their current best gain; after splitting a leaf, only that leaf’s entry needs to be recomputed. Optional exploration (diameter-based) step. Pure gain maximization can, in principle, stall on coarse partitions when all one-step gains are zero, even though \displaystyle f varies within the leaf (for a standard greedy-tree failure mode, see ( 30 ) ). To obtain a worst-case leaf-shrinkage condition (used in Section 3 ), the hybrid variant allocates an exploration budget \displaystyle k_{N,e} and repeatedly splits the populated leaf (i.e., with \displaystyle n_{XY}(A)>0 ) of the largest diameter. The split coordinate is chosen as the one with the largest side length inside that leaf. For bounded continuous sides, we split at the geometric mean value within the leaf; for categorical coordinates, we split off a (random) singleton category. If the selected leaf is unbounded along the chosen continuous coordinate, we instead split at an empirical threshold so that all samples in the leaf fall into a bounded child (e.g., at \displaystyle\max\{z_{i}:\ z_{i}\in A\} , creating one bounded populated child and one empty unbounded remainder). We design the exploration splits so that each such split satisfies a uniform diameter contraction \max\big(\mathrm{diam}(A_{l}),\mathrm{diam}(A_{r})\big)\leq\rho\,\mathrm{diam}(A) for some \displaystyle\rho\in[1/2,1) , as required by the consistency analysis in Section 3 . One simple schedule is to perform the \displaystyle k_{N,e} exploration splits first and then use the remaining \displaystyle k_{N}-k_{N,e} steps for gain-based refinement; interleaving the two phases is also possible. The asymptotic scaling conditions on \displaystyle k_{N} and \displaystyle k_{N,e} required for consistency are explicitly stated in Section 3 . 2.4.4 Efficient split search and complexity A computational advantage of ( 2.4.2 ) is that it depends only on simple count statistics for candidate children. For a continuous coordinate \displaystyle z_{\ell} and a leaf \displaystyle A , candidate thresholds are the midpoints between consecutive distinct values observed in the leaf. After sorting the relevant values within each leaf, we scan thresholds in increasing order and update the required counts using prefix sums, enabling evaluation of all thresholds on that coordinate in linear time, plus sorting. Algorithm 1 in Section B.1 gives one concrete implementation using two sorted index lists: one for the covariate samples in \displaystyle A_{X} (to update \displaystyle n_{X} when splitting on \displaystyle X ), and another for the joint samples in \displaystyle A (to update \displaystyle n_{XY} and to handle splits on either \displaystyle X or \displaystyle Y ). For categorical coordinates with alphabet \displaystyle\Sigma , we avoid enumerating all \displaystyle 2^{|\Sigma|}-2 subset tests by computing per-category count statistics inside the leaf, sorting categories by the score, and scanning the \displaystyle|\Sigma|-1 prefix thresholds. Section B.2 shows that this scan attains the best subset split for a leaf and coordinate. Let \displaystyle d_{Z} be the number of splittable coordinates in \displaystyle Z=(X,Y) . With per-leaf sorting, evaluating all candidate splits at a leaf with \displaystyle n_{X}(A) covariate points costs \displaystyle O(d_{Z}\;n_{X}(A)\log n_{X}(A)) in a straightforward implementation. For categorical coordinates, since alphabet sizes are fixed, the sort-and-scan subset search adds only \displaystyle O(n_{X}(A)) work per leaf, which is smaller than the split search cost over continuous coordinates. Summed over the best-first growth, this leads to an overall time complexity on the order of \displaystyle O(d_{Z}\,N\log N) with global presorting and maintained sorted indices, or \displaystyle O(d_{Z}\,N\log^{2}N) when sorting within each node for balanced trees, matching the scaling observed in practice for CART trees. 2.5 Partition Forest (bagging ensemble) To improve predictive stability and log-loss, we also consider an ensemble variant, Partition Forest , obtained by bagging Partition Trees . We fit \displaystyle B trees independently, where tree \displaystyle b is trained on a bootstrap sample \displaystyle\mathcal{D}^{(b)} (and optionally using random feature subsampling at each split, as in Random Forests ( 4 ) ). Given per-tree conditional density estimates \displaystyle\{\hat{f}_{\pi_{N}}^{(b)}\}_{b=1}^{B} , the forest predictor is the averaged density \hat{f}_{\pi_{N}}^{\mathrm{F}}(x,y):=\frac{1}{B}\sum_{b=1}^{B}\hat{f}_{\pi_{N}}^{(b)}(x,y), which is then normalized as in Equation 8 to obtain \displaystyle\bar{f}_{\pi_{N}}^{\mathrm{F}}(x,y) . 3 Consistency This section provides sufficient conditions for \displaystyle L^{1}(\nu) -consistency of the piecewise-constant estimator when the underlying data-dependent partition satisfies standard complexity and shrinkage requirements. To guarantee shrinkage under arbitrary distributions, we analyze a hybrid tree construction that injects a vanishing fraction of diameter-reducing splits. The consistency of data-driven partitions for joint density estimation has been studied by ( 24 ) . Here, we adapt their results to conditional density estimates and provide sufficient conditions for them. Let the maximum cell count of a family of partitions \displaystyle\mathcal{A} : m(\mathcal{A})=\sup_{\pi\in\mathcal{A}}|\pi| And the maximum cell count on the \displaystyle\mathcal{X} domain: m_{X}(\mathcal{A}_{N}):=\sup_{\pi\in\mathcal{A}_{N}}\big|\{A_{X}:\ A\in\pi\}\big|. (11) Denote by \displaystyle\Delta(\mathcal{A},\mathcal{D}) the number of distinct partitions of the finite set \displaystyle\mathcal{D} induced by partitions in \displaystyle\mathcal{A} . Define the growth function \displaystyle\Delta^{*}_{N}(\mathcal{A}) as: \Delta^{*}_{N}(\mathcal{A}):=\max\limits_{\mathcal{D}\in\mathcal{Z}^{N}}\Delta(\mathcal{A},\mathcal{D}) Finite VC dimension of \displaystyle X -leaf projections. We assume that the class of \displaystyle X -projections of leaves has finite VC dimension. In our implementation, it consists of axis-aligned rectangles in \displaystyle\mathbb{R}^{d_{x,c}} times categorical cylinder sets over finite alphabets. This class has a finite VC dimension by standard results on VC bounds for rectangles and finite product classes ( 33 ) . Theorem 3.1 describes the sufficient conditions for the data-driven partitions of \displaystyle\mathcal{Z} to be \displaystyle L^{1}(\nu) -consistent. The following results analyze the idealized tree construction without finite-sampling pruning or leaf-size constraints, and the consistency of the normalized estimator used in practice follows from Corollary 3.3 . Theorem 3.1 . Let \displaystyle\mathcal{D}_{N}=\{(X_{i},Y_{i})\}_{i=1}^{N}=\{\mathcal{Z}_{i}\}_{i=1}^{N} be a set of observations belonging to \displaystyle\mathcal{Z}:=\mathcal{X}\times\mathcal{Y} with joint distribution \displaystyle\mathbb{P}_{XY}\ll\nu . Consider \displaystyle\bar{\mathcal{Y}}_{N} a \displaystyle\nu -measurable truncation of \displaystyle\mathcal{Y} as in Equation ( 6 ). Let \displaystyle\Pi=\{\pi_{1},\dots,\pi_{N}\} be a partitioning scheme for \displaystyle\bar{\mathcal{Z}}_{N}:=\mathcal{X}\times\bar{\mathcal{Y}}_{N} , and let \displaystyle\mathcal{A}_{N} be the collection of partitions associated with the rule \displaystyle\pi_{N} . Denote by \displaystyle f(X,Y) the conditional density of \displaystyle Y given \displaystyle X and the estimate as in Equation 7 . Assume: 1. \displaystyle N^{-1}m(\mathcal{A}_{N})\xrightarrow{N\rightarrow\infty}0 2. \displaystyle N^{-1}\log\Delta^{*}_{N}(\mathcal{A}_{N})\xrightarrow{N\rightarrow\infty}0 3. There exists a sequence \displaystyle\gamma_{N}\xrightarrow{N\to\infty}{0} such that \displaystyle\mathbb{P}_{XY}(\{z\in\bar{\mathcal{Z}}_{N}:\mathrm{diam}(\pi_{N}[z])>\gamma_{N}\})\xrightarrow{N\to\infty}{0} 4. \displaystyle m_{X}(\mathcal{A}_{N})\sqrt{\frac{\log N}{N}}\to 0. Then \|\hat{f}_{\pi_{N}}-f\|_{L^{1}(\nu)}\longrightarrow 0\quad\text{as }N\to\infty, almost surely. Proof. See Appendix C for the proof.∎ Theorem 3.2 describes the sufficient conditions for consistency of the tree algorithm when augmented with exploration splits. Theorem 3.2 . (Consistency of the hybrid tree conditional density estimator) Let \displaystyle\hat{f}_{\pi_{N}} be the tree estimator in ( 7 ), built from a best-first greedy construction that (i) uses the empirical log-loss gain ( 2.4.2 ) for its main split selection, and (ii) additionally allocates an exploration budget \displaystyle k_{N,e} that always splits the current largest leaf. Assume: 1. The total split budget satisfies \displaystyle k_{N}=o(\sqrt{\frac{N}{\log N}}) and \displaystyle k_{N}\to\infty . (e.g. \displaystyle\sqrt[a]{N} , \displaystyle a>2 ), and the exploration budget \displaystyle k_{N,e} satisfies \displaystyle 0\leq k_{N,e}\leq k_{N} and \displaystyle k_{N,e}\to\infty . 2. (Per-split contraction for exploration) Every exploration split \displaystyle A\to\{A_{l},A_{r}\} satisfies \displaystyle\max(\mathrm{diam}(A_{l}),\mathrm{diam}(A_{r}))\leq\rho\,\mathrm{diam}(A) for some \displaystyle\rho\in[1/2,1) . Then \|\hat{f}_{\pi_{N}}-f\|_{L^{1}(\nu)}\longrightarrow 0\quad\text{as }N\to\infty, almost surely. Proof sketch. The argument consists in verifying the assumptions of Theorem 3.1 . With \displaystyle k_{N} splits, Lemma C.4 establishes conditions 1, 2, and 4. Condition 3 follows from the exploration rule, which ensures sufficient visitation while vanishing asymptotically, provided that \displaystyle k_{N,e}=o(\sqrt{N/\log N}) and \displaystyle k_{N,e}\to\infty . A complete proof is given in Appendix C . ∎ The split budget can be defined through hyperparameters. The next corollary extrapolates Theorem 3.1 to the normalized counterpart \displaystyle\bar{f}_{\pi_{N}} . Corollary 3.3 . Consider the setting in Theorem 3.1 and the definition of \displaystyle\bar{f}_{\pi_{N}} as in Equation 8 . Then \|\bar{f}_{\pi_{N}}-f\|_{L^{1}(\nu)}\longrightarrow 0\quad\text{as }N\to\infty, almost surely. Proof. See Appendix C.5 for the proof. ∎ 4 Experiments We conduct experiments to answer the following questions: (1) How does the proposed algorithm compare with respect to the traditional CART decision tree and its probabilistic variants? (2) Can the proposed tree handle both homoscedastic and heteroscedastic noise? (3) Can the proposed tree algorithm correctly ignore irrelevant or noisy features? Our experiments assess the performance of the proposed greedy gain-based splitting strategy on both classification and regression tasks. We focus on comparisons against the CART decision tree algorithm ( 3 ) , implemented in scikit-learn ( 28 ) . Additionally, we evaluate classical ensemble methods based on decision trees, including Random Forest ( 28 ) and XGBoost ( 5 ) . We use five-fold cross-validation, with a nested train-validation split within each fold for hyperparameter tuning. Hyperparameter tuning is performed using Optuna ( 1 ) , with a budget of 200 trials and a time limit of 20 minutes per model. For CDTree, hyperparameters are not tuned, following the recommendations of the original implementation. Model selection is based on log-loss evaluated on the validation data. Additional details regarding hyperparameters and experimental settings are provided in Appendix D . All experiments were conducted using our implementation of Partition Trees and Partition Forests available at github.com/felipeangelimvieira/partition_tree . 4.1 Classification Table 1 describes the log-loss obtained by Partition Tree and Partition Forest in comparison with their respective baselines. Among non-ensemble methods, Partition Trees outperform CART trees on the majority of datasets (8 out of 9). For ensemble methods, Partition Forest achieves superior probabilistic classification performance than Random Forest, a bagging-based ensemble of CART trees, on most datasets. Overall, XGBoost achieves the strongest performance on this task, achieving the lowest average rank (1.44) and consistently outperforming both bagging-based approaches (Random Forest and Partition Forest). Table 1 : Log-loss results over 5-fold cross-validation for ensemble and non-ensemble tree methods on classification tasks (mean ± std). Lower is better. Best for ensemble and non-ensemble in bold. The last row represents the average ranking of each method in its group. Underline indicates statistical ties according to a paired t-test at the 5% significance level (run separately within ensemble and non-ensemble groups) Non-ensemble models Ensemble models CART Partition Tree Partition Forest Random Forest NGBoost XGBoost iris 0.70 \displaystyle\pm 0.53 0.46 \displaystyle\pm 0.38 0.50 \displaystyle\pm 0.43 0.35 \displaystyle\pm 0.51 0.46 \displaystyle\pm 0.40 0.19 \displaystyle\pm 0.11 breast 1.07 \displaystyle\pm 0.81 0.64 \displaystyle\pm 0.05 0.58 \displaystyle\pm 0.02 0.55 \displaystyle\pm 0.05 0.56 \displaystyle\pm 0.05 0.57 \displaystyle\pm 0.03 wine 1.26 \displaystyle\pm 0.30 1.02 \displaystyle\pm 0.06 0.86 \displaystyle\pm 0.04 0.89 \displaystyle\pm 0.11 1.00 \displaystyle\pm 0.04 0.93 \displaystyle\pm 0.04 digits 1.59 \displaystyle\pm 0.28 0.45 \displaystyle\pm 0.04 0.29 \displaystyle\pm 0.01 0.30 \displaystyle\pm 0.01 0.44 \displaystyle\pm 0.07 0.11 \displaystyle\pm 0.02 spam 0.32 \displaystyle\pm 0.14 0.22 \displaystyle\pm 0.04 0.17 \displaystyle\pm 0.03 0.18 \displaystyle\pm 0.04 0.19 \displaystyle\pm 0.03 0.14 \displaystyle\pm 0.03 support2 0.28 \displaystyle\pm 0.04 0.28 \displaystyle\pm 0.02 0.24 \displaystyle\pm 0.02 0.27 \displaystyle\pm 0.06 0.24 \displaystyle\pm 0.02 0.23 \displaystyle\pm 0.01 letter 1.43 \displaystyle\pm 0.08 0.62 \displaystyle\pm 0.17 0.50 \displaystyle\pm 0.02 0.28 \displaystyle\pm 0.01 0.96 \displaystyle\pm 0.29 0.17 \displaystyle\pm 0.02 bank 0.23 \displaystyle\pm 0.01 0.22 \displaystyle\pm 0.01 0.20 \displaystyle\pm 0.01 0.20 \displaystyle\pm 0.01 0.22 \displaystyle\pm 0.01 0.20 \displaystyle\pm 0.01 adult 0.92 \displaystyle\pm 0.01 0.93 \displaystyle\pm 0.01 0.90 \displaystyle\pm 0.01 0.90 \displaystyle\pm 0.00 0.91 \displaystyle\pm 0.00 0.88 \displaystyle\pm 0.00 Avg. rank 1.89 1.11 2.44 2.56 3.56 1.44 4.2 Regression Task We compare Partition Trees against trees probabilistic regressions: CDTree ( 34 ) , CADET ( 9 ) , and NGBoost ( 11 ) . Since CART decision trees do not natively support probabilistic regression, we adopt the residual-based approach implemented in skpro ( 15 ) for CART, XGBoost, and Random Forest. It assumes normally distributed residuals and estimates predictive variance using an inner train-test split. The log-loss results are summarized in Table 2 . Among non-ensemble methods, CDTree achieves the best average ranking. However, its high computational complexity limits scalability and makes integration into ensemble frameworks impractical (see the runtime comparison in Appendix E and Figure 4 ). Comparing Partition Trees with CADET, our method outperforms CADET on four of the six largest datasets (i.e., Air, Power, California, and Protein). This suggests that Partition Tree may benefit from larger sample sizes than the parametric baseline. For ensemble methods, Partition Forests outperform Random Forests on most datasets (8 out of 10) and achieve performance competitive with NGBoost, which achieves the best overall ranking. These results indicate that Partition Forests are substantially better suited for probabilistic regression tasks than their CART-based counterparts. Additional results for the root mean squared error (RMSE) and predictive standard deviations are provided in Section D.3 . Table 2 : Log-loss results over 5-fold cross-validation for ensemble and non-ensemble tree methods on regression tasks. Best for each group in bold (lower is better). Datasets are ordered by size. Underline indicates statistical ties according to a paired t-test at the 5% significance level (run separately within ensemble and non-ensemble groups) Non-ensemble models Ensemble models Partition Tree CART CADET CDTree Partition Forest Random Forest NGBoost XGBoost diabetes 5.65 17.93 5.59 5.58 5.49 14.21 5.50 16.81 boston 2.90 8.39 2.89 2.88 2.53 4.60 2.59 4.60 energy 2.36 1.67 10.81 1.55 2.06 1.55 0.60 1.53 concrete 3.70 7.45 3.52 3.66 3.36 3.86 3.11 3.44 kin8nm -0.18 9.42 -0.22 -0.18 -0.45 3.30 -0.49 2.05 air 2.12 13.49 13.78 6.42 2.02 11.35 5.62 12.25 power 2.87 3.13 2.90 2.93 2.60 2.63 2.77 2.59 naval -4.38 4.69 -4.78 -4.29 -4.72 -4.98 -5.05 -4.93 california 0.69 7.07 0.88 0.58 0.42 3.11 0.52 2.51 protein 2.22 12.31 3.13 2.18 2.10 6.19 2.79 7.23 Avg. rank 2.30 3.70 2.30 1.70 1.90 3.30 1.80 3.00 4.2.1 Robustness against noise and redundant features To evaluate robustness to correlated and redundant features, we augment the feature matrix \displaystyle X\in\mathbb{R}^{N\times n_{x}} with \displaystyle k additional noisy columns. Each added feature is generated by copying a randomly selected original column \displaystyle X_{c_{i}} and adding Gaussian noise \displaystyle\epsilon\sim\mathcal{N}(0,\sigma_{i}^{2}) . The noise scale is set to the mean absolute value of the selected column, \displaystyle\sigma_{i}=\frac{1}{N}\sum_{j}|X_{j,c_{i}}| , which ensures that the perturbation is proportional to the feature’s magnitude while preserving substantial correlation with the original predictor. We evaluated robustness using the Concrete Compressive Strength dataset using five-fold cross-validation. The results are summarized in Figure 2 . CDTree maintains a stable negative log-likelihood as the number of features increases, indicating robustness to correlated feature duplication. In contrast, Partition Tree showed a gradual degradation in the negative log-likelihood, although its performance variance across folds remains lower than that of CADET. This suggests that while Partition Tree is less robust in expectation, it yields more consistent predictions under feature corruption. Figure 2 : Negative log-likelihood of probabilistic tree models on the Concrete Compressive Strength dataset. As the number of noisy features increases, the models exhibit different sensitivity patterns. Shaded bands denote the minimum and maximum values across five cross-validation folds. 4.2.2 Homoscedastic and heteroscedastic noise We study robustness to label noise by constructing semi-synthetic datasets in which we perturb the target values. For the homocedastic setting, we add Gaussian noise with standard deviation \displaystyle\sigma(\lambda)=\lambda\cdot\frac{1}{N}\sum_{i}|y_{i}| , with \displaystyle\lambda\in\{0.1,0.5,1.0,1.5\} . For the heteroscedastic case, we add a sample-dependent Gaussian noise with \displaystyle\sigma_{i}(\lambda)=\lambda|y_{i}| , using the same values of \displaystyle\lambda . Figure 3 shows that Partition Tree degrades with noise at a rate comparable to CDTree in both settings, while CADET exhibits higher variability across folds. (a) Homoscedastic noise (b) Heteroscedastic noise Figure 3 : Performance of probabilistic tree models under increasing label-noise magnitude on the Concrete Compress Strength dataset. Shaded bands indicate the minimum and maximum negative log-likelihood across five cross-validation folds. 5 Conclusion We introduced Partition Trees , a decision-tree framework for conditional density estimation over general outcome spaces, including continuous, categorical, and mixed-type targets. The method is grounded in a measure-theoretic formulation in which conditional densities are defined as a Radon-Nikodym derivative with respect to the dominating measure \displaystyle\mathbb{P}_{X}\otimes\mu_{Y} . This yields a unified piecewise-constant estimator that naturally covers both classification and regression within a single framework. Partition Trees are learned via a greedy, best-first procedure that directly optimizes a conditional log-loss objective on data-adaptive partitions of the joint covariate-outcome space. We further analyzed a hybrid variant that interleaves a vanishing fraction of diameter-reducing exploration splits, and showed that it admits an \displaystyle L^{1}(\nu) -consistency guarantee under standard partition growth and shrinkage conditions. An ensemble extension, Partition Forests , averages conditional densities across trees and improves predictive stability and log-loss performance. Empirically, the proposed models demonstrate competitive probabilistic performance across a diverse set of classification and regression benchmarks. Partition Forests typically achieve lower log-loss than CART-based trees and often improve over Random Forests, while providing accurate predictive densities and competitive point predictions in regression tasks. Experiments also highlight robustness to heteroscedastic noise and redundant features. Several directions for future work remain open. From an algorithmic perspective, integrating Partition Forests into boosting frameworks and developing pruning strategies tailored to conditional density objectives may further improve efficiency performance and efficiency. More broadly, Partition Trees ’ ability to handle heterogeneous and mixed-type outcomes makes them a natural candidate for integration into causal inference pipelines, where flexible conditional density estimation plays a central role. Appendix A Properties of the Log-loss Gain We first show that the population gain of a candidate split is a Jensen gap, related to child averages. Define \displaystyle\varphi(u)=u\log u . For a leaf \displaystyle A\in\pi and split \displaystyle A\rightarrow\{A_{l},A_{r}\} . Let \displaystyle\pi^{\prime} be the partition after splitting \displaystyle A . The population loss of a partition \displaystyle\pi can be expressed as: \mathcal{L}(\pi)=-\mathbb{E}_{\mathbb{P}_{XY}}[\log f_{\pi}]=-\mathbb{E}_{\nu}[f_{\pi}\,\log f_{\pi}] so the population gain can also be written: \displaystyle\displaystyle G(\pi^{\prime},\pi) \displaystyle\displaystyle=G(\{A_{l},A_{r}\},\{A\}) (12) \displaystyle\displaystyle=\nu(A_{l})\varphi(c_{A_{l}})+\nu(A_{r})\varphi(c_{A_{r}})-\nu(A)\varphi(c_{A}) (13) \displaystyle\displaystyle=\left(\frac{\nu(A_{l})}{\nu(A)}\varphi(c_{A_{l}})+\frac{\nu(A_{r})}{\nu(A)}\varphi(c_{A_{r}})-\varphi(c_{A})\right)\,\nu(A) (14) where \displaystyle c_{A}=\frac{1}{\nu(A)}\int_{A}fd\nu . From this identity, we derive the following proposition: the gain is a Jensen Gap. Proposition A.1 (Population gain is a Jensen Gap) . Consider a cell \displaystyle A and two children \displaystyle A_{l} and \displaystyle A_{r} , \displaystyle A=A_{l}\cup A_{r} . Let \displaystyle\nu_{A}=\nu(\cdot\cap A)/\nu(A) be a normalized restriction of the measure \displaystyle\nu to \displaystyle A and let \displaystyle\mathcal{G}:=\sigma(\{A_{l},A_{r}\}) be the \displaystyle\sigma -algebra generated by the split. Assume \displaystyle\nu(A),\nu(A_{l}),\nu(A_{r})>0 . The gain can be expressed by the following Jensen gap times the measure \displaystyle\nu(A) : G(\pi^{\prime},\pi)=\left(\mathbb{E}_{\nu_{A}}[\varphi(X)]-\varphi(\mathbb{E}_{\nu_{A}}[X])\right)\cdot\nu(A) with \displaystyle X(z)=\mathbb{E}_{\nu_{A}}[f\mid\mathcal{G}](z) , \displaystyle z\sim\nu_{A} . Proof. Define the normalized restriction \displaystyle\nu_{A}(B):=\nu(B\cap A)/\nu(A) for measurable \displaystyle B . Then c_{A}=\frac{1}{\nu(A)}\int_{A}f\,d\nu=\int_{A}f\,d\nu_{A}=\mathbb{E}_{\nu_{A}}[f]. Let \displaystyle\mathcal{G}:=\sigma(\{A_{l},A_{r}\}) . Since \displaystyle\mathcal{G} has atoms \displaystyle A_{l} and \displaystyle A_{r} , the conditional expectation \displaystyle X(z):=\mathbb{E}_{\nu_{A}}[f\mid\mathcal{G}](z) is \displaystyle\mathcal{G} -measurable, hence constant on each child: \displaystyle X=u_{l}\mathbf{1}_{A_{l}}+u_{r}\mathbf{1}_{A_{r}} . By the defining property of conditional expectation, for \displaystyle B\in\{A_{l},A_{r}\} , \int_{B}X\,d\nu_{A}=\int_{B}f\,d\nu_{A}. Thus \displaystyle u_{l}=\frac{1}{\nu_{A}(A_{l})}\int_{A_{l}}f\,d\nu_{A}=\frac{1}{\nu(A_{l})}\int_{A_{l}}f\,d\nu=c_{A_{l}} and similarly \displaystyle u_{r}=c_{A_{r}} . Therefore, \displaystyle\nu_{A} -a.e., X(z)=\mathbb{E}_{\nu_{A}}[f\mid\mathcal{G}](z)=\begin{cases}c_{A_{l}},&z\in A_{l},\\ c_{A_{r}},&z\in A_{r}.\end{cases} Let \displaystyle w:=\nu_{A}(A_{l})=\nu(A_{l})/\nu(A) . Then \mathbb{E}_{\nu_{A}}[\varphi(X)]=w\,\varphi(c_{A_{l}})+(1-w)\,\varphi(c_{A_{r}})=\frac{\nu(A_{l})}{\nu(A)}\varphi(c_{A_{l}})+\frac{\nu(A_{r})}{\nu(A)}\varphi(c_{A_{r}}). Also, by the tower property, \mathbb{E}_{\nu_{A}}[X]=\mathbb{E}_{\nu_{A}}\big[\mathbb{E}_{\nu_{A}}[f\mid\mathcal{G}]\big]=\mathbb{E}_{\nu_{A}}[f]=c_{A}. Plugging these identities into ( 12 ) yields G(\pi^{\prime},\pi)=\nu(A)\Big(\mathbb{E}_{\nu_{A}}[\varphi(X)]-\varphi(\mathbb{E}_{\nu_{A}}[X])\Big), as claimed. ∎ Since the gain is a Jensen Gap, it is immediate that the gain is always greater than or equal to zero. Corollary A.2 (Non-negativity of the gain) . For any split \displaystyle\{A\}\to\{A_{l},A_{r}\} , if \displaystyle\nu(A),\nu(A_{l}),\nu(A_{r})>0 , then \displaystyle G(\{A_{l},A_{r}\},\{A\})\geq 0 . Proof. Use the non-negativity of \displaystyle\nu(A) and the non-negativity of the Jensen Gap in Proposition A.1 to see that \displaystyle G(\pi^{\prime},\pi)\geq 0 . ∎ Appendix B Algorithm B.1 Continuous Coordinates Algorithm 1 illustrates how the split search can be executed for continuous variables. The algorithm does not use presorting (storing the sample order for each feature at the root), which could further improve runtime. Algorithm 1 Find Best Split (Continuous Coordinate \displaystyle z ) 1: Input: Coordinate values \displaystyle z\in\mathbb{R}^{N} , weights \displaystyle w\in\mathbb{R}_{+}^{N} , node index sets \displaystyle I_{x} (points with \displaystyle x_{i}\in A_{X} ), \displaystyle I_{xy} (points with \displaystyle(x_{i},y_{i})\in A ), flag is_X_feature , routine is_valid (t), and access to \displaystyle\mu_{Y}(A_{l,Y}),\mu_{Y}(A_{r,Y}) . 2: Output: Best gain \displaystyle G^{\star} and child index sets. 3: \displaystyle G^{\star}\leftarrow-\infty 4: \displaystyle I_{x,\mathrm{sort}}\leftarrow\mathrm{argsort}(z[I_{x}]) , \displaystyle I_{xy,\mathrm{sort}}\leftarrow\mathrm{argsort}(z[I_{xy}]) 5: \displaystyle I_{x}^{\uparrow}\leftarrow I_{x}[I_{x,\mathrm{sort}}] , \displaystyle I_{xy}^{\uparrow}\leftarrow I_{xy}[I_{xy,\mathrm{sort}}] 6: \displaystyle S_{x}\leftarrow z[I_{x}^{\uparrow}] , \displaystyle S_{xy}\leftarrow z[I_{xy}^{\uparrow}] 7: \displaystyle W_{x}\leftarrow\mathrm{cumsum}(w[I_{x}^{\uparrow}]) , \displaystyle W_{xy}\leftarrow\mathrm{cumsum}(w[I_{xy}^{\uparrow}]) 8: \displaystyle N_{X}\leftarrow W_{x}[-1] , \displaystyle N_{XY}\leftarrow W_{xy}[-1] 9: if is_X_feature then 10: \displaystyle\mathcal{C}\leftarrow midpoints between consecutive distinct values in \displaystyle S_{x} 11: else 12: \displaystyle\mathcal{C}\leftarrow midpoints between consecutive distinct values in \displaystyle S_{xy} 13: end if 14: Initialize pointers \displaystyle p_{x}\leftarrow 0 , \displaystyle p_{xy}\leftarrow 0 {upper-bound positions} 15: for threshold \displaystyle t\in\mathcal{C} in increasing order do 16: if is_X_feature then 17: {Advance \displaystyle p_{x} to the last index with \displaystyle S_{x}[p_{x}]\leq t } 18: while \displaystyle p_{x}+1<|S_{x}| and \displaystyle S_{x}[p_{x}+1]\leq t do 19: \displaystyle p_{x}\leftarrow p_{x}+1 20: end while 21: \displaystyle n_{X}(A_{l})\leftarrow W_{x}[p_{x}] , \displaystyle n_{X}(A_{r})\leftarrow N_{X}-n_{X}(A_{l}) 22: else 23: {Y-split does not change \displaystyle A_{X} } 24: \displaystyle n_{X}(A_{l})\leftarrow N_{X} , \displaystyle n_{X}(A_{r})\leftarrow N_{X} 25: end if 26: {Advance \displaystyle p_{xy} to the last index with \displaystyle S_{xy}[p_{xy}]\leq t } 27: while \displaystyle p_{xy}+1<|S_{xy}| and \displaystyle S_{xy}[p_{xy}+1]\leq t do 28: \displaystyle p_{xy}\leftarrow p_{xy}+1 29: end while 30: \displaystyle n_{XY}(A_{l})\leftarrow W_{xy}[p_{xy}] , \displaystyle n_{XY}(A_{r})\leftarrow N_{XY}-n_{XY}(A_{l}) 31: Compute \displaystyle G from Eq. ( 2.4.2 ) using these counts and \displaystyle\mu_{Y}(A_{l,Y}),\mu_{Y}(A_{r,Y}) . 32: if is_valid (t) \displaystyle\and G>G^{\star} then 33: \displaystyle G^{\star}\leftarrow G , store best \displaystyle(t^{\star},p_{x}^{\star},p_{xy}^{\star}) 34: end if 35: end for 36: if is_X_feature then 37: \displaystyle I_{x}^{(l)}\leftarrow I_{x}^{\uparrow}[0:p_{x}^{\star}+1] , \displaystyle I_{x}^{(r)}\leftarrow I_{x}^{\uparrow}[p_{x}^{\star}+1:] 38: else 39: \displaystyle I_{x}^{(l)}\leftarrow I_{x} , \displaystyle I_{x}^{(r)}\leftarrow I_{x} 40: end if 41: \displaystyle I_{xy}^{(l)}\leftarrow I_{xy}^{\uparrow}[0:p_{xy}^{\star}+1] , \displaystyle I_{xy}^{(r)}\leftarrow I_{xy}^{\uparrow}[p_{xy}^{\star}+1:] 42: Return \displaystyle G^{\star} , \displaystyle I_{x}^{(l)},I_{x}^{(r)},I_{xy}^{(l)},I_{xy}^{(r)} Example (one continuous feature at one node). Suppose a leaf \displaystyle A contains \displaystyle n_{X}(A)=6 covariate points with one continuous coordinate \displaystyle z (weights \displaystyle w_{i}\equiv 1 for simplicity) and \displaystyle n_{XY}(A)=4 joint points. Let the sorted values inside the node be S_{x}=(1,\;2,\;4,\;7,\;9,\;10),\qquad S_{xy}=(2,\;4,\;9,\;10). Candidate thresholds are the midpoints between consecutive distinct values in \displaystyle S_{x} : \mathcal{C}=\Big\{\tfrac{1+2}{2}=1.5,\ \tfrac{2+4}{2}=3,\ \tfrac{4+7}{2}=5.5,\ \tfrac{7+9}{2}=8,\ \tfrac{9+10}{2}=9.5\Big\}. Consider \displaystyle t=5.5 . The split index in \displaystyle S_{x} is the last position with value \displaystyle\leq 5.5 , namely after \displaystyle(1,2,4) , so n_{X}(A_{l})=3,\qquad n_{X}(A_{r})=3. Likewise, the split index in \displaystyle S_{xy} is after \displaystyle(2,4) , so n_{XY}(A_{l})=2,\qquad n_{XY}(A_{r})=2. Therefore the gain for this candidate is computed by plugging these four counts (and the corresponding \displaystyle\mu_{Y}(A_{l,Y}),\mu_{Y}(A_{r,Y}) ) into ( 2.4.2 ). Repeating this for each \displaystyle t\in\mathcal{C} only requires locating the split index in the sorted arrays and reading prefix sums (or, if scanning thresholds in increasing order, just incrementing the split index), which is exactly why continuous splits can be evaluated efficiently once the values are sorted. B.2 Efficient subset splitting for categorical covariates We now show how to efficiently find the best split for a categorical coordinate. The approach is similar to that used in standard decision trees, as shown by 13 . Problem setting (one categorical \displaystyle X -coordinate at one leaf). Fix a current leaf \displaystyle A=A_{X}\times A_{Y} and a categorical covariate coordinate \displaystyle z_{\ell}\in\Sigma=\{1,\dots,K\} . We consider subset splits \displaystyle S\subset\Sigma , \displaystyle S\neq\emptyset,\Sigma : A_{l}:=A\cap\{z_{\ell}\in S\},\qquad A_{r}:=A\cap\{z_{\ell}\notin S\}. Since this is an \displaystyle X -split, both children share the same outcome side: \displaystyle A_{l,Y}=A_{r,Y}=A_{Y} , hence \displaystyle\mu_{Y}(A_{l,Y})=\mu_{Y}(A_{r,Y})=\mu_{Y}(A_{Y}) is constant and cancels from the empirical gain ( 2.4.2 ). For each category \displaystyle c\in\Sigma , define the per-category counts inside \displaystyle A : a_{c}:=n_{XY}\!\big(A\cap\{z_{\ell}=c\}\big),\qquad b_{c}:=n_{X}\!\big(A\cap\{z_{\ell}=c\}\big),\qquad r_{c}:=\frac{a_{c}}{b_{c}}, where we only consider categories with \displaystyle b_{c}>0 . For \displaystyle S\subset\Sigma set a_{S}:=\sum_{c\in S}a_{c},\quad b_{S}:=\sum_{c\in S}b_{c},\quad r_{S}:=\frac{a_{S}}{b_{S}}, and similarly for \displaystyle S^{c} . For an \displaystyle X -split, \displaystyle\mu_{Y}(A_{l,Y})=\mu_{Y}(A_{r,Y})=\mu_{Y}(A_{Y}) is constant, and the parent term in ( 2.4.2 ) is constant in \displaystyle S . Dropping constants yields G(S)\equiv a_{S}\log\!\Big(\frac{a_{S}}{b_{S}}\Big)+a_{S^{c}}\log\!\Big(\frac{a_{S^{c}}}{b_{S^{c}}}\Big)=b_{S}\varphi(r_{S})+b_{S^{c}}\varphi(r_{S^{c}}). (15) which we seek to maximize. Proposition B.1 (Optimal subset split is a sorted prefix) . Let \displaystyle\varphi(u):=u\log u and let \displaystyle D(u,v) be its Bregman divergence D(u,v):=\varphi(u)-\varphi(v)-\varphi^{\prime}(v)(u-v)=u\log\!\frac{u}{v}-u+v. Consequently, there exists a maximizer \displaystyle S^{\star} of \displaystyle G(S) such that, after sorting categories by \displaystyle r_{c} , r_{\sigma(1)}\leq\cdots\leq r_{\sigma(K)},\qquad S^{\star}=\{\sigma(1),\dots,\sigma(t)\}\ \text{for some }t\in\{1,\dots,K-1\}. In particular, the best subset split can be found by sorting \displaystyle\{r_{c}\} once and scanning the \displaystyle K-1 prefix thresholds using prefix sums of \displaystyle\{a_{c},b_{c}\} . Proof. Using \displaystyle\sum_{c\in S}b_{c}(r_{c}-r_{S})=0 and the definition of \displaystyle D , we have \sum_{c\in S}b_{c}D(r_{c},r_{S})=\sum_{c\in S}b_{c}\varphi(r_{c})-b_{S}\varphi(r_{S}), and similarly for \displaystyle S^{c} . By rearranging and plugging into ( 15 ), we can see that the empirical gain of the categorical \displaystyle X -split \displaystyle S equals (up to additive constants independent of \displaystyle S ): G(S)\ \equiv\ b_{S}\varphi(r_{S})+b_{S^{c}}\varphi(r_{S^{c}})\ =\ \sum_{c\in\Sigma}b_{c}\varphi(r_{c})\;-\;\Big(\sum_{c\in S}b_{c}D(r_{c},r_{S})+\sum_{c\in S^{c}}b_{c}D(r_{c},r_{S^{c}})\Big). Let \displaystyle u:=r_{S} and \displaystyle v:=r_{S^{c}} and relabel children so that \displaystyle u\leq v . Consider the difference in divergence to the two centers for a point \displaystyle x : \Delta(x):=D(x,u)-D(x,v). A direct expansion shows \displaystyle\Delta(x)=\alpha+\beta x with \displaystyle\beta=\varphi^{\prime}(v)-\varphi^{\prime}(u)\geq 0 (since \displaystyle\varphi^{\prime} is increasing and \displaystyle u\leq v ), so \displaystyle\Delta(x) is non-decreasing in \displaystyle x . Hence, there exists a threshold \displaystyle t such that categories with \displaystyle r_{c}\leq t weakly prefer \displaystyle u and those with \displaystyle r_{c}>t weakly prefer \displaystyle v . Therefore, for fixed \displaystyle(u,v) , the assignment minimizing: \sum_{c}b_{c}\min\{D(r_{c},u),D(r_{c},v)\} is contiguous after sorting by \displaystyle r_{c} , i.e., a prefix split. Finally, for Bregman divergences, the minimizer over the center of \displaystyle\sum_{c\in S}b_{c}D(r_{c},\cdot) is the weighted mean \displaystyle r_{S} ; thus, re-centering after applying the threshold assignment cannot increase the cost. This yields an optimal split of prefix form. ∎ Remark (categorical \displaystyle Y -splits). If the split acts on a categorical outcome coordinate \displaystyle z_{\ell}\in\Sigma (a \displaystyle Y -split), then \displaystyle n_{X}(\cdot) is constant across children ( \displaystyle n_{X}(A_{l})=n_{X}(A_{r})=n_{X}(A) ), but the \displaystyle\mu_{Y} terms vary across subsets. In this case, the same sorted-prefix conclusion holds after redefining, for each category \displaystyle c\in\Sigma , a_{c}:=n_{XY}\!\big(A\cap\{z_{\ell}=c\}\big),\qquad b_{c}:=\mu_{Y}\!\big(A_{Y}\cap\{z_{\ell}=c\}\big),\qquad r_{c}:=\frac{a_{c}}{b_{c}}, and repeating the Bregman-threshold argument with these \displaystyle(a_{c},b_{c},r_{c}) . Time complexity consequences. The prefix optimality avoids enumerating all \displaystyle 2^{|\Sigma|}-2 nontrivial subset splits. Instead, one computes per-category statistics \displaystyle(a_{c},b_{c}) inside the leaf and sorts categories by \displaystyle r_{c}=a_{c}/b_{c} , then scans the \displaystyle|\Sigma|-1 prefixes using prefix sums. This costs \displaystyle O(n_{XY}(A)+|\Sigma|\log|\Sigma|) time (or \displaystyle O(|\Sigma|\log|\Sigma|) once the per-category counts are available). Appendix C Consistency We rephrase it here for clarity. Corollary C.1 . ( 24 ) Let \displaystyle Z_{1},Z_{2},\dots be i.i.d. random vectors in \displaystyle\mathcal{X}\times\mathcal{Y} with \displaystyle Z_{i}\sim\lambda , and let \displaystyle\mathcal{A}_{1},\mathcal{A}_{2},\dots be a sequence of partition families. If \displaystyle N tends to infinity: 1. \displaystyle N^{-1}m(\mathcal{A}_{N})\rightarrow 0 2. \displaystyle N^{-1}\log\Delta_{N}^{*}(\mathcal{A}_{N})\rightarrow 0 Then \sup_{\pi\in\mathcal{A}_{N}}\sum_{A\in\pi}|\lambda_{N}(A)-\lambda(A)|\rightarrow 0 (16) with probability one. We now adapt the problem setting of ( 24 ) to our setting. A \displaystyle N -sample partitioning rule \displaystyle\pi_{N} for \displaystyle\mathcal{Z} is a function that associates every \displaystyle N -set \displaystyle\mathcal{D}_{N} of \displaystyle\mathcal{Z}^{N} with a measurable partition \displaystyle\pi(\mathcal{D}_{N}) of \displaystyle\mathcal{Z} , Let \displaystyle\Pi=\{\pi_{1},\pi_{2},\dots\} be a partition scheme, defined as a sequence of partitioning rules. Every partitioning rule \displaystyle\pi_{N} is associated to a fixed non-random family of partitions \displaystyle\mathcal{A}=\{\pi_{N}(\mathcal{D}_{N}):\mathcal{D}_{N}\in\mathcal{Z}\} , and every partitioning scheme is associated with a sequence \displaystyle\{\ \mathcal{A}_{1},\mathcal{A}_{2},\dots\} . C.1 Truncation of \displaystyle\mathcal{Z} The following lemma is used to ensure consistency between the tree algorithm and the truncation of \displaystyle\mathcal{Y} . Lemma C.2 (Mass capture of the empirical min–max box) . Let \displaystyle(\Omega,\mathcal{A},\mathbb{P}) be a probability triple. Let \displaystyle\omega\in\Omega , \displaystyle Y\in\mathcal{Y} , with \displaystyle\mathcal{Y}:=\mathbb{R}^{d_{y,c}} have distribution \displaystyle\mathbb{P}_{Y} and let \displaystyle Y_{1},Y_{2},\dots be i.i.d. copies of \displaystyle Y . Fix any deterministic padding sequence \displaystyle\delta_{N}\geq 0 . Define for each coordinate \displaystyle j : \underline{y}_{N,j}:=\min_{1\leq i\leq N}(Y_{i})_{j},\qquad\overline{y}_{N,j}:=\max_{1\leq i\leq N}(Y_{i})_{j}, and the random axis-aligned box \bar{\mathcal{Y}}_{N}:=\prod_{j=1}^{d_{y,c}}\big[\underline{y}_{N,j}-\delta_{N},\ \overline{y}_{N,j}+\delta_{N}\big]. Then \mathbb{P}_{Y}(\bar{\mathcal{Y}}_{N}^{c})\ \xrightarrow{N\to\infty}{}\ 0\qquad\text{almost surely.} Proof. Take \displaystyle\epsilon\in(0,1) and set \displaystyle\alpha=\frac{\epsilon}{2d_{y}} . For each coordinate \displaystyle j\in\{1,\dots,d_{y,c}\} define the marginal Cumulative Distribution Function (CDF): F_{j}(t):=\mathbb{P}(Y_{j}\leq t) And the \displaystyle\alpha and \displaystyle 1-\alpha quantiles: q^{-}_{j}=\inf\{t:F_{j}(t)\geq\alpha\},\quad q^{+}_{j}=\inf\{t:F_{j}(t)\geq 1-\alpha\} Consider the minimum and maximum observed values: y^{-}_{N,j}=\min_{1\leq i\leq N}(Y_{i})_{j},\quad y^{+}_{N,j}=\max_{1\leq i\leq N}(Y_{i})_{j} Consider the bad events: E^{-}_{N,j}:=\{y^{-}_{N,j}>q^{-}_{j}\},\quad E^{+}_{N,j}:=\{y^{+}_{N,j}q^{-}_{j})=\mathbb{P}(Y_{j}>q^{-}_{j})^{N}=(1-F_{j}(q^{-}_{j}))^{N}\leq(1-\alpha)^{N} and \displaystyle\mathbb{P}(E^{+}_{N,j})=\mathbb{P}(y^{+}_{N,j}q^{+}_{j}\}) we use the union bound: \mathbb{P}(\bar{\mathcal{Y}}_{N}(\omega)^{c})\leq\mathbb{P}_{Y}(\prod_{j=1}^{d_{y,c}}[q^{-}_{j},q^{+}_{j}]^{c})\leq\sum_{j=1}^{d_{y,c}}(\mathbb{P}_{Y}(Y_{j}q^{+}_{j}))\leq\sum_{j=1}^{d_{y,c}}2\alpha=\epsilon Since \displaystyle\epsilon is arbitrary, we conclude \displaystyle\mathbb{P}_{Y}(\bar{\mathcal{Y}}_{N}^{c})\to 0 almost surely. ∎ Lemma C.2 applies to continuous \displaystyle\mathcal{Y} . For categorical coordinates, we do not truncate and do not need to worry about them. Therefore, if \displaystyle\mathcal{Y} is composed of a product of continuous and categorical dimensions, the Lemma also applies. The following proposition suggests that it is enough to study the consistency on \displaystyle\bar{\mathcal{Z}}_{N} if such a random axis-aligned box is used: C.2 Uniform bound for VC Dimension of X Partitions In the main proof regarding consistency of data-driven partitions of \displaystyle\mathcal{Z} , the bound proven in the Lemma C.3 will be used. Lemma C.3 (Almost-sure uniform VC deviation for \displaystyle\hat{\mathbb{P}}_{X} ) . Let \displaystyle\mathcal{C}_{X} have VC dimension \displaystyle V_{X}<\infty . Then with probability one, for all sufficiently large \displaystyle N , \sup_{U\in\mathcal{C}_{X}}|\hat{\mathbb{P}}_{X}(U)-\mathbb{P}_{X}(U)|\ \leq\ \sqrt{\frac{8}{N}\Big(V_{X}\log(2eN/V_{X})+\log(4N^{2})\Big)}\ =\ O\!\Big(\sqrt{\tfrac{\log N}{N}}\Big). Proof. Let \displaystyle\mathcal{F}:=\{\mathbf{1}_{U}:\ U\in\mathcal{C}_{X}\} . For \displaystyle f\in\mathcal{F} , write \displaystyle\mathbb{P}f:=\mathbb{E}[f(X)] and \displaystyle\widehat{\mathbb{P}}f:=\frac{1}{N}\sum_{i=1}^{N}f(X_{i}) . Step 1: Symmetrization. Let \displaystyle X_{1}^{\prime},\dots,X_{N}^{\prime} be an independent ghost sample with law \displaystyle\mathbb{P}_{X} , and let \displaystyle\widehat{\mathbb{P}}^{\prime}f:=\frac{1}{N}\sum_{i=1}^{N}f(X_{i}^{\prime}) . For every \displaystyle\varepsilon>0 , \mathbb{P}\!\Big(\sup_{f\in\mathcal{F}}|\widehat{\mathbb{P}}f-\mathbb{P}f|>\varepsilon\Big)\ \leq\ 2\,\mathbb{P}\!\Big(\sup_{f\in\mathcal{F}}|\widehat{\mathbb{P}}f-\widehat{\mathbb{P}}^{\prime}f|>\varepsilon/2\Big). (17) Step 2: Finite reduction and Hoeffding. Condition on the realized \displaystyle 2N points \displaystyle(X_{1},\dots,X_{N},X_{1}^{\prime},\dots,X_{N}^{\prime}) . The supremum over \displaystyle f\in\mathcal{F} depends only on the induced labeling of these \displaystyle 2N points, hence is a maximum over at most \displaystyle\Delta_{\mathcal{C}_{X}}(2N) labelings. For a fixed labeling (equivalently, fixed \displaystyle f ), the difference \displaystyle\widehat{\mathbb{P}}f-\widehat{\mathbb{P}}^{\prime}f is an average of \displaystyle N independent mean-zero terms in \displaystyle[-1,1] , so Hoeffding gives \mathbb{P}\!\Big(|\widehat{\mathbb{P}}f-\widehat{\mathbb{P}}^{\prime}f|>\varepsilon/2\Big)\leq 2\exp\!\Big(-\frac{N\varepsilon^{2}}{8}\Big). A union bound over at most \displaystyle\Delta_{\mathcal{C}_{X}}(2N) labelings and then ( 17 ) yield \mathbb{P}\!\Big(\sup_{U\in\mathcal{C}_{X}}|\hat{\mathbb{P}}_{X}(U)-\mathbb{P}_{X}(U)|>\varepsilon\Big)\ \leq\ 4\,\Delta_{\mathcal{C}_{X}}(2N)\exp\!\Big(-\frac{N\varepsilon^{2}}{8}\Big). (18) Step 3: Sauer–Shelah. Since \displaystyle\mathrm{VCdim}(\mathcal{C}_{X})=V_{X} , Sauer–Shelah implies for \displaystyle N\geq V_{X} , \Delta_{\mathcal{C}_{X}}(2N)\ \leq\ \Big(\frac{2eN}{V_{X}}\Big)^{V_{X}}. Substituting into ( 18 ) gives, for \displaystyle N\geq V_{X} , \mathbb{P}\!\Big(\sup_{U\in\mathcal{C}_{X}}|\hat{\mathbb{P}}_{X}(U)-\mathbb{P}_{X}(U)|>\varepsilon\Big)\ \leq\ 4\Big(\frac{2eN}{V_{X}}\Big)^{V_{X}}\exp\!\Big(-\frac{N\varepsilon^{2}}{8}\Big). (19) Part (1): High-probability bound. Choose \displaystyle\varepsilon=\varepsilon_{N}(\delta) so that the right-hand side of ( 19 ) is at most \displaystyle\delta : \varepsilon_{N}(\delta):=\sqrt{\frac{8}{N}\Big(V_{X}\log(2eN/V_{X})+\log(4/\delta)\Big)}. Then \mathbb{P}\!\Big(\sup_{U\in\mathcal{C}_{X}}|\hat{\mathbb{P}}_{X}(U)-\mathbb{P}_{X}(U)|>\varepsilon_{N}(\delta)\Big)\leq\delta, . Part (2): Almost-sure bound (Borel–Cantelli). Set \displaystyle\delta_{N}:=N^{-2} and apply (1) with \displaystyle\delta=\delta_{N} : \mathbb{P}\!\Big(\sup_{U\in\mathcal{C}_{X}}|\hat{\mathbb{P}}_{X}(U)-\mathbb{P}_{X}(U)|>\varepsilon_{N}(\delta_{N})\Big)\ \leq\ \delta_{N}. Since \displaystyle\sum_{N\geq 1}\delta_{N}<\infty , Borel–Cantelli implies that with probability one, only finitely many of these events occur; equivalently, almost surely for all large \displaystyle N , \sup_{U\in\mathcal{C}_{X}}|\hat{\mathbb{P}}_{X}(U)-\mathbb{P}_{X}(U)|\ \leq\ \varepsilon_{N}(\delta_{N}). Finally, \varepsilon_{N}(\delta_{N})=\sqrt{\frac{8}{N}\Big(V_{X}\log(2eN/V_{X})+\log(4N^{2})\Big)}=:\varepsilon_{N}^{\mathrm{a.s.}}=O\left(\sqrt{\log N/N}\right) for all sufficiently large \displaystyle N . ∎ C.3 Proof of Theorem 3.1 We now state the proof of the consistency theorem of data-driven partitions. For mixed spaces, we use a product metric that treats categorical coordinates with Hamming distance: d_{\mathrm{Ham}}(u,v):=\mathbf{1}\{u\neq v\}. Define for \displaystyle z=(x,y) and \displaystyle z^{\prime}=(x^{\prime},y^{\prime}) : \displaystyle\displaystyle d_{\mathcal{Z}}(z,z^{\prime}) \displaystyle\displaystyle:=\phi(\big\|(x^{(c)},y^{(c)})-(x^{\prime(c)},y^{\prime(c)})\big\|_{2}) \displaystyle\displaystyle+\sum_{j=1}^{d_{x,k}}d_{\mathrm{Ham}}(x^{(k)}_{j},x^{\prime(k)}_{j}) \displaystyle\displaystyle+\sum_{j=1}^{d_{y,k}}d_{\mathrm{Ham}}(y^{(k)}_{j},y^{\prime(k)}_{j}). Then \displaystyle\mathrm{dist}_{d_{\mathcal{Z}}}(z,S):=\inf_{u\in S}d_{\mathcal{Z}}(z,u) for \displaystyle S\subset\mathcal{Z} . See 3.1 Proof of Theorem 3.1 . Let \displaystyle\bar{\mathcal{Y}}_{N} be defined as in ( 6 ) and set \displaystyle\bar{\mathcal{Z}}_{N}:=\mathcal{X}\times\bar{\mathcal{Y}}_{N} . We can write: \|f_{N}-f\|_{L^{1}(\nu)}=\int_{\mathcal{X}}\int_{\bar{\mathcal{Y}}_{N}}\!|f_{N}-f|\,d\mu_{Y}\,d\mathbb{P}_{X}+\int_{\mathcal{X}}\int_{\bar{\mathcal{Y}}_{N}^{\,c}}\!|f_{N}-f|\,d\mu_{Y}\,d\mathbb{P}_{X}. Since \displaystyle f_{N}=0 on \displaystyle\bar{\mathcal{Z}}_{N}^{C} , the last term equals \displaystyle\mathbb{P}_{Y}(\bar{\mathcal{Y}}_{N}^{C}) , which goes to zero almost surely as \displaystyle N\to\infty according to Lemma C.2 . Therefore, we can focus on \displaystyle\|f_{N}-f\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})} . Let: f_{N}^{\prime}(z)=\frac{\hat{\mathbb{P}}_{XY}(\pi_{N}[z])}{\mathbb{P}_{X}(\pi_{N}[z])\mu_{Y}(\pi_{N}[z])},\quad f^{*}_{N}=\frac{\mathbb{P}_{XY}(\pi_{N}[z])}{\mathbb{P}_{X}(\pi_{N}[z])\mu_{Y}(\pi_{N}[z])} By triangle inequality: ||f_{N}-f||_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}\leq\underbrace{\|f_{N}-f_{N}^{\prime}\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}}_{(\mathrm{I})}+\underbrace{\|f_{N}^{\prime}-f^{*}_{N}\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}}_{(\mathrm{II})}+\underbrace{\|f^{*}_{N}-f\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}}_{(\mathrm{III})}. Bounding \displaystyle(I) \displaystyle\displaystyle\|f_{N}-f_{N}^{\prime}\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})} \displaystyle\displaystyle=\|\frac{\hat{\mathbb{P}}_{XY}}{\hat{\mathbb{P}}_{X}\mu_{Y}}-\frac{\hat{\mathbb{P}}_{XY}}{\mathbb{P}_{X}\mu_{Y}}\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}=\|\frac{\hat{\mathbb{P}}_{XY}}{\mathbb{P}_{X}\mu_{Y}}\left(\frac{\mathbb{P}_{X}-\hat{\mathbb{P}}_{X}}{\hat{\mathbb{P}}_{X}}\right)\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})} \displaystyle\displaystyle=\sum\limits_{A\in\pi_{N}}|\frac{\hat{\mathbb{P}}_{XY}(A)}{\mathbb{P}_{X}(A)\mu_{Y}(A)}\left(\frac{\mathbb{P}_{X}(A)-\hat{\mathbb{P}}_{X}(A)}{\hat{\mathbb{P}}_{X}(A)}\right)|\mathbb{P}_{X}(A)\mu_{Y}(A) \displaystyle\displaystyle=\sum\limits_{A\in\pi_{N}}|\frac{\hat{\mathbb{P}}_{XY}(A)}{\hat{\mathbb{P}}_{X}(A)}(\mathbb{P}_{X}(A)-\hat{\mathbb{P}}_{X}(A))| The key point is that the \displaystyle A_{X} ’s may overlap, so we cannot invoke a partition-based bound on the sum. Instead, we group terms by distinct projected sets. Let \displaystyle\mathcal{C}_{X} denote the collection of all covariate regions in \displaystyle\mathcal{X} that can arise as the \displaystyle X -projection of a leaf by iterating the permitted split tests (axis-aligned threshold splits for continuous features and subset-membership splits for categorical features). Assume that \displaystyle\mathcal{C}_{X} has finite VC dimension, and denote \displaystyle V_{X}:=\mathrm{VCdim}(\mathcal{C}_{X}) . Let \mathcal{U}(\pi_{N}):=\{A_{X}:\ A\in\pi_{N}\}\subseteq\mathcal{C}_{X}, and for each \displaystyle U\in\mathcal{U}(\pi_{N}) define w_{U}:=\sum_{A\in\pi_{N}:\ A_{X}=U}\frac{\widehat{\mathbb{P}}_{XY}(A)}{\hat{\mathbb{P}}_{X}(U)}. Because \displaystyle\bigcup_{A:\,A_{X}=U}A\subseteq U\times\mathcal{Y} and empirical mass is additive over disjoint leaves, \sum_{A:\,A_{X}=U}\widehat{\mathbb{P}}_{XY}(A)\ \leq\ \widehat{\mathbb{P}}_{XY}(U\times\bar{\mathcal{Y}}_{N})=\hat{\mathbb{P}}_{X}(U), hence \displaystyle 0\leq w_{U}\leq 1 . Therefore \displaystyle\displaystyle\|f_{N}-f_{N}^{\prime}\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})} \displaystyle\displaystyle=\sum_{U\in\mathcal{U}(\pi_{N})}w_{U}\,\big|\mathbb{P}_{X}(U)-\hat{\mathbb{P}}_{X}(U)\big|\ \leq\ \sum_{U\in\mathcal{U}(\pi_{N})}\big|\mathbb{P}_{X}(U)-\hat{\mathbb{P}}_{X}(U)\big| \displaystyle\displaystyle\leq|\mathcal{U}(\pi_{N})|\cdot\sup_{U\in\mathcal{C}_{X}}\big|\mathbb{P}_{X}(U)-\hat{\mathbb{P}}_{X}(U)\big|. Now apply Lemma C.3 : \displaystyle\sup_{U\in\mathcal{C}_{X}}\big|\mathbb{P}_{X}(U)-\hat{\mathbb{P}}_{X}(U)\big| is almost surely bounded with rate \displaystyle O(\sqrt{\log N/N}) . Also, \displaystyle\mathcal{U}(\pi_{N})\leq m_{X}(\mathcal{A}_{N}) . Consequently, if m_{X}(\mathcal{A}_{N})\,\sqrt{\frac{\log N}{N}}\ \longrightarrow\ 0, then by condition 4. \displaystyle(\mathrm{I})=\|f_{N}-f_{N}^{\prime}\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}\to 0 almost surely. Bounding \displaystyle(II) \displaystyle\displaystyle\|f_{N}^{\prime}-f^{*}_{N}\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}=\|\frac{1}{\mathbb{P}_{X}\mu_{Y}}(\hat{\mathbb{P}}_{XY}-\mathbb{P}_{XY})\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}=\sum_{A\in\pi_{N}}|\hat{\mathbb{P}}_{XY}(A)-\mathbb{P}_{XY}(A)| Applying Corollary C.1 and conditions 1 and 2, this term also converges to 0. Bounding \displaystyle(III) To bound the term \displaystyle(III) , we use a similar strategy to ( 24 ) , but in a more general setting where \displaystyle\mathcal{X}\times\mathcal{Y} can be composed of integer-valued, discrete, or categorical dimensions. Since \displaystyle(\mathcal{Z},d_{\mathcal{Z}}) is a separable metric space and \displaystyle\nu is a Borel measure, for every \displaystyle\varepsilon>0 there exists a nonnegative simple function \displaystyle g=\sum_{j=1}^{J}a_{j}\mathbf{1}_{G_{j}} with pairwise disjoint \displaystyle G_{j}\subseteq\mathcal{Z} and \displaystyle\nu(\partial G_{j})=0 such that \|f-g\|_{L^{1}(\nu)}<\varepsilon. In particular, \|f-g\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}\leq\|f-g\|_{L^{1}(\nu)}<\varepsilon. Define g_{N}(z):=\frac{\int_{\pi_{N}[z]}g\,d\nu}{\nu(\pi_{N}[z])}. We split \displaystyle(III) into three components, based on these newly introduced functions \displaystyle g and \displaystyle g_{N} : \|f^{*}_{N}-f\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}\leq\underbrace{\|f^{*}_{N}-g_{N}\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}}_{(*)}+\underbrace{\|g_{N}-g\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}}_{(\dagger)}+\underbrace{\|g-f\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}}_{<\varepsilon} The third term is bounded by definition. Bounding \displaystyle(*) : \displaystyle\displaystyle\|f^{*}_{N}-g_{N}\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})} \displaystyle\displaystyle=\int_{\bar{\mathcal{Z}}_{N}}|f^{*}_{N}-g_{N}|\,d\nu=\sum_{A\in\pi_{N}}|\int_{A}f\,d\nu-\int_{A}g\,d\nu| (20) \displaystyle\displaystyle\leq\sum_{A\in\pi_{N}}\int_{A}|f-g|\,d\nu=\int_{\bar{\mathcal{Z}}_{N}}|f-g|\,d\nu<\varepsilon (21) To bound \displaystyle(\dagger) , let \displaystyle M:=\|g\|_{\infty}=\max\limits_{j\in\{1,\dots,J\}}a_{j} . Let \displaystyle\partial G_{j} denote the topological boundary of \displaystyle G_{j} , \displaystyle\nu(\partial G_{j})=0 for all \displaystyle j\in\{1,\dots,J\} . Choose \displaystyle 1>\eta>0 and define two sets: U(\eta):=\bigcup_{j=1}^{J}\{z\in\bar{\mathcal{Z}}_{N}:\ \mathrm{dist}_{d_{\mathcal{Z}}}(z,\partial G_{j})\leq\eta\} D_{N}(\eta)=D_{N}^{cont}(\eta)\cup D_{N}^{cat} where \displaystyle D_{N}^{\mathrm{cont}}(\eta)=\{z\in\bar{\mathcal{Z}}_{N}:\ \mathrm{diam}_{cont}(\pi_{N}[z])>\eta\} and \displaystyle D_{N}^{\mathrm{cat}}=\{z:\ \exists k\ \text{s.t.}\ |S_{k}(\pi_{N}[z])|>1\} . We study \displaystyle(\dagger) in two disjoint domains: \displaystyle\bar{\mathcal{Z}}_{N}\setminus(U(\eta)\cup D_{N}(\eta)) and \displaystyle U(\eta)\cup D_{N}(\eta) . Claim 1 . For all, \displaystyle z\in\bar{\mathcal{Z}}_{N}\setminus(U(\eta)\cup D_{N}(\eta)) we have \displaystyle g_{N}=g and \displaystyle\int_{\bar{\mathcal{Z}}_{N}\setminus(U(\eta)\cup D_{N}(\eta))}|g_{N}-g|d\nu=0 . Proof. Pick \displaystyle z\in\bar{\mathcal{Z}}_{N}\setminus U(\eta) . Then there exists a \displaystyle G_{j} such that \displaystyle z\in G_{j} and \displaystyle\mathrm{dist}_{d_{\mathcal{Z}}}(z,\partial G_{j})>\eta . Let \displaystyle B(z,\eta)\subseteq G_{j} denote a ball of radius \displaystyle\eta centered on \displaystyle z . If, in addition, \displaystyle z\notin D_{N}(\eta) then (i) \displaystyle|S_{k}(\pi_{N}[z])|=1 for every categorical coordinate \displaystyle k , so \displaystyle d_{\mathcal{Z}}(z,u)=d_{\mathrm{cont}}(z,u) for all \displaystyle u\in\pi_{N}[z] , and (ii) \displaystyle\mathrm{diam}_{cont}(\pi_{N}[z])\leq\eta , hence \displaystyle d_{\mathrm{cont}}(z,u)\leq\eta for all \displaystyle u\in\pi_{N}[z] . Therefore \displaystyle d_{\mathcal{Z}}(z,u)\leq\eta for all \displaystyle u\in\pi_{N}[z] , i.e. \displaystyle\pi_{N}[z]\subseteq B(z,\eta) . Hence \displaystyle\pi_{N}[z]\subseteq B(z,\eta)\subseteq G_{j} . This implies \displaystyle g=a_{j} on \displaystyle\pi_{N}[z] and \displaystyle g_{N}=g . ∎ Now we focus on \displaystyle z\in U(\eta)\cup D_{N}(\eta) . With the claim above, we have: \displaystyle\displaystyle\|g_{N}-g\|_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})} \displaystyle\displaystyle\leq\int_{U(\eta)\cup D_{N}(\eta)}|g_{N}-g|d\nu\leq\int_{D_{N}(\eta)}|g_{N}-g|d\nu+\int_{U(\eta)}|g_{N}-g|d\nu (22) Since \displaystyle\partial G_{j} is closed and \displaystyle\nu(\partial G_{j})=0 , we have \{z:\mathrm{dist}_{d_{\mathcal{Z}}}(z,\partial G_{j})\leq\eta\}\downarrow\partial G_{j}\quad(\eta\downarrow 0), hence by continuity from above for finite measures, \displaystyle\nu(\{z:\mathrm{dist}_{d_{\mathcal{Z}}}(z,\partial G_{j})\leq\eta\})\to\nu(\partial G_{j})=0 . Therefore \displaystyle\nu(U(\eta))\to 0 as \displaystyle\eta\downarrow 0 . Since \displaystyle|g|\leq M and \displaystyle|g_{N}|\leq M , the second term of ( 22 ) goes to zero as \displaystyle\eta\to 0 : \int_{U(\eta)}|g_{N}-g|d\nu\leq 2M\int_{U(\eta)}d\nu=2M\nu(U(\eta))\xrightarrow{\eta\to 0}0 Let \displaystyle\pi_{N}^{\eta}:=\{A\in\pi_{N}:\ \mathrm{diam}_{cont}(A)>\eta\ \text{ or }\ \exists k\ \text{s.t.}\ |S_{k}(A)|>1\} . With respect to the first term of ( 22 ): \displaystyle\displaystyle\int_{D_{N}(\eta)}|g_{N}-g|d\nu \displaystyle\displaystyle\leq 2\int_{D_{N}(\eta)}|g_{N}|+|g|d\nu=2\int_{D_{N}(\eta)}|g|d\nu (23) \displaystyle\displaystyle=2\int_{D_{N}(\eta)}|g-f+f|d\nu (24) \displaystyle\displaystyle\leq 2\mathbb{P}_{XY}(D_{N}(\eta))+2\int_{D_{N}(\eta)}|g-f|d\nu (25) \displaystyle\displaystyle<2\mathbb{P}_{XY}(D_{N}(\eta))+2\varepsilon (26) We now show how condition 3 implies that the first term goes to zero as \displaystyle N tends to infinity. Fix any \displaystyle\eta>0 . Let \displaystyle c_{min}=\min_{k}\frac{1}{|\Sigma_{k}|-1} denote the minimum length of a cell of \displaystyle\pi_{N} along a categorical dimension. Let \displaystyle\gamma_{N}<\min(\eta,c_{min}) . Then: 1. If \displaystyle z\in D_{N}^{cont}(\eta) , then \displaystyle\mathrm{diam}(\pi_{N}[z])\geq\mathrm{diam}_{cont}(\pi_{N}[z])>\eta>\gamma_{N} 2. If \displaystyle z\in D_{N}^{cat} , then \displaystyle\mathrm{diam}(\pi_{N}[z])\geq c_{min}>\gamma_{N} For all large \displaystyle N : D_{N}(\eta)\subseteq\{z\in\bar{\mathcal{Z}}_{N}:\mathrm{diam}(\pi_{N}[z])>\gamma_{N}\} so \displaystyle\mathbb{P}_{XY}(D_{N}(\eta))<\mathbb{P}_{XY}(\{z:\mathrm{diam}(\pi_{N}[z])>\gamma_{N}\})\xrightarrow{N\to\infty}{0} . This finishes the proof for \displaystyle(\dagger) . Finally, we have, as \displaystyle N\to\infty : ||f_{N}-f||_{L^{1}(\nu;\bar{\mathcal{Z}}_{N})}<4\varepsilon (27) Since \displaystyle\epsilon is arbitrary, this proves the convergence for \displaystyle\dagger and therefore the proof is concluded. ∎ C.4 Hybrid Tree Algorithm Satisfies Conditions for Consistency In this section, we show that the proposed algorithm satisfies the conditions for consistency. Lemma C.4 . Consider a tree algorithm that partitions \displaystyle\bar{\mathcal{Z}}_{N} with a maximum budget of \displaystyle k_{N} splits. If \displaystyle k_{N}=o(\sqrt{\frac{N}{\log N}}) , \displaystyle k_{N}\to\infty , then conditions 1., 2. and 4. of Theorem 3.1 are met. Proof. To check condition 1, note that with \displaystyle k splits, there are \displaystyle k+1 leaves and and \displaystyle m(\mathcal{A}_{N})=\sup\limits_{\pi\in\mathcal{A}_{N}}|\pi|=k+1 . Then \displaystyle N^{-1}m(\mathcal{A}_{N})\to 0 as \displaystyle N\to\infty whenever \displaystyle k_{N}=o(N) , which is satisfied by \displaystyle o(\sqrt{N/\log(N)}) . Now, we verify condition 2. Each split partitions the current sample indices by one coordinate test. For a continuous coordinate, the number of distinct dichotomies on \displaystyle N points is at most \displaystyle N (threshold between two consecutive sorted values). For a categorical coordinate with finite alphabet size \displaystyle q , the number of distinct subset splits is at most \displaystyle 2^{q}-2 , which is a constant independent of \displaystyle N . Let \displaystyle d_{\mathrm{thr}} be the number of coordinates eligible for threshold splits, and let \displaystyle C_{\mathrm{cat}}:=\sum_{j=1}^{d_{\mathrm{cat}}}(2^{q_{j}}-2) be the total number of categorical subset tests across categorical coordinates (finite alphabets). Then the number of distinct 2-way splits available at any node is at most S_{N}\ \leq\ N^{d_{\mathrm{thr}}}\cdot(1+C_{\mathrm{cat}}), hence a crude upper bound for the growth function of \displaystyle k -split trees is \Delta^{*}_{N}(\mathcal{A}_{N})\ \leq\ (S_{N})^{k+1}. Therefore, \frac{1}{N}\log\Delta^{*}_{N}(\mathcal{A}_{N})\ \leq\ \frac{k+1}{N}\Big(d_{\mathrm{thr}}\log N+\log(1+C_{\mathrm{cat}})\Big), The RHS goes to zero if \displaystyle k=o(N/\log N) , which is also satisfied by \displaystyle k=o(\sqrt{N/\log N}) , and we have checked condition 2. With respect to condition 4, under axis-aligned threshold splits on ( \displaystyle\mathbb{R}^{d_{c}} ) and subset-membership splits on categorical coordinates with finite alphabets, each leaf (X)-region is a product of an axis-aligned rectangle and a categorical cylinder set. Hence the induced class ( \displaystyle\mathcal{C}_{X} ) has finite VC dimension. Also, we have that \displaystyle m_{X}(\mathcal{A}_{N})\leq m(\mathcal{A}_{N}) , then \displaystyle k_{N}=o(\sqrt{\frac{N}{\log N}})\implies m_{X}(\mathcal{A}_{N})\sqrt{\frac{\log N}{N}}\to 0 . ∎ Lemma C.4 showed that the tree algorithm can satisfy conditions 1,2, and 4. We now show that under some conditions, the tree algorithm also satisfies condition 3. For condition 3, we need a splitting strategy that guarantees the shrinkage of cell sizes. The negative log-likelihood gain might not achieve this, since there might be distributions where one-step gain is zero, but there is a non-negligible oscillation of the conditional density. Exploration contraction assumption. Throughout this appendix, whenever the hybrid tree construction is considered, we assume that every exploration split satisfies the uniform contraction property stated in Theorem 3.2 , i.e., \max(\mathrm{diam}(A_{1}),\mathrm{diam}(A_{r}))\leq\rho\,\mathrm{diam}(A)\quad\text{for some }\rho\in[1/2,1). Lemma C.5 (Deterministic shrinkage under greedy splitting of the largest leaf) . Let \displaystyle\pi_{N} be constructed by starting from \displaystyle\bar{\mathcal{Z}}_{N} and performing \displaystyle k_{N,e} splits, with \displaystyle k_{N,e}\to\infty as \displaystyle N\to\infty . Assume: (i) at each step, the algorithm splits a current leaf \displaystyle A with the largest diameter (ties arbitrary); and (ii) every split \displaystyle A\to\{A_{l},A_{r}\} satisfies \max\big(\mathrm{diam}(A_{l}),\mathrm{diam}(A_{r})\big)\ \leq\ \rho\,\mathrm{diam}(A)\qquad\text{for some }\rho\in[0.5,1). Then, letting \displaystyle n_{s}:=\lfloor\log_{2}(k_{N,e}+1)\rfloor and \displaystyle\gamma_{N}=\mathrm{diam}(\bar{\mathcal{Z}}_{N})\,\rho^{\,n_{s}} \mathbb{P}_{XY}(\{z\in\bar{\mathcal{Z}}_{N}:\mathrm{diam}(\pi_{N}[z])>\gamma_{N}\})=0 Proof. Define \displaystyle M_{s}:=\max_{A\in\pi_{N}^{(s)}}\mathrm{diam}(A) as the maximum leaf diameter after \displaystyle s splits, where \displaystyle\pi_{N}^{(0)}=\{\bar{\mathcal{Z}}_{N}\} and \displaystyle\pi_{N}^{(k_{N,e})}=\pi_{N} . We prove by induction on \displaystyle m\geq 0 that M_{2^{m}-1}\ \leq\ \mathrm{diam}(\bar{\mathcal{Z}}_{N})\,\rho^{m}. (28) Base case \displaystyle m=0 . Here \displaystyle 2^{0}-1=0 and \displaystyle M_{0}=\mathrm{diam}(\bar{\mathcal{Z}}_{N})=\mathrm{diam}(\bar{\mathcal{Z}}_{N})\rho^{0} . Inductive step. Assume ( 28 ) holds for some \displaystyle m . At time \displaystyle 2^{m}-1 , there are exactly \displaystyle 2^{m} leaves, and each has diameter at most \displaystyle M_{2^{m}-1}\leq\mathrm{diam}(\bar{\mathcal{Z}}_{N})\rho^{m} . Now perform the next \displaystyle 2^{m} splits, i.e., go from \displaystyle 2^{m}-1 splits to \displaystyle 2^{m+1}-1 splits. Each split is applied to a leaf of the current maximum diameter (by assumption), and each child has a diameter at most \displaystyle\rho times its parent. Since every parent split during this stage has a diameter at most \displaystyle\mathrm{diam}(\bar{\mathcal{Z}}_{N})\rho^{m} , every newly created leaf has diameter at most \displaystyle\mathrm{diam}(\bar{\mathcal{Z}}_{N})\rho^{m+1} . It remains to show that after these \displaystyle 2^{m} greedy splits, there cannot remain any leaf with diameter exceeding \displaystyle\mathrm{diam}(\bar{\mathcal{Z}}_{N})\rho^{m+1} . Suppose, toward a contradiction, that some leaf \displaystyle B with \displaystyle\mathrm{diam}(B)>\mathrm{diam}(\bar{\mathcal{Z}}_{N})\rho^{m+1} remains unsplit throughout this stage. All new leaves created during this stage have a diameter of at most \displaystyle\mathrm{diam}(\bar{\mathcal{Z}}_{N})\rho^{m+1} , hence strictly smaller than \displaystyle\mathrm{diam}(B) . Therefore, at each split time during this stage, \displaystyle B would be among the leaves of maximal diameter and must be selected by the greedy rule, contradicting that it was never split. Thus, at time \displaystyle 2^{m+1}-1 , all leaves have diameter at most \displaystyle\mathrm{diam}(\bar{\mathcal{Z}}_{N})\rho^{m+1} , proving ( 28 ) for \displaystyle m+1 . This completes the induction. Now set \displaystyle n_{s}=\lfloor\log_{2}(k_{N,e}+1)\rfloor . Then \displaystyle 2^{n_{s}}-1\leq k_{N,e} , and since splitting cannot increase the maximum diameter under the contraction property, \sup_{A\in\pi_{N}}\mathrm{diam}(A)=M_{k_{N,e}}\ \leq\ M_{2^{n_{s}}-1}\ \leq\ \mathrm{diam}(\bar{\mathcal{Z}}_{N})\rho^{n_{s}}. Note that for the diameter definition \displaystyle\mathrm{diam}(\mathcal{Z})<\infty , and \displaystyle\mathrm{diam}(\bar{\mathcal{Z}}_{N})\leq\mathrm{diam}(\mathcal{Z}) . Therefore, setting \displaystyle\gamma_{N}=\mathrm{diam}(\bar{\mathcal{Z}}_{N})\rho^{\lfloor\log_{2}(k_{N,e}+1)\rfloor} we have the desired result. ∎ Finally, we can use Theorem 3.1 and Lemmas C.5 and C.4 to prove the Theorem 3.2 . See 3.2 Proof. The first assumption implies that conditions 1., 2., and 4. of Theorem 3.1 are met (Lemma C.4 ). The second assumption implies condition 3 by Lemma C.5 . ∎ C.5 Normalization preserves \displaystyle L^{1}(\nu) -consistency In practice, we may normalize a nonnegative estimator \displaystyle h_{N}(x,\cdot) to integrate to one with respect to \displaystyle\mu_{Y} . The following lemma shows that this operation does not affect \displaystyle L^{1}(\nu) consistency, where \displaystyle\nu=\mathbb{P}_{X}\otimes\mu_{Y} . Lemma C.6 (Normalization preserves \displaystyle L^{1}(\nu) -consistency) . Let \displaystyle\mu_{Y} be a \displaystyle\sigma -finite measure on \displaystyle\mathcal{Y} and let \displaystyle\nu:=\mathbb{P}_{X}\otimes\mu_{Y} . Assume \displaystyle\mathbb{P}_{XY}\ll\nu and let f:=\frac{d\mathbb{P}_{XY}}{d(\mathbb{P}_{X}\otimes\mu_{Y})}. Let \displaystyle h_{N}:\mathcal{X}\times\mathcal{Y}\to[0,\infty) be measurable and define s_{N}(x):=\int_{\mathcal{Y}}h_{N}(x,y)\,\mu_{Y}(dy),\qquad\bar{h}_{N}(x,y):=\begin{cases}h_{N}(x,y)/s_{N}(x),&s_{N}(x)>0,\\ 0,&s_{N}(x)=0.\end{cases} If \displaystyle\|h_{N}-f\|_{L^{1}(\nu)}\to 0 , then \displaystyle\|\bar{h}_{N}-f\|_{L^{1}(\nu)}\to 0 . Moreover, for all \displaystyle N , \|\bar{h}_{N}-f\|_{L^{1}(\nu)}\;\leq\;6\,\|h_{N}-f\|_{L^{1}(\nu)}. Proof. Define the pointwise \displaystyle L^{1}(\mu_{Y}) error \xi_{N}(x):=\int_{\mathcal{Y}}|h_{N}(x,y)-f(x,y)|\,\mu_{Y}(dy), so that \displaystyle\mathbb{E}_{\mathbb{P}_{X}}[\xi_{N}]=\|h_{N}-f\|_{L^{1}(\nu)} by Tonelli’s theorem. Next define the “good” set E_{N}:=\{x\in\mathcal{X}:\ \xi_{N}(x)\leq 1/2\}. Since \displaystyle\int_{\mathcal{Y}}f(x,y)\,\mu_{Y}(dy)=1 for \displaystyle\mathbb{P}_{X} -a.e. \displaystyle x , we have for such \displaystyle x , |1-s_{N}(x)|=\left|\int_{\mathcal{Y}}\big(f(x,y)-h_{N}(x,y)\big)\,\mu_{Y}(dy)\right|\leq\int_{\mathcal{Y}}|f(x,y)-h_{N}(x,y)|\,\mu_{Y}(dy)=\xi_{N}(x). Hence, on \displaystyle E_{N} we have \displaystyle s_{N}(x)\geq 1-|1-s_{N}(x)|\geq 1-\xi_{N}(x)\geq 1/2 , so \displaystyle\bar{h}_{N} is well-defined there. We decompose the \displaystyle L^{1}(\nu) error into contributions over \displaystyle E_{N} and its complement: \|\bar{h}_{N}-f\|_{L^{1}(\nu)}=\int_{E_{N}}\int_{\mathcal{Y}}|\bar{h}_{N}-f|\,\mu_{Y}(dy)\,\mathbb{P}_{X}(dx)+\int_{E_{N}^{c}}\int_{\mathcal{Y}}|\bar{h}_{N}-f|\,\mu_{Y}(dy)\,\mathbb{P}_{X}(dx). (29) Step 1: bound on \displaystyle E_{N} . Fix \displaystyle x\in E_{N} . Using the triangle inequality, \int_{\mathcal{Y}}|\bar{h}_{N}-f|\,\mu_{Y}(dy)\leq\int_{\mathcal{Y}}|\bar{h}_{N}-h_{N}|\,\mu_{Y}(dy)+\int_{\mathcal{Y}}|h_{N}-f|\,\mu_{Y}(dy)=\int_{\mathcal{Y}}|\bar{h}_{N}-h_{N}|\,\mu_{Y}(dy)+\xi_{N}(x). Moreover, for \displaystyle x\in E_{N} (so \displaystyle s_{N}(x)>0 ), \int_{\mathcal{Y}}|\bar{h}_{N}-h_{N}|\,\mu_{Y}(dy)=\int_{\mathcal{Y}}h_{N}(x,y)\Big|\frac{1}{s_{N}(x)}-1\Big|\,\mu_{Y}(dy)=\Big|\frac{1}{s_{N}(x)}-1\Big|\int_{\mathcal{Y}}h_{N}(x,y)\,\mu_{Y}(dy)=|1-s_{N}(x)|. Combining with \displaystyle|1-s_{N}(x)|\leq\xi_{N}(x) yields \int_{\mathcal{Y}}|\bar{h}_{N}-f|\,\mu_{Y}(dy)\leq 2\,\xi_{N}(x)\qquad\text{for all }x\in E_{N}. Integrating over \displaystyle E_{N} gives \int_{E_{N}}\int_{\mathcal{Y}}|\bar{h}_{N}-f|\,\mu_{Y}(dy)\,\mathbb{P}_{X}(dx)\leq 2\int_{E_{N}}\xi_{N}(x)\,\mathbb{P}_{X}(dx)\leq 2\,\|h_{N}-f\|_{L^{1}(\nu)}. (30) Step 2: bound on \displaystyle E_{N}^{c} . For any \displaystyle x , both \displaystyle f(x,\cdot) and \displaystyle\bar{h}_{N}(x,\cdot) are nonnegative and satisfy \int_{\mathcal{Y}}f(x,y)\,\mu_{Y}(dy)=1\quad\text{and}\quad\int_{\mathcal{Y}}\bar{h}_{N}(x,y)\,\mu_{Y}(dy)\leq 1, where the second inequality follows from the definition of \displaystyle\bar{h}_{N} (it equals \displaystyle 1 when \displaystyle s_{N}(x)>0 and equals \displaystyle 0 otherwise). Therefore, for all \displaystyle x , \int_{\mathcal{Y}}|\bar{h}_{N}-f|\,\mu_{Y}(dy)\leq\int_{\mathcal{Y}}\bar{h}_{N}\,\mu_{Y}(dy)+\int_{\mathcal{Y}}f\,\mu_{Y}(dy)\leq 2. Hence \int_{E_{N}^{c}}\int_{\mathcal{Y}}|\bar{h}_{N}-f|\,\mu_{Y}(dy)\,\mathbb{P}_{X}(dx)\leq 2\,\mathbb{P}_{X}(E_{N}^{c}). (31) It remains to bound \displaystyle\mathbb{P}_{X}(E_{N}^{c}) . By Markov’s inequality, \mathbb{P}_{X}(E_{N}^{c})=\mathbb{P}_{X}\big(\xi_{N}>1/2\big)\leq 2\,\mathbb{E}_{\mathbb{P}_{X}}[\xi_{N}]=2\,\|h_{N}-f\|_{L^{1}(\nu)}. Substituting into ( 31 ) gives \int_{E_{N}^{c}}\int_{\mathcal{Y}}|\bar{h}_{N}-f|\,\mu_{Y}(dy)\,\mathbb{P}_{X}(dx)\leq 4\,\|h_{N}-f\|_{L^{1}(\nu)}. (32) Step 3: conclude. Combining ( 29 ), ( 30 ), and ( 32 ) yields \|\bar{h}_{N}-f\|_{L^{1}(\nu)}\leq 6\,\|h_{N}-f\|_{L^{1}(\nu)}. In particular, if \displaystyle\|h_{N}-f\|_{L^{1}(\nu)}\to 0 , then \displaystyle\|\bar{h}_{N}-f\|_{L^{1}(\nu)}\to 0 . ∎ See 3.3 Proof. Use Theorem 3.1 and Lemma C.6 . ∎ Appendix D Experiments In this appendix, we describe the datasets used in the experiments, the hyperparameter tuning search space, and provide results on classification accuracy and Root mean squared error (RMSE) for regression tasks. D.1 Datasets Tables 3 and 4 summarize the information for the datasets used in this experiment, ordered by sample size. We use datasets ranging from 150 (Iris) to 48842 (Adult) samples in classification. The dataset with the largest alphabet for the target variable is Letter Recognition. In regression, datasets range from 442 (Diabetes) to 45730 samples. Naval Propulsion Plant is the dataset with the largest number of features. Table 3 : Classification datasets ordered by sample size. Dataset Size \displaystyle d_{x} Classes Reference Iris 150 4 3 12 Breast Cancer 286 9 2 36 Wine 1599 11 6 8 Digits 1797 64 10 2 Spam Base 4601 57 2 19 Support2 9105 42 2 17 Letter Recognition 20000 16 26 14 Bank Marketing 45211 16 2 26 Adult 48842 14 4 22 Table 4 : Regression datasets ordered by sample size. Dataset Sample size Features Reference Diabetes 442 10 20 Boston 506 13 18 Energy Efficiency 768 8 31 Concrete Compressive Strength 1030 8 35 Kin8Nm 8192 8 7 Air Quality 9357 12 10 Power Plant 9568 4 32 Naval Propulsion Plant 11934 14 6 California Housing 20640 8 27 Physicochemical Protein 45730 9 29 D.2 Hyperparameter Tuning All methods were tuned using Optuna with 200 trials and a 20-minute timeout per model. Cross-validation employed an 80/20 train-test split within each fold. For classification, the scoring metric was negative log-loss, while for regression, log-loss from the skpro library was used to optimize probabilistic predictions. D.2.1 Classification Methods Partition Tree was tuned over two regularization parameters: the minimum number of samples required at a leaf node ( min_samples_leaf \displaystyle\in[1,100] ) and the minimum number of samples in the feature space at each leaf ( min_samples_leaf_x \displaystyle\in[1,400] ). Partition Forest , the ensemble extension of Partition Tree, included additional hyperparameters controlling the subsampling strategy: the fraction of features to consider at each split ( max_features \displaystyle\in[0.7,1.0] ) and the fraction of samples to draw for each tree ( max_samples \displaystyle\in[0.7,1.0] ), along with the same leaf constraints as Partition Tree. XGBoost was tuned over five hyperparameters: the number of boosting rounds ( n_estimators \displaystyle\in[1,200] ), tree depth ( max_depth \displaystyle\in[1,3] ), learning rate ( learning_rate \displaystyle\in[0.01,0.3] , log-scale), minimum loss reduction for splits ( min_split_loss \displaystyle\in[0.0,5.0] ), and minimum child weight ( min_child_weight \displaystyle\in[1,100] ). Random Forest was tuned over tree depth ( max_depth \displaystyle\in[3,50] ), minimum samples required to split ( min_samples_split \displaystyle\in[2,150] ), and minimum samples at leaf nodes ( min_samples_leaf \displaystyle\in[1,100] ). Decision Tree used the same hyperparameter space as Random Forest, with an additional parameter for minimum impurity decrease ( min_impurity_decrease \displaystyle\in[0.0,0.1] ). NGBoost employed a decision tree regressor as its base learner, following the natural gradient boosting framework. The base learner’s hyperparameters were tuned ( max_depth \displaystyle\in[1,3] , min_samples_split \displaystyle\in[2,150] , min_samples_leaf \displaystyle\in[1,100] ), along with the ensemble parameters ( n_estimators \displaystyle\in[1,200] and learning_rate \displaystyle\in[0.01,0.3] , log-scale). D.2.2 Regression Methods For probabilistic regression, several methods were wrapped with the ResidualDouble framework from skpro, which fits a secondary model to predict residual variance, enabling uncertainty quantification from point estimators. Partition Tree (regression) was tuned over four parameters: the minimum samples in the target space ( min_samples_leaf_y \displaystyle\in[1,400] ), minimum samples in the feature space ( min_samples_leaf_x \displaystyle\in[1,400] ), a boundary expansion factor ( boundaries_expansion_factor \displaystyle\in[0.001,0.1] ) that controls density estimation at partition boundaries, and min_target_volume \displaystyle\in[0.01,0.2] , that limits the minimum volume \displaystyle\mu_{Y}(A_{y}) of a cell to be valid. Partition Forest (regression) included the same parameters as Partition Tree, plus subsampling controls: max_features \displaystyle\in[0.7,1.0] and max_samples \displaystyle\in[0.7,1.0] . XGBoost with ResidualDouble ( 16 ) was tuned over the same hyperparameters as in classification, wrapped with the residual variance estimation framework. Random Forest with ResidualDouble ( 16 ) was tuned over tree depth ( max_depth \displaystyle\in[3,50] ), minimum samples to split ( min_samples_split \displaystyle\in[2,150] ), minimum samples at leaves ( min_samples_leaf \displaystyle\in[1,100] ), minimum impurity decrease ( min_impurity_decrease \displaystyle\in[0.0,0.1] ), and maximum features ( max_features \displaystyle\in[0.5,1.0] ). Decision Tree with ResidualDouble was tuned over depth, split constraints, leaf size, and impurity decrease, using the same ranges as Random Forest. NGBoost for regression used a decision tree regressor as its base learner with the same hyperparameter space as in classification. CADET was tuned over tree depth ( max_depth \displaystyle\in[3,50] ), minimum samples to split ( min_samples_split \displaystyle\in[2,150] ), and minimum samples at leaves ( min_samples_leaf \displaystyle\in[1,100] ). CDTree was used with their default configurations without hyperparameter tuning, as suggested by the original implementation. For Random Forest, Decision Tree, NGBoost, and CADET in both settings, categorical features were one-hot encoded via a preprocessing pipeline, while XGBoost, Partition Tree, and Partition Forest handles categorical features natively. D.3 Extended classification and regression results Table 5 reports the classification accuracy of the evaluated methods. Tables 6 and 7 summarize the regression performance in terms of log-loss and RMSE, respectively, reporting mean and standard deviation across five-fold cross-validation. Across both classification and regression, the results follow a consistent trend. Partition Trees outperform CART for both probabilistic and point-estimation tasks. Among ensemble methods, however, performance depends on the metric: Partition Forests achieve lower log-loss, whereas Random Forests obtain higher classification accuracy and lower RMSE in regression. Table 5 : Accuracy results over 5-fold cross-validation for ensemble and non-ensemble tree methods on classification tasks (mean ± std). Higher is better. Best for ensemble and non-ensemble in bold. The last row represents the average ranking of each method in its group. Underline indicates statistical ties according to a paired t-test at the 5% significance level (run separately within ensemble and non-ensemble groups). Non-ensemble models Ensemble models CART Partition Tree Partition Forest Random Forest NGBoost XGBoost iris 0.8067 \displaystyle\pm 0.1921 0.7800 \displaystyle\pm 0.2694 0.8267 \displaystyle\pm 0.2966 0.9600 \displaystyle\pm 0.0279 0.9400 \displaystyle\pm 0.0279 0.9467 \displaystyle\pm 0.0298 breast 0.7134 \displaystyle\pm 0.0630 0.6924 \displaystyle\pm 0.0389 0.7273 \displaystyle\pm 0.0362 0.7552 \displaystyle\pm 0.0633 0.7097 \displaystyle\pm 0.0216 0.7307 \displaystyle\pm 0.0322 wine 0.5566 \displaystyle\pm 0.0369 0.5929 \displaystyle\pm 0.0336 0.6717 \displaystyle\pm 0.0375 0.6754 \displaystyle\pm 0.0319 0.5835 \displaystyle\pm 0.0327 0.6391 \displaystyle\pm 0.0481 digits 0.7217 \displaystyle\pm 0.0821 0.8692 \displaystyle\pm 0.0184 0.9499 \displaystyle\pm 0.0099 0.9750 \displaystyle\pm 0.0034 0.8809 \displaystyle\pm 0.0208 0.9666 \displaystyle\pm 0.0052 spam 0.8946 \displaystyle\pm 0.0245 0.9287 \displaystyle\pm 0.0113 0.9452 \displaystyle\pm 0.0126 0.9502 \displaystyle\pm 0.0132 0.9300 \displaystyle\pm 0.0121 0.9515 \displaystyle\pm 0.0094 support2 0.8949 \displaystyle\pm 0.0040 0.8975 \displaystyle\pm 0.0066 0.9058 \displaystyle\pm 0.0046 0.9040 \displaystyle\pm 0.0058 0.9046 \displaystyle\pm 0.0067 0.9088 \displaystyle\pm 0.0068 letter 0.6627 \displaystyle\pm 0.0112 0.8310 \displaystyle\pm 0.0589 0.8854 \displaystyle\pm 0.0043 0.9629 \displaystyle\pm 0.0039 0.7178 \displaystyle\pm 0.0534 0.9521 \displaystyle\pm 0.0051 bank 0.9020 \displaystyle\pm 0.0050 0.9029 \displaystyle\pm 0.0036 0.9064 \displaystyle\pm 0.0029 0.9049 \displaystyle\pm 0.0046 0.8996 \displaystyle\pm 0.0045 0.9092 \displaystyle\pm 0.0042 adult 0.5921 \displaystyle\pm 0.0056 0.5890 \displaystyle\pm 0.0066 0.5959 \displaystyle\pm 0.0054 0.5985 \displaystyle\pm 0.0053 0.5910 \displaystyle\pm 0.0050 0.6012 \displaystyle\pm 0.0046 Avg. rank 1.67 1.33 2.78 1.78 3.78 1.67 Table 6 : Log-loss results over 5-fold cross-validation for ensemble and non-ensemble tree methods on regression task. Best for each group in bold (lower is better). The last row represents the average ranking of each method on its group. Underline indicates statistical ties according to a paired t-test at the 5% significance level (run separately within ensemble and non-ensemble groups) Non-ensemble models Ensemble models Partition Tree CART CADET CDTree Partition Forest Random Forest NGBoost XGBoost diabetes 5.6508 \displaystyle\pm 0.1087 17.9335 \displaystyle\pm 2.4880 5.5928 \displaystyle\pm 0.1432 5.5782 \displaystyle\pm 0.0589 5.4860 \displaystyle\pm 0.1023 14.2150 \displaystyle\pm 2.4289 5.5002 \displaystyle\pm 0.1079 16.8124 \displaystyle\pm 3.1159 boston 2.9033 \displaystyle\pm 0.1741 8.3920 \displaystyle\pm 3.3271 2.8919 \displaystyle\pm 0.1841 2.8778 \displaystyle\pm 0.1419 2.5250 \displaystyle\pm 0.1345 4.6011 \displaystyle\pm 1.0842 2.5861 \displaystyle\pm 0.1407 4.5953 \displaystyle\pm 1.3377 energy 2.3589 \displaystyle\pm 0.1813 1.6711 \displaystyle\pm 0.0383 10.8069 \displaystyle\pm 18.6170 1.5485 \displaystyle\pm 0.1586 2.0618 \displaystyle\pm 0.0746 1.5516 \displaystyle\pm 0.0256 0.5957 \displaystyle\pm 0.3404 1.5341 \displaystyle\pm 0.0256 concrete 3.7016 \displaystyle\pm 0.0552 7.4455 \displaystyle\pm 0.9024 3.5214 \displaystyle\pm 0.1712 3.6594 \displaystyle\pm 0.0565 3.3640 \displaystyle\pm 0.0350 3.8643 \displaystyle\pm 0.3960 3.1138 \displaystyle\pm 0.1402 3.4367 \displaystyle\pm 0.3310 kin8nm -0.1780 \displaystyle\pm 0.0223 9.4188 \displaystyle\pm 0.1536 -0.2193 \displaystyle\pm 0.0370 -0.1818 \displaystyle\pm 0.0121 -0.4511 \displaystyle\pm 0.0168 3.2966 \displaystyle\pm 0.1232 -0.4912 \displaystyle\pm 0.0338 2.0540 \displaystyle\pm 0.2646 air 2.1247 \displaystyle\pm 0.1141 13.4880 \displaystyle\pm 1.0048 13.7818 \displaystyle\pm 17.5444 6.4168 \displaystyle\pm 0.0003 2.0172 \displaystyle\pm 0.0958 11.3537 \displaystyle\pm 0.8769 5.6210 \displaystyle\pm 1.5702 12.2496 \displaystyle\pm 1.0273 power 2.8695 \displaystyle\pm 0.0158 3.1347 \displaystyle\pm 0.1002 2.9034 \displaystyle\pm 0.1002 2.9259 \displaystyle\pm 0.0252 2.5951 \displaystyle\pm 0.0163 2.6344 \displaystyle\pm 0.0577 2.7688 \displaystyle\pm 0.1316 2.5905 \displaystyle\pm 0.0579 naval -4.3766 \displaystyle\pm 0.1484 4.6865 \displaystyle\pm 0.2227 -4.7819 \displaystyle\pm 0.0813 -4.2938 \displaystyle\pm 0.0344 -4.7186 \displaystyle\pm 0.0105 -4.9824 \displaystyle\pm 0.0126 -5.0528 \displaystyle\pm 0.0429 -4.9348 \displaystyle\pm 0.0105 california 0.6853 \displaystyle\pm 0.0210 7.0717 \displaystyle\pm 0.3637 0.8837 \displaystyle\pm 0.1582 0.5829 \displaystyle\pm 0.0213 0.4176 \displaystyle\pm 0.0192 3.1070 \displaystyle\pm 0.1352 0.5225 \displaystyle\pm 0.0318 2.5088 \displaystyle\pm 0.1484 protein 2.2210 \displaystyle\pm 0.0176 12.3085 \displaystyle\pm 0.1981 3.1323 \displaystyle\pm 0.2200 2.1841 \displaystyle\pm 0.0204 2.1011 \displaystyle\pm 0.0171 6.1910 \displaystyle\pm 0.0415 2.7906 \displaystyle\pm 0.0261 7.2314 \displaystyle\pm 0.1174 Avg. rank 2.30 3.70 2.30 1.70 1.90 3.30 1.80 3.00 Table 7 : RMSE results over 5-fold cross-validation for ensemble and non-ensemble tree methods on regression task (mean ± std). Best for each group in bold (lower is better). The last row represents the average ranking of each method on its group. Underline indicates statistical ties according to a paired t-test at the 5% significance level (run separately within ensemble and non-ensemble groups) Non-ensemble models Ensemble models Partition Tree CART CADET CDTree Partition Forest Random Forest NGBoost XGBoost diabetes 60.8469 \displaystyle\pm 3.7035 66.0686 \displaystyle\pm 4.3637 63.3747 \displaystyle\pm 2.7527 63.8697 \displaystyle\pm 4.3191 56.1571 \displaystyle\pm 2.0060 56.6220 \displaystyle\pm 2.5885 57.3078 \displaystyle\pm 2.2566 63.0091 \displaystyle\pm 2.1380 boston 4.9451 \displaystyle\pm 0.4267 4.5558 \displaystyle\pm 1.3400 4.5706 \displaystyle\pm 0.8286 4.8580 \displaystyle\pm 0.8571 4.1597 \displaystyle\pm 0.6955 3.1755 \displaystyle\pm 0.6638 3.5388 \displaystyle\pm 0.7070 3.1280 \displaystyle\pm 0.6539 energy 4.4647 \displaystyle\pm 0.3512 1.0085 \displaystyle\pm 0.0861 0.6813 \displaystyle\pm 0.0436 4.8769 \displaystyle\pm 0.1724 4.5773 \displaystyle\pm 0.4197 0.4788 \displaystyle\pm 0.0322 0.4597 \displaystyle\pm 0.0491 0.3367 \displaystyle\pm 0.0332 concrete 8.1692 \displaystyle\pm 0.4043 8.3429 \displaystyle\pm 0.4559 7.5666 \displaystyle\pm 0.5510 9.0076 \displaystyle\pm 0.8059 7.4584 \displaystyle\pm 0.5900 5.0355 \displaystyle\pm 0.6595 5.3934 \displaystyle\pm 0.5112 4.4791 \displaystyle\pm 0.6402 kin8nm 0.1859 \displaystyle\pm 0.0045 0.2046 \displaystyle\pm 0.0033 0.1949 \displaystyle\pm 0.0024 0.2121 \displaystyle\pm 0.0033 0.1575 \displaystyle\pm 0.0020 0.1410 \displaystyle\pm 0.0013 0.1594 \displaystyle\pm 0.0021 0.1241 \displaystyle\pm 0.0028 air 60.3952 \displaystyle\pm 4.3365 53.8907 \displaystyle\pm 2.3661 56.1893 \displaystyle\pm 1.6509 98.0611 \displaystyle\pm 0.0901 54.6616 \displaystyle\pm 5.2004 47.8334 \displaystyle\pm 2.2149 53.2590 \displaystyle\pm 2.3771 50.4488 \displaystyle\pm 2.4324 power 4.0051 \displaystyle\pm 0.1611 4.4409 \displaystyle\pm 0.1662 4.1441 \displaystyle\pm 0.1351 4.5171 \displaystyle\pm 0.1261 3.6756 \displaystyle\pm 0.1969 3.3166 \displaystyle\pm 0.1501 3.6042 \displaystyle\pm 0.1185 3.1985 \displaystyle\pm 0.1590 naval 0.0029 \displaystyle\pm 0.0002 0.0113 \displaystyle\pm 0.0001 0.0023 \displaystyle\pm 0.0002 0.0039 \displaystyle\pm 0.0001 0.0026 \displaystyle\pm 0.0002 0.0009 \displaystyle\pm 0.0001 0.0017 \displaystyle\pm 0.0001 0.0012 \displaystyle\pm 0.0000 california 0.5691 \displaystyle\pm 0.0116 0.7166 \displaystyle\pm 0.0100 0.6109 \displaystyle\pm 0.0244 0.6383 \displaystyle\pm 0.0096 0.5574 \displaystyle\pm 0.0146 0.5048 \displaystyle\pm 0.0104 0.4881 \displaystyle\pm 0.0123 0.4645 \displaystyle\pm 0.0157 protein 4.3938 \displaystyle\pm 0.0385 5.1811 \displaystyle\pm 0.0364 4.7821 \displaystyle\pm 0.1181 4.6290 \displaystyle\pm 0.0430 4.7202 \displaystyle\pm 0.0249 3.5096 \displaystyle\pm 0.0176 4.2972 \displaystyle\pm 0.0343 3.8454 \displaystyle\pm 0.0387 Avg. rank 1.90 2.90 1.80 3.40 3.60 1.90 2.90 1.60 Appendix E Runtime comparison To evaluate the computational efficiency of the proposed Partition Tree method, we compared its runtime with CADET and CDTree on the Physicochemical Protein dataset. We measured training time across three random sample sizes ( \displaystyle n\in\{100,1000,10000\} ), repeating each configuration five times with different random seeds to account for variability. All models were configured without hyperparameter tuning, using permissive settings (a large maximum depth/iterations and a minimum samples per leaf of 1) to ensure the runtime reflects the inherent algorithmic complexity rather than early stopping behavior. Figure 4 presents the training time as a function of sample size on a log-log scale. Partition Tree consistently achieves the fastest training times across all sample sizes, being approximately \displaystyle 5\times faster than CADET and \displaystyle 25\times faster than CDTree at \displaystyle n=10000 . The shaded regions indicate the range between the minimum and maximum observed runtimes across runs. Figure 4 : Training time comparison on the Physicochemical Protein dataset across different sample sizes. Solid lines indicate mean runtime; shaded regions show the range across five runs. Partition Tree demonstrates consistent computational efficiency and scales favorably compared to both CADET and CDTree. Appendix F Gain-based Feature Importance Partition Trees retain the interpretability advantages of classical decision trees: each internal node applies a single-coordinate test, and the learned model is a piecewise-constant conditional density on the induced leaves. To summarize which covariates drive the conditional density estimate, we use a gain-based feature importance that is aligned with the training objective. Recall that every accepted split is chosen to maximize the empirical log-loss gain \displaystyle\widehat{G} ( Section 2.4.2 ). For a fitted tree \displaystyle T and a covariate coordinate \displaystyle j\in\{1,\dots,d_{x}\} , define the unnormalized importance \widetilde{I}_{j}(T):=\sum_{s\in\mathrm{Int}(T)}\widehat{G}_{s}\;\mathbf{1}\{\,\text{split }s\text{ uses }X_{j}\,\}, where \displaystyle\mathrm{Int}(T) is the set of internal nodes and \displaystyle\widehat{G}_{s} is the gain realized at node \displaystyle s . We then report the normalized importance I_{j}(T):=\frac{\widetilde{I}_{j}(T)}{\sum_{s\in\mathrm{Int}(T)}\widehat{G}_{s}},\qquad\sum_{j=1}^{d_{x}}I_{j}(T)=1. This definition matches the standard “impurity decrease” importances used for CART, with \displaystyle\widehat{G} replacing the classification or regression impurity. Because Partition Trees also allow \displaystyle Y -splits to refine the outcome partition, we restrict \displaystyle I_{j} to \displaystyle X -splits only so that importances reflect how the model adapts to the covariates (rather than how it discretizes the outcome). F.1 Comparison with CADET importances CADET selects splits using a cross-entropy criterion, so its gain has the same log-loss structure as ours. Empirically, the resulting importances are closely aligned across regression benchmarks: Figure 5 plots CADET importances against Partition Tree importances (each point is one feature in one dataset), and most points concentrate near the equality line, indicating broad agreement in which covariates matter and at what scale. . Figure 5 : Normalized gain-based feature importances for Partition Tree vs. CADET across regression datasets for the first fold of the cross-validation. Each marker corresponds to a single feature on a given dataset; the dashed line indicates equal importance. The Air Quality dataset is omitted because CADET returned NaN feature importances. F.2 Example: California Housing As a concrete illustration, Figure 6 shows the normalized features importance on California Housing for the Partition Tree and CADET. Both methods identify MedInc as the dominant predictor, followed by geographic covariates ( Longitude , Latitude ) and occupancy statistics, with the remaining variables contributing less. This qualitative agreement is representative of the trends observed across datasets. . (a) Partition Tree (b) CADET Figure 6 : Normalized gain-based feature importance for the California Housing dataset. Both Partition Tree and CADET place MedInc as most important, followed by geographic covariates and occupancy-related features. Caveat. As with standard impurity-based importance, gain-based scores can be affected by correlated predictors and by the set of admissible split tests. We therefore use them as a descriptive diagnostic of how the learned partition adapts to \displaystyle X , rather than as a causal attribution. Appendix G Effect of Exploration Splits on Probabilistic Regression We report an ablation comparing the default gain-based Partition Tree (no exploration splits) against a variant that allocates a nonzero exploration budget. For the exploration variant, we introduce a hyperparameter \displaystyle\alpha\in[0.1,0.9] and set the exploration budget to \displaystyle k_{N,e}=\lfloor\alpha k_{N}\rfloor . Thus, the total split budget is \displaystyle k_{N}+k_{N,e} , where \displaystyle k_{N} splits are selected by empirical gain maximization and \displaystyle k_{N,e} splits are diameter-reducing exploration splits. Results are reported as mean \displaystyle\pm standard deviation of the negative log-likelihood over 5-fold cross-validation (lower is better). Table 8 : Regression log-loss (mean \displaystyle\pm std) for Partition Tree with and without exploration splits. Lower is better. Best is in bold. Underline indicates statistical ties according to a paired t-test at the 5% significance level. Dataset Partition Tree Partition Tree (+Exploration) Diabetes 5.6508 \displaystyle\pm 0.1087 5.8352 \displaystyle\pm 0.0739 Boston 2.9033 \displaystyle\pm 0.1741 3.2099 \displaystyle\pm 0.1676 Energy 2.3589 \displaystyle\pm 0.1813 2.9605 \displaystyle\pm 0.2133 Concrete 3.7016 \displaystyle\pm 0.0552 4.0207 \displaystyle\pm 0.0641 kin8nm -0.1780 \displaystyle\pm 0.0223 -0.0710 \displaystyle\pm 0.0219 Air 2.1247 \displaystyle\pm 0.1141 2.7802 \displaystyle\pm 0.1282 Power 2.8695 \displaystyle\pm 0.0158 3.0404 \displaystyle\pm 0.0215 Naval -4.3766 \displaystyle\pm 0.1484 -4.3714 \displaystyle\pm 0.0455 California 0.6853 \displaystyle\pm 0.0210 0.8973 \displaystyle\pm 0.0302 Protein 2.2210 \displaystyle\pm 0.0176 2.3072 \displaystyle\pm 0.0175