betaFeedback

WorksMathematics

A comparison of knot point screening algorithms for highly adaptive lasso

Abstract

Highly adaptive lasso (HAL) is a nonparametric regression estimator with a rate of convergence n−1/3(log⁡n)d/2n^{-1/3}(\log n)^{d/2}, where the data dimension dd only appears in the power of the log of sample size. This fast rate is crucial for many causal inference tasks, where efficient estimation typically requires nuisance parameters to be estimated at a specific rate. HAL achieves this rate and, when paired with semiparametrically efficient estimators – such as those constructed using targeted maximum likelihood estimation (TMLE) – can be used to develop efficient estimators. Beyond causal inference, HAL is applicable to a wide range of supervised machine learning tasks. The procedure for HAL involves first performing a basis expansion on the original design matrix XX and then computing a lasso solution path. Cross-validation is used to select the optimal L1L_1-norm for the coefficients. For datasets with all continuous covariates and no ties, the HAL design matrix can reach a dimension as large as n×n(2d−1)n \times n(2^d-1), imposing a significant computational and memory burden. To address this, screening algorithms are applied at both the variable and knot-point levels to make HAL practical for datasets of moderate to large sizes. In this work, we propose outcome-blind knot point screening based on center-based clustering – kk-means and partitioning around medoids (PAM) – and compare it with the quantile-based screening implemented in the hal9001 R package at matched design-matrix sizes. Across 153 simulation settings, kk-means and PAM significantly improved test R2R^2 in 97 and 111 settings, respectively, with gains that grow with covariate skewness, while producing slightly smaller design matrices. On nine real-world datasets, they reduced the cross-validated mean squared error by 35-36% on the dataset with the most skewed predictors and performed comparably on the others.

Introduction

Regression is a fundamental statistical estimation problem which involves identifying a function mapping from independent variables X∈RdX \in\mathbb{R}^d to a dependent variable Y∈RY \in\mathbb{R} that minimizes the empirical mean of some loss function [1]. Regression problems are common in the field of causal inference. For example, one might be interested in estimating the average treatment effect (ATE) based on data generated from either interventional or non-interventional studies. A good estimator for ATE ought to be efficient, formally defined as no other estimators with a smaller sampling variance exist [2]. To construct an efficient ATE estimator, such as one developed through targeted maximum likelihood estimation (TMLE) [3, 4], which updates an initial estimator with a parametric submodel through it to achieve an optimal bias-variance trade-off for the target parameter, it is necessary to estimate both the conditional mean of outcome and the conditional probability of treatment, two regression problems. To guarantee TMLE’s efficiency for the ATE target parameter, both nuisance estimators need to converge their true values at a rate faster than n−1/4n^{-1/4} [4, 5]. Parametric maximum likelihood estimators (MLE) such as the least-squares linear regression satisfy the rate condition. However, they often operate under unrealistic assumptions on the model class containing the true function. As in linear regression, one assumes that the true function is a linear combination of XX, a restriction that is unlikely to hold true in many practical settings. On the other hand, nonparametric regression methods such as kernel regression [6, 7] offers a flexible alternative but fail to achieve a fast-enough convergence rate unless local-smoothness assumptions are imposed. In recent years, highly adaptive lasso (HAL) has emerged as the sole nonparametric regression estimator capable of achieving fast convergence rates without imposing stringent local-smoothness assumptions on the function class [8]. HAL has a convergence rate of n−1/3(log⁡n)d/2n^{-1/3}(\log n)^{d/2}, with this rate depending only on the dimension dd via a power of the log nn-factor, hence essentially dimension-free [9]. HAL only assumes a mild assumption that the true function is càdlàg (right-continuous with left limits) with a bounded variation norm which includes most functions one would encounter in fields like public health and medicine.

Despite these notable theoretical advantages, HAL’s practical application is limited by its large memory requirement computationally, rendering it infeasible to run on moderate to large-sized datasets [10]. The current HAL implementation (R package hal9001 [11, 12]) recognizes HAL’s equivalence in terms of the optimization objective to that of lasso (least absolute shrinkage and selection operator) [13], utilizing lasso software packages such as glmnet in R for optimization. However, in order to use lasso software to run HAL, one needs to first augment the data and in the worst-case scenario, where all dd variables are continuous without ties, the HAL augmented design matrix has a dimension of nn by n(2d−1)n(2^d-1). This results in considerable computational strain. Addressing these computational challenges requires significant storage capacity that far exceeds the capabilities of standard personal computing devices, even when leveraging more efficient storage options like sparse matrices. In this work, we discuss several existing and new methods aiming at addressing the memory issue of HAL. We evaluate the performance of these methods on both simulated and real-world datasets, and find that clustering-based knot screening matches or improves upon the quantile-based default in most settings while producing slightly smaller design matrices, with the largest gains when the covariates are skewed.

The remainder of this paper is organized as follows. In § 2, we provide a gentle introduction to HAL, its theoretical properties, and its computational bottlenecks. § 3 outlines a modular screening framework for controlling memory usage. § 4 introduces the three outcome-blind knot point screening algorithms—quantile-based discretization, kk-means clustering, and partitioning around medoids (PAM)—along with our basis-budget matching scheme. § 5 and § 6 present empirical evaluations across 17 simulation designs and nine real-world datasets, respectively. § 7 discusses the findings, practical recommendations, and directions for future work.

Highly adaptive lasso

Define a random variable O=(X,Y)O=(X,Y), where X∈RdX \in\mathbb{R}^{d} and Y∈RY \in\mathbb{R} denote the independent and dependent variables, respectively. We observe nn independent and identically distributed (i.i.d.) copies of OO, denoted by O1,O2,…,OnO_1,O_2,\ldots,O_n, drawn from the true data-generating distribution P0P_0. We use PnP_n to denote the empirical distribution of OO. Let Pf=∫f(o)dP(o)P f = \int f(o)dP(o) and Pnf=1/n∑i=1nf(oi)P_n f = 1/n \sum_{i=1}^{n} f(o_i) for a function f(o)f(o). The highly adaptive lasso (HAL) estimator [8] minimizes the empirical mean of a loss function over a specific function class of dd-dimensional real-valued càdlàg (right-continuous with left limits) functions [14]. The function class HAL minimizes over, denoted by FM([0,1]d)\mathcal{F}_M([0,1]^d), consists of functions with a bounded sectional variation norm, MM. We define the sectional variation norm, ∥f∥v\lVert f\rVert_v, of a function ff as:

∥f∥v=∣f(0)∣+∑s⊂{1,…,d}∫∣df(xs)∣,\lVert f\rVert_v = \lvert f(0)\rvert+ \sum_{s\subset\{1,\ldots,d\}} \int\lvert df(x_s)\rvert,

where f(xs)f(x_s) denotes the function ff where the coordinates not in ss are set to 0. This norm (a.k.a. uniform sectional variation norm [15] or Hardy-Krause variation [16]) essentially measures the total amount of variation of a function across all coordinates of its domain. The HAL estimator, fnf_n, is then given by:

fn=arg⁡min⁡f∈FM([0,1]d) PnL(f),f_n = \underset{f\in\mathcal{F}_M([0,1]^d)}{\arg\min}\ P_nL(f),

where L(f)L(f) is a loss function, such as the squared-error loss. In particular, we can approximate any function f∈FM([0,1]d)f\in\mathcal{F}_M([0,1]^d) by

fm(x)=f(0)+∑s⊂{1,2,…,d}∑jI(xs≥us,j)dfm,s,j.f_m(x) = f(0) + \sum_{s\subset\{1,2,\ldots,d\}}\sum_j I(x_s\ge u_{s,j})df_{m,s,j}.

This approximation is obtained by applying a discrete measure to approximate the sectional representation of càdlàg functions [15, 8]. Intuitively, this approximation could be viewed as a linear combination of basis functions {ϕs,j(x)=I(xs≥us,j):s,j}\{\phi_{s,j}(x)=I(x_s\ge u_{s,j}):s,j\} with coefficients {dfm,s,j:s,j}\{df_{m,s,j}:s,j\}. Also, notice that sectional variation norm corresponds exactly to the absolute sum of the coefficients and ∣f(0)∣\lvert f(0)\rvert. Specifically, we have

∥fm∥v=∣f(0)∣+∑s⊂{1,2,…,d}∑j∣dfm,s,j∣≤M.\lVert f_m\rVert_v = \lvert f(0)\rvert+ \sum_{s\subset\{1,2,\ldots,d\}}\sum_j\lvert df_{m,s,j}\rvert\le M.

Now, the problem of trying to find an empirical risk minimizer in the càdlàg function class with bounded sectional variation norm becomes finding a linear combination of basis functions whose sum of absolute values of the coefficients including the intercept are bounded by a constant MM. This is equivalent to a lasso optimization problem with the constraint that the L1L_1-norm of the coefficients are bounded by MM.

Once the connection to lasso is made, then the implementation of HAL becomes clear. First, we apply basis expansion to the original design matrix XX to obtain a HAL design matrix. Then, we run lasso on the HAL design matrix, using cross-validation to select the penalization factor, which corresponds with an L1L_1-norm value. In this note, we focus on a sufficient initial set of basis functions directly implied by the data itself following [8].

Constructing the HAL design matrix

To construct the zero-order HAL design matrix, each basis function ϕs,i\phi_{s,i} is defined as an indicator function ϕs,i(X)=I(Xs≥xs,i)\phi_{s,i}(X)=I(X_s\ge x_{s,i}), where xs,ix_{s,i} denotes the ii-th observation restricted to the covariate index subset s⊂{1,2,…,d}s\subset\{1,2,\ldots,d\}. Specifically, we begin with one-way basis functions: for each covariate index j∈{1,2,…,d}j\in\{1,2,\ldots,d\}, we construct up to nn indicator basis functions ϕ{j},i(X)=I(Xj≥x{j},i)\phi_{\{j\},i}(X)=I(X_j\ge x_{\{j\},i}), where x{j},ix_{\{j\},i} is the ii-th realization of XjX_j. Two-way basis functions are then formed as products of one-way indicator basis functions evaluated at observed pairs, and higher-order basis functions are constructed analogously up to dd-way interactions. For example, with d=2d = 2 variables and n=2n = 2 observations X1=(2.1,4.3)X_1 = (2.1, 4.3) and X2=(1.2,5.6)X_2 = (1.2, 5.6), this construction yields 6 basis functions: I(X1≥2.1)I(X_1 \ge2.1), I(X1≥4.3)I(X_1 \ge4.3), I(X2≥1.2)I(X_2 \ge1.2), I(X2≥5.6)I(X_2 \ge5.6), I(X1≥2.1,X2≥1.2)I(X_1 \ge2.1, X_2 \ge1.2), and I(X1≥4.3,X2≥5.6)I(X_1 \ge4.3, X_2 \ge5.6).

Summary of HAL’s theoretical properties

HAL is noteworthy for its fast convergence in loss-based dissimilarity, with dimension dd depending only through the power of a log⁡n\log n-factor. This is due to the fact that it falls in a function class that is a uniform Donsker with a well-behaved entropy integral [17]. Because of this, HAL avoids the curse of dimensionality to the extent that the dimension’s influence on the convergence rate manifests solely through the logarithmic factor’s exponent.

Computational challenges of HAL

The current implementation of the HAL estimator (R package hal9001 [11, 12]) first creates the augmented HAL design matrix and then calls the glmnet package which runs the coordinate descent algorithm for optimization. The HAL design matrix has a dimensionality of at most n×n(2d−1)n \times n(2^d - 1). This can rapidly exceed the memory capacity of standard personal computers, even when nn and dd are of moderate sizes. Figure 1 shows that the memory of the HAL design matrix (stored in sparse matrix form) grows very fast as sample size and the number of features in the data grow. Very quickly this would run out of memory, not to mention the optimization of glmnet on this huge matrix. Although this initial set of knot points is sufficient for HAL to attain its theoretical convergence rate, this set is not necessary. In particular, columns that are nearly constant (consisting almost entirely of ones or zeros) are unlikely to receive nonzero coefficients in glmnet and can be discarded beforehand. In the next section, we discuss a flexible modular framework that allows users to apply screening algorithms to reduce the size of the design matrix, thereby controlling memory usage and improving the speed of glmnet.

Figure 1. Memory usage of the sparse HAL design matrix constructed by hal9001 as a function of sample size nn and covariate dimension dd.

A Modular Framework to Control Memory

As we have seen in the previous section, the key to scaling up HAL in high-dimensional data settings is to reduce the number of columns of the HAL design matrix. To achieve this goal, one can apply screening algorithms at three different levels. First, if there are hundreds of variables in the data, one should perform variable-level screening, such as running a main-term-only lasso and selecting the variables with nonzero coefficients, or applying another variable screening method. Second, one can perform screening at the basis-function level. Finally, for each basis function, one needs to screen the knot points. This screening framework is modular in the sense that a user can replace the screening algorithm at any level with their preferred choice.

Knot point screening algorithms

Quantile-based discretization

We use the quantile-based knot selection procedure implemented in the hal9001 R package [12] as our reference method. To reduce the number of basis functions, the procedure discretizes each predictor using a specified number of knot points derived from its empirical distribution. The number of knots can vary by interaction degree, allowing higher-order interactions to use a smaller knot budget and limiting the combinatorial growth of the HAL design matrix. Specifically, let B1B_1, B2B_2, and B3B_3 denote the numbers of knot points for first-, second-, and third-degree basis functions. For a subset ss of ∣s∣|s| predictors, each predictor in ss is discretized to B∣s∣B_{|s|} of its empirical quantiles, and the distinct discretized observations are used as knot points. The knots are therefore spread evenly in probability, and a binary predictor contributes at most two distinct values.

For the simulation studies, we specify knot budgets of (50, 15, 5) for first-, second-, and third-degree basis functions, respectively. For the real-world datasets, we consider first-degree knot budgets ranging from 20 to 100 in increments of 10, while keeping the second- and third-degree budgets at 10 and 5. Knot selection is performed using the training covariates without reference to the outcome.

k-means clustering-based quantizer

Quantile-based discretization relies on univariate marginal quantiles and does not directly exploit the joint spatial geometry of the covariates. To address this challenge in moderate- to high-dimensional settings, we propose the derivation of a smaller knot-point set, Θ={θs,j:s,j}\Theta= \{\theta_{s,j} : s, j\}, from the full data-implied set Φ={ϕs,j:s,j}\Phi= \{\phi_{s,j} : s, j\}, where ∣Θ∣<∣Φ∣|\Theta| < |\Phi|. The smaller knot-point set Θ\Theta implies a smaller number of basis functions and thus a thinner HAL design matrix, thereby adhering to computational and memory limitations. Importantly, we remark that Θ\Theta is not necessarily a subset of Φ\Phi, depending on the clustering technique used. In this section, we discuss strategies for identifying an optimal knot-point set Θ\Theta through center-based clustering algorithms, notably the kk-means algorithm. This method partitions nn observations into kk clusters, optimizing the selection of cluster centers θ1,…,θk\theta_1,\ldots,\theta_k to minimize the within-cluster sum of squared distances:

Wn=1n∑i=1nmin⁡1≤j≤k∥xi−θj∥22.W_n = \frac{1}{n}\sum_{i=1}^{n}\min_{1\leq j\leq k}\lVert x_i-\theta_j\rVert_2^2.

We advocate the use of center-based clustering methods as an outcome-blind preliminary filter in knot-point selection. From the perspective of vector quantization, kk-means converges to an optimal kk-quantizer under resource constraints, placing knot points where they best represent the spatial support of the covariates. Framing HAL knot screening as a vector quantization problem opens avenues for leveraging signal processing methodologies within the HAL framework to support scalable estimation in higher-dimensional settings.

PAM

Partitioning Around Medoids (PAM) [18] is a center-based clustering method that partitions observations into groups represented by medoids. Unlike kk-means, whose cluster centroids need not correspond to observed data points, PAM selects representative observations from the original data.

We consider PAM as an alternative outcome-blind knot selection strategy. As with kk-means, clustering is applied to the observed predictor values in each subset ss using the same cluster budget (§ 4.4), and the resulting medoids serve as knot points in the HAL basis expansion. Because medoids are actual observations, PAM knots form a subset of the observed data (Θ⊂Φ\Theta\subset\Phi). PAM minimizes the sum of distances between observations and their nearest medoids rather than the within-cluster sum of squares, which makes it more robust to outliers but generally more computationally expensive than kk-means.

Knot budgets and number of basis functions

For each subset ss of predictors, kk-means and PAM are applied to the observed values x1,s,…,xn,sx_{1,s},\ldots,x_{n,s} of the predictors in ss, and the resulting cluster centers (kk-means) or medoids (PAM) are used as knot points. To compare the screening algorithms at approximately matched design matrix sizes, the numbers of cluster centers for kk-means and PAM are derived from the basis produced by quantile-based discretization. Let N1N_1, N2N_2, and N3N_3 be the numbers of first-, second-, and third-degree basis functions produced by quantile-based discretization, dd the number of predictors, and dcd_c the number of continuous predictors. The numbers of cluster centers per subset of one, two, and three predictors are

k1=N1/dc,k2=N2/(d2),k3=N3/(d3),k_1 = N_1/d_c,\qquad k_2 = N_2/\binom{d}{2},\qquad k_3 = N_3/\binom{d}{3},

corresponding to the average number of quantile-based knots per subset of each degree. Non-integer values and subsets with fewer distinct observed points than cluster centers follow the hal9001 implementation used in this study. In the simulations, dcd_c is set to dd; in the real-world data, dcd_c is the number of predictors with more than two distinct values in the training data (or dd if no continuous predictor is present). Because a uniform budget is applied across subsets of a given degree and binary predictors contribute at most two distinct values, kk-means and PAM yield slightly fewer basis functions than quantile-based discretization: the same number for p=1p = 1, 8–10% fewer for p=3p = 3, and 2–4% fewer for p=5p = 5 in the simulations; and up to 6% fewer for seven of the nine real-world datasets (11–13% fewer for bike sharing and 26% fewer for automobile).

All three knot-screening algorithms are outcome-blind, using only the training covariates; the outcome is used solely when fitting the cross-validated lasso to the resulting basis matrix (and for initial variable screening in two high-dimensional real-world datasets; § 6). Throughout, HAL is fitted with zero-order basis functions and a maximum interaction degree of three. Tables report the total number of basis functions (columns of the HAL design matrix passed to glmnet); we focus on predictive accuracy and basis-matrix size rather than wall-clock runtime.

Simulations

We compare the predictive performance of quantile-based discretization, kk-means, and PAM across 17 data-generating processes (DGPs) for XX: the regular design of [8] (§ 5.1), three correlated designs (§ 5.2), one skewed design with independent variables, and twelve skewed and correlated designs (§ 5.3). Each design is paired with the smooth, jump, and sinusoidal regression functions of [8] in p∈{1,3,5}p \in\{1, 3, 5\} dimensions, where p=1p = 1 and p=3p = 3 use the first one or three of the five covariates. In all settings, Y=f0(X)+εY = f_0(X) + \varepsilon with ε∼Normal⁡(0,1)\varepsilon\sim\operatorname{Normal}(0, 1) independent of XX, and f0f_0 is one of the nine regression functions listed in Appendix § 8.

In each of 10 independent replicates per setting, a training set of n=1000n = 1000 observations and an independent test set of 10,000 observations (1,000 for the independent skewed design) are drawn from the same distribution. All three screening algorithms are applied to the same training split, and predictive accuracy is evaluated by test-set R2=1−∑i{Yi−f^(Xi)}2/∑i(Yi−Yˉ)2R^2 = 1 - \sum_i\{Y_i - \hat{f}(X_i)\}^2 / \sum_i(Y_i - \bar{Y})^2. Under the regular design, each regression function is scaled so that the population optimal R2R^2, Ropt2=Var⁡{f0(X)}/[Var⁡{f0(X)}+1]R^2_{\mathrm{opt}} = \operatorname{Var}\{f_0(X)\}/[\operatorname{Var}\{f_0(X)\} + 1], is approximately 0.80 (between 0.799 and 0.804 by Monte Carlo). Under the remaining designs, Var⁡{f0(X)}\operatorname{Var}\{f_0(X)\} changes with the covariate distribution (Ropt2∈[0.70,0.82]R^2_{\mathrm{opt}} \in[0.70, 0.82] for correlated designs, [0.80,0.94][0.80, 0.94] for independent skewed, and [0.45,0.99][0.45, 0.99] for skewed and correlated), so test R2R^2 values are compared across methods within each setting rather than across designs.

For conciseness, we present the regular design (Table 1) and the cross-design overview (Table 2) in the main text, and defer the full per-design tables for the correlated and skewed settings to Appendix § 9. In all simulation tables, Avg. test R2R^2 (SD) reports the mean and sample SD over 10 replicates (with the highest mean in bold), and superscripts + (−) indicate that the unadjusted 95% paired tt-interval for the within-replicate difference against Quantile lies strictly above (below) zero.

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.793 (0.005)0.792 (0.005)0.793 (0.005)50.050.050.0
jump0.761 (0.007)0.756 (0.014)0.762 (0.008)50.050.050.0
sin0.786 (0.004)0.784{sup}−` (0.004)0.787 (0.004)50.050.050.0
3smooth0.781 (0.004)0.782 (0.004)0.781 (0.004)424.8391.9391.9
jump0.749 (0.008)0.758{sup}+` (0.008)0.757{sup}+` (0.006)426.7394.2394.2
sin0.585 (0.018)0.626{sup}+` (0.011)0.610{sup}+` (0.019)428.0395.0395.0
5smooth0.774 (0.005)0.775 (0.005)0.775 (0.005)2307.52259.02259.0
jump0.745 (0.009)0.763{sup}+` (0.005)0.764{sup}+` (0.007)2312.22263.02263.0
sin0.527 (0.019)0.573{sup}+` (0.018)0.569{sup}+` (0.024)2310.22262.02262.0

Table 1. Simulation results under the regular design. Bold indicates the highest mean test R2R^2; superscripts +{}^{+} (−{}^{-}) denote significantly higher (lower) test R2R^2 than Quantile.

DesignSkewnessCorr.k-means − Quantile Avg. ΔR2\Delta R^2 [95% CI]Better / worsePAM − Quantile Avg. ΔR2\Delta R^2 [95% CI]Better / worse
Regular00+0.012∗ [+0.009, +0.015]4 / 1+0.011∗ [+0.008, +0.013]4 / 0
Correlated00.1+0.010∗ [+0.007, +0.013]4 / 3+0.009∗ [+0.006, +0.011]3 / 1
Correlated00.5+0.009∗ [+0.007, +0.012]3 / 0+0.007∗ [+0.005, +0.010]3 / 1
Correlated00.9+0.003∗ [+0.001, +0.005]3 / 0+0.006∗ [+0.004, +0.008]2 / 0
Skewed (indep.)20+0.029∗ [+0.023, +0.035]6 / 0+0.035∗ [+0.029, +0.042]8 / 0
Skewed + corr.0.50.1+0.033∗ [+0.030, +0.036]7 / 1+0.034∗ [+0.030, +0.037]8 / 0
Skewed + corr.0.50.5+0.030∗ [+0.027, +0.034]7 / 0+0.035∗ [+0.031, +0.038]8 / 0
Skewed + corr.0.50.9+0.024∗ [+0.021, +0.028]6 / 0+0.028∗ [+0.025, +0.032]7 / 0
Skewed + corr.10.1+0.047∗ [+0.037, +0.057]6 / 0+0.053∗ [+0.042, +0.064]7 / 0
Skewed + corr.10.5+0.045∗ [+0.040, +0.050]7 / 0+0.051∗ [+0.046, +0.056]8 / 0
Skewed + corr.10.9+0.038∗ [+0.033, +0.042]6 / 0+0.043∗ [+0.039, +0.047]7 / 0
Skewed + corr.20.1+0.061∗ [+0.053, +0.069]7 / 0+0.073∗ [+0.065, +0.081]8 / 0
Skewed + corr.20.5+0.054∗ [+0.046, +0.063]5 / 1+0.074∗ [+0.068, +0.081]7 / 0
Skewed + corr.20.9+0.056∗ [+0.048, +0.063]5 / 0+0.075∗ [+0.069, +0.081]6 / 0
Skewed + corr.30.1+0.110∗ [+0.073, +0.147]7 / 1+0.132∗ [+0.099, +0.165]8 / 0
Skewed + corr.30.5+0.084∗ [+0.074, +0.095]7 / 0+0.110∗ [+0.101, +0.119]9 / 0
Skewed + corr.30.9+0.068∗ [+0.060, +0.077]7 / 0+0.097∗ [+0.088, +0.106]8 / 0

Table 2. Cross-design summary of paired differences in test R2R^2 relative to quantile-based discretization, averaged over the nine settings of each design (∗: 95% confidence interval excludes zero).

Regular

This design follows the original HAL simulation study [8], with independent covariates X1,X2∼Uniform⁡(−4,4)X_1, X_2 \sim\operatorname{Uniform}(-4, 4), X3∼Bernoulli⁡(0.5)X_3 \sim\operatorname{Bernoulli}(0.5), X4∼Normal⁡(0,1)X_4 \sim\operatorname{Normal}(0, 1), and X5∼Gamma⁡(shape=2,rate=1)X_5 \sim\operatorname{Gamma}(\text{shape} = 2, \text{rate} = 1).

As shown in Table 1, kk-means and PAM achieve higher test R2R^2 than quantile-based discretization for the jump and sinusoidal functions when p>1p > 1 (gains of 0.009 to 0.046) and comparable test R2R^2 for p=1p = 1 and for the smooth function, while using slightly fewer basis functions.

Correlated variables

To evaluate performance under covariate dependence, we generate XX via a Gaussian copula with latent correlation corr∈{0.1,0.5,0.9}\mathit{corr} \in\{0.1, 0.5, 0.9\}:

S=(S1,S2,S3,S4)∼Normal⁡(μ,Σ),X1=8Φ(S1)−4,X2=8Φ(S2)−4,X3∼Bernoulli⁡(logit⁡−1(0.25X1−0.25X2)),X4=S3+X1×X3,X5=qγ(Φ(S4),shape=2,rate=1)+2,\begin{aligned} S &= (S_1, S_2, S_3, S_4) \sim\operatorname{Normal}(\mu, \Sigma), \\ X_1 &= 8\Phi(S_1) - 4, \\ X_2 &= 8\Phi(S_2) - 4, \\ X_3 &\sim\operatorname{Bernoulli}\left(\operatorname{logit}^{-1}(0.25X_1 - 0.25X_2)\right), \\ X_4 &= S_3 + X_1 \times X_3, \\ X_5 &= q_{\gamma}\left(\Phi(S_4), \mathit{shape}=2,\mathit{rate}=1\right) + 2, \end{aligned}

where μ=(0,0,0,0)\mu= (0, 0, 0, 0), Σ\Sigma has 1 on the diagonal and corr\mathit{corr} off the diagonal, and Φ\Phi is the standard normal CDF. Thus X1X_1 and X2X_2 retain Uniform(−4,4-4, 4) margins as in the regular design. Full results and sample correlation matrices are reported in Table 6–Table 8 and Table 9 (Appendix § 9). As in the regular design, kk-means and PAM use fewer basis functions yet significantly improve on Quantile in 10 and 8 of the 27 correlated settings, with gains of up to 0.047 for the jump and sinusoidal functions with p∈{3,5}p \in\{3, 5\}; the few settings in which Quantile is better differ by at most 0.006.

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.795 (0.006)0.795 (0.006)0.794 (0.007)50.050.050.0
jump0.764 (0.012)0.758−\mathbf{0.758}^{-} (0.012)0.768 (0.012)50.050.050.0
sin0.787 (0.003)0.786−0.786^{-} (0.004)0.787 (0.005)50.050.050.0
3smooth0.787 (0.004)0.786−0.786^{-} (0.004)0.786−0.786^{-} (0.004)424.5391.5391.5
jump0.724 (0.011)0.738+\mathbf{0.738}^{+} (0.010)0.736 (0.007)425.5392.7392.7
sin0.602 (0.015)0.623+\mathbf{0.623}^{+} (0.017)0.608 (0.018)426.7393.7393.7
5smooth0.790 (0.004)0.791 (0.004)0.792+\mathbf{0.792}^{+} (0.003)2222.22173.02173.0
jump0.730 (0.018)0.750+\mathbf{0.750}^{+} (0.007)0.747+\mathbf{0.747}^{+} (0.008)2225.62176.02176.0
sin0.507 (0.013)0.554+\mathbf{0.554}^{+} (0.016)0.546+\mathbf{0.546}^{+} (0.016)2228.82177.02177.0

Table 6. Simulation results under the correlated design (corr⁡=0.1\operatorname{corr}=0.1).

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.791 (0.003)0.791 (0.003)0.792 (0.003)50.050.050.0
jump0.762 (0.007)0.757 (0.014)0.765 (0.015)50.050.050.0
sin0.787 (0.004)0.786 (0.005)0.787 (0.004)50.050.050.0
3smooth0.799 (0.004)0.800 (0.003)0.799 (0.005)323.4290.0290.0
jump0.700 (0.013)0.696 (0.012)0.708 (0.015)323.0290.5290.5
sin0.680 (0.005)0.692+0.692^{+} (0.010)0.697+\mathbf{0.697}^{+} (0.012)321.7288.5288.5
5smooth0.654 (0.006)0.655 (0.004)0.656 (0.008)1457.91409.01409.0
jump0.752 (0.009)0.765+\mathbf{0.765}^{+} (0.011)0.761 (0.009)1468.61422.01422.0
sin0.648 (0.011)0.660+0.660^{+} (0.009)0.661+\mathbf{0.661}^{+} (0.006)1449.41401.01401.0

Table 8. Simulation results under the correlated design (corr⁡=0.9\operatorname{corr}=0.9).

corr=0.1corr = 0.1
X1X_1X2X_2X3X_3X4X_4X5X_5
X1X_11.0000.0480.2360.6440.020
X2X_20.0481.000−0.2560.0820.076
X3X_30.236−0.2561.0000.137−0.038
X4X_40.6440.0820.1371.0000.059
X5X_50.0200.076−0.0380.0591.000
corr=0.5corr = 0.5
X1X_1X2X_2X3X_3X4X_4X5X_5
X1X_11.0000.4810.1130.7380.244
X2X_20.4811.000−0.1620.4520.268
X3X_30.113−0.1621.0000.0790.034
X4X_40.7380.4520.0791.0000.259
X5X_50.2440.2680.0340.2591.000
corr=0.9corr = 0.9
X1X_1X2X_2X3X_3X4X_4X5X_5
X1X_11.0000.8850.0350.8650.507
X2X_20.8851.000−0.0300.8000.505
X3X_30.035−0.0301.000−0.007−0.000
X4X_40.8650.800−0.0071.0000.463
X5X_50.5070.505−0.0000.4631.000

Table 9. Sample correlation matrices of X1X_1 to X5X_5 in the correlated designs (one simulated dataset for each value of corrcorr).

Skewed variables

We next consider skewed marginal distributions, with training and test sets drawn from the same distribution (no distribution shift). First, we evaluate an independent skewed design (Table 10 in Appendix § 9):

ppScenarioAvg. test R2R^2 (SD)Avg. total number of bases
Quantilekk-meansPAMQuantilekk-meansPAM
1smooth0.801 (0.058)0.884{sup}+` (0.023)0.903{sup}+` (0.023)50.050.050.0
jump0.778 (0.012)0.776 (0.013)0.787{sup}+` (0.011)50.050.050.0
sin0.762 (0.007)0.765 (0.007)0.776{sup}+` (0.007)50.050.050.0
3smooth0.838 (0.029)0.874{sup}+` (0.015)0.884{sup}+` (0.013)424.0391.2391.2
jump0.810 (0.010)0.823{sup}+` (0.005)0.824{sup}+` (0.008)422.2389.5389.5
sin0.740 (0.021)0.744 (0.012)0.738 (0.016)421.8389.0389.0
5smooth0.789 (0.053)0.874{sup}+` (0.022)0.884{sup}+` (0.016)2282.22233.02233.0
jump0.747 (0.027)0.772{sup}+` (0.021)0.774{sup}+` (0.018)2287.82237.02237.0
sin0.712 (0.020)0.729{sup}+` (0.022)0.725 (0.016)2284.42237.02237.0

Table 10. Simulation results under the independent skewed design.

X1=Gamma⁡(shape=1, scale=2)−5,X2=Gamma⁡(shape=2, scale=2)−2,X3∼Bernoulli⁡(0.9),X4=Gamma⁡(shape=2, scale=1)×{−1if Uniform(0,1)>0.8,1otherwise,X5=Gamma⁡(shape=0.5, scale=1).\begin{aligned} X_1 &= \operatorname{Gamma}(\text{shape}=1,\text{ scale}=2)-5,\\ X_2 &= \operatorname{Gamma}(\text{shape}=2,\text{ scale}=2)-2,\\ X_3 &\sim\operatorname{Bernoulli}(0.9),\\ X_4 &= \operatorname{Gamma}(\text{shape}=2,\text{ scale}=1)\times \begin{cases} -1 & \text{if Uniform}(0,1)>0.8,\\ 1 & \text{otherwise}, \end{cases}\\ X_5 &= \operatorname{Gamma}(\text{shape}=0.5,\text{ scale}=1). \end{aligned}

Second, to study the combined effect of skewness and correlation, we replace the uniform margins of the correlated design with standardized Gamma margins of prescribed skewness skewness∈{0.5,1,2,3}\mathit{skewness} \in\{0.5,1,2,3\} and latent correlation corr∈{0.1,0.5,0.9}\mathit{corr} \in\{0.1,0.5,0.9\} (Table 11–Table 22 in Appendix § 9). With SS as in § 5.2 and a=4/skewness2a=4/\mathit{skewness}^{2}, let

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.829 (0.021)0.880+^{+} (0.018)0.894+^{+} (0.013)50.050.050.0
jump0.709 (0.014)0.700−^{-} (0.011)0.703 (0.009)50.050.050.0
sin0.774 (0.007)0.773 (0.006)0.782+^{+} (0.003)50.050.050.0
3smooth0.786 (0.022)0.830+^{+} (0.008)0.836+^{+} (0.012)423.8390.6390.6
jump0.701 (0.015)0.718+^{+} (0.010)0.717+^{+} (0.009)424.3391.8391.8
sin0.516 (0.009)0.578+^{+} (0.011)0.557+^{+} (0.013)423.8390.6390.6
5smooth0.812 (0.022)0.851+^{+} (0.020)0.851+^{+} (0.020)2208.22159.02159.0
jump0.707 (0.021)0.733+^{+} (0.011)0.732+^{+} (0.013)2220.12171.02171.0
sin0.424 (0.016)0.493+^{+} (0.021)0.489+^{+} (0.022)2225.02178.02178.0

Table 11. Simulation results under the skewed and correlated design (skewness = 0.5, corrcorr = 0.1).

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.661 (0.066)0.842+0.842^{+} (0.047)0.893+\mathbf{0.893}^{+} (0.049)50.050.050.0
jump0.392 (0.028)0.375 (0.039)0.410\mathbf{0.410} (0.018)50.050.050.0
sin0.613 (0.020)0.613 (0.024)0.647+\mathbf{0.647}^{+} (0.008)50.050.050.0
3smooth0.535 (0.056)0.709+0.709^{+} (0.074)0.788+\mathbf{0.788}^{+} (0.095)322.1289.1289.1
jump0.568 (0.011)0.588+0.588^{+} (0.017)0.604+\mathbf{0.604}^{+} (0.015)320.1287.2287.2
sin0.607 (0.014)0.633+0.633^{+} (0.006)0.643+\mathbf{0.643}^{+} (0.012)321.4288.6288.6
5smooth0.633 (0.071)0.810+0.810^{+} (0.094)0.837+\mathbf{0.837}^{+} (0.093)1451.51403.01403.0
jump0.728 (0.003)0.756+0.756^{+} (0.007)0.757+\mathbf{0.757}^{+} (0.006)1444.51395.01395.0
sin0.629 (0.015)0.656+0.656^{+} (0.015)0.659+\mathbf{0.659}^{+} (0.015)1445.91396.01396.0

Table 22. Simulation results under the skewed and correlated design (skewness = 3, corr=0.9corr = 0.9).

Zj=qγ(Φ(Sj),shape=a,rate=1)−aa,j=1,2,3,4.Z_j=\frac{q_{\gamma}\left(\Phi(S_j),\text{shape}=a,\text{rate}=1\right)-a}{\sqrt{a}},\qquad j=1,2,3,4.

which has mean 0, variance 1, and skewness equal to skewness\mathit{skewness}, and set

X1=812Z1,X2=812Z2,X3∼Bernoulli⁡(logit⁡−1(0.25X1−0.25X2)),X4=Z3+X1×X3,X5=4+2Z4.\begin{aligned} X_1&=\sqrt{\frac{8}{12}}Z_1,\qquad X_2=\sqrt{\frac{8}{12}}Z_2,\\ X_3&\sim\operatorname{Bernoulli}\left(\operatorname{logit}^{-1}(0.25X_1-0.25X_2)\right),\\ X_4&=Z_3+X_1\times X_3,\qquad X_5=4+\sqrt{2}Z_4. \end{aligned}

Because these transformations are monotone, the Spearman correlation among X1,X2,X5X_1,X_2,X_5 remains fixed at (6/π)arcsin⁡(corr/2)(6/\pi)\arcsin(\mathit{corr}/2) across all skewness levels, while X1X_1 and X2X_2 become bounded below by −(8/12)(2/skewness)-(8/\sqrt{12})(2/\mathit{skewness}) with increasingly heavy right tails. Consequently, at higher skewness (skewness≥2\mathit{skewness}\ge2), the regression functions are evaluated over a longer right tail and some left-tail jump points (e.g., x1=−3x_1=-3) are no longer crossed.

Summary of simulation results

Table 2 summarizes all 17 designs via the paired differences in test R2R^2 relative to quantile-based discretization. Here, Avg. ΔR2\Delta R^2 averages the mean paired difference across the nine settings (p∈{1,3,5}p\in\{1,3,5\} and three regression functions), with Welch–Satterthwaite 95% intervals reflecting Monte Carlo variability, and Better / worse counts how many of the nine settings had paired 95% intervals strictly above or below zero.

Two clear patterns emerge across the 153 simulation settings:

  1. Uniform margins (regular and correlated designs): Even with uniform margins, clustering-based screening outperforms Quantile in 14 (kk-means) and 12 (PAM) of the 36 settings, almost all for the jump and sinusoidal functions with p≥3p \ge3 (gains up to 0.047; design averages 0.003 to 0.012), while Quantile is better in only 4 and 2 settings, by at most 0.006.

  1. Skewed margins (independent and correlated): Clustering-based screening shows substantial and consistent gains. In the independent skewed design, kk-means and PAM outperform Quantile in 6 and 8 of the 9 settings (average gains 0.029 and 0.035). Across the 108 skewed-and-correlated settings, PAM outperforms Quantile in 91 settings and is never significantly worse, while kk-means outperforms Quantile in 77 settings and is worse in only 3 (all with p=1p = 1). PAM’s average gain is at least as large as that of kk-means in all 13 skewed designs.

The increase in average gain with skewness is driven primarily by the smooth regression function: averaged over pp and corr\mathit{corr}, PAM’s gain on the smooth function rises from 0.053 at skewness=0.5\mathit{skewness} = 0.5 to 0.110, 0.188, and 0.275 at skewness=1,2,3\mathit{skewness} = 1, 2, 3 (kk-means: 0.045, 0.096, 0.152, 0.232), whereas gains on the jump and sinusoidal functions remain relatively stable (0.017–0.031 for PAM). Mechanistically, this behavior aligns with the vector-quantization view in § 4: quantile discretization allocates knots evenly in probability mass, leaving the sparse but wide right tail of a skewed distribution severely under-covered. Because the smooth quadratic function varies rapidly in the tail, coarse tail spacing produces large piecewise-constant approximation errors—in extreme cases causing Quantile to yield negative test R2R^2 (e.g., −0.83 and −0.16 in two replicates at skewness=3\mathit{skewness} = 3, corr=0.1\mathit{corr} = 0.1, p=3p = 3, smooth; mean 0.34, median 0.54, versus medians 0.78 for kk-means and 0.84 for PAM). By contrast, kk-means and PAM minimize spatial distortion and naturally allocate knots across the extended tail.

In contrast to skewness, stronger covariate correlation does not amplify the advantage of clustering and generally reduces it for p∈{3,5}p \in\{3,5\} (for p=1p = 1, X1X_1’s marginal distribution does not depend on corr\mathit{corr}). For instance, at skewness =3= 3, the average gain of k-means declines from 0.134 (corr =0.1= 0.1) to 0.097 (corr =0.5= 0.5) and 0.075 (corr =0.9= 0.9), with a similar trend for PAM (0.146, 0.109, 0.098). Notably, despite producing slightly smaller design matrices, k-means and PAM select more active basis functions at the cross-validated penalty (for p=5p = 5, averaging 164 and 169 nonzero coefficients respectively, versus 136 for Quantile), i.e., the lasso retains a larger fraction of their basis functions.

Real World Data

Datasets and evaluation protocol

We evaluate the three knot-screening algorithms on nine publicly available benchmark datasets summarized in Table 3, with sample sizes ranging from 159 to 731 and 5 to 122 predictors. Four of these datasets (cpu, laheart, oecdpanel, and pima) were also analyzed in the original HAL paper [8]. Predictive performance is measured by mean squared error (MSE).

NamennddOutcome modeled
automobile [19]15955 (15)symboling (insurance risk rating)
communities and crime [20]319122 (122)violent crimes per 100,000 population (normalized)
liver disorders [21]3455 (5)drinks (half-pint equivalents per day)
bike sharing [22]73111 (8)daily count of rental bikes
cpu [23]2096 (6)published relative performance
laheart [24]20011 (11)death (0/1)
real estate [25]4146 (6)house price per unit area
oecdpanel [26, 27]6166 (5)humancap (school enrolment)
pima [28]3927 (7)diabetes (0/1)

Table 3. Real-world datasets analyzed with HAL. nn: complete-case sample size; dd: number of predictors after preprocessing, with the number of continuous predictors (more than two distinct values) in parentheses.

All datasets are analyzed as complete cases after removing constant predictors; categorical predictors stored as text are dummy-coded, and integer-coded predictors (e.g., season and weekday in bike sharing) are treated as numeric. Binary outcomes (laheart and pima) are modeled under squared-error loss. Performance is estimated via 10-fold cross-validation repeated 10 times with matched folds across all methods and knot budgets. All screening and HAL fitting occur strictly within training folds. For the two higher-dimensional datasets (automobile and communities and crime), we first apply variable-level screening within each training fold using cross-validated lasso, retaining predictors with nonzero coefficients at the minimum-CV penalty (or the first predictor(s) entering the path if none are selected).

To compare a clustering method against quantile discretization at a given knot budget while accounting for overlapping training folds, we use the Nadeau–Bengio corrected repeated cross-validation tt-test [29, 30] over the J=100J = 100 fold-level MSE differences:

δˉ±t0.975,J−1(1J+ntestntrain)s2,\bar{\delta} \pm t_{0.975, J-1} \sqrt{\left(\frac{1}{J}+\frac{n_{\mathrm{test}}}{n_{\mathrm{train}}}\right)s^2},

where δˉ\bar{\delta} and s2s^2 are the mean and sample variance of the fold-level differences and ntest/ntrain≈1/9n_{\mathrm{test}}/n_{\mathrm{train}} \approx1/9. To assess systematic differences across datasets, we summarize each dataset by its mean percentage MSE difference from Quantile averaged over the nine knot budgets and apply exact two-sided Wilcoxon signed-rank and sign tests [31], alongside the Spearman correlation with average predictor skewness.

Dataset-specific descriptions are summarized below, and full per-dataset result tables (Table 23–Table 31) are provided in Appendix § 10.

Number of knotsAvg. MSE (SD)Avg. total number of bases
Quantilekk-meansPAMQuantilekk-meansPAM
20, 10, 56431 (1147)2496 (604)2561 (562)1494.61474.41474.4
30, 10, 53700 (863)2664 (842)2494 (606)1546.61518.21518.2
40, 10, 53827 (943)2576 (580)2499 (687)1556.61523.91523.9
50, 10, 53770 (995)2582 (808)2396 (574)1561.01525.91525.9
60, 10, 53758 (1004)2493 (677)2560 (577)1582.31532.81532.9
70, 10, 53759 (1059)2613 (937)2565 (537)1582.31532.91532.9
80, 10, 53723 (986)2518 (615)2542 (586)1582.31532.91532.9
90, 10, 53763 (966)2563 (558)2527 (558)1582.31532.81532.9
100, 10, 53739 (1031)2400 (583)2435 (574)1582.31532.91532.9

Table 23. Repeated 10-fold cross-validation results for the cpu dataset.

Avg. MSE (SD)Avg. total number of bases
Number of knotsQuantilekk-meansPAMQuantilekk-meansPAM
20, 10, 559.53 (1.43)59.86 (0.90)57.68 (0.60)2503.62475.52475.5
30, 10, 558.89 (0.98)60.34 (1.40)57.17 (0.49)2542.52499.52499.5
40, 10, 558.63 (0.72)59.83 (1.03)57.66 (0.68)2581.22527.02527.0
50, 10, 558.51 (1.26)59.98 (1.09)57.42 (0.55)2618.42551.42551.4
60, 10, 558.05 (1.43)59.82 (0.79)57.57 (0.54)2653.62575.02575.0
70, 10, 557.98 (1.27)59.37 (1.29)57.44 (0.75)2687.12596.92596.9
80, 10, 558.09 (0.85)59.91 (0.94)57.33 (0.74)2720.42619.12619.1
90, 10, 557.86 (0.52)59.66 (1.16)57.32 (0.55)2752.52640.52640.5
100, 10, 557.91 (0.87)59.20 (0.84)57.58 (0.95)2782.92660.72660.7

Table 31. Repeated 10-fold cross-validation results for the real estate dataset.

  • cpu [23]: Relative performance (prp, range 6–1,150, strongly right-skewed) of 209 processors predicted from six continuous hardware attributes (myct, mmin, mmax, cach, chmin, chmax), exhibiting the highest predictor skewness among all datasets (average skewness 3.06).

  • automobile [19]: Insurance risk rating (symboling, −2 to 3) for 159 cars with complete records, predicted from 15 numeric variables and 9 categorical variables coded into 40 indicators (55 predictors total, screened fold-wise by lasso).

  • communities and crime [20]: Normalized violent crimes per 100,000 population across 319 US communities with complete Census and LEMAS police records, predicted from 122 normalized numeric variables (screened fold-wise by lasso).

  • pima [28]: Diabetes status (0/1; 130 cases) among 392 women of Pima Indian heritage, predicted from seven clinical measurements (parity, glucose, blood pressure, skinfold thickness, insulin, BMI, age).

  • oecdpanel [26, 27]: Cross-country growth panel of 88 countries across seven five-year periods (616 observations), modeling log secondary school enrolment (humancap) from six macroeconomic predictors.

  • bike sharing [22]: Daily rental bike counts (cnt, range 22–8,714) over 731 days in Washington, D.C., predicted from 11 calendar and weather variables.

  • liver disorders [21]: Daily alcohol consumption (drinks, range 0–20) for 345 male individuals, predicted from five blood-test markers (mcv, alkphos, sgpt, sgot, gammagt).

  • laheart [24]: Mortality indicator (0/1; 64 deaths) for 200 individuals, predicted from age, blood pressure, height, weight, cholesterol, socioeconomic status, and four additional measurements (sbp2, dbp2, chol2, wt2).

  • real estate [25]: House price per unit area (range 7.6–117.5) for 414 transactions in New Taipei City, Taiwan, predicted from six temporal, structural, and geographic variables.

Summary across data sets

Clustering-based screening delivers its largest gain on cpu, the dataset with the most heavily skewed predictors (average skewness 3.06; Table 5). There, kk-means and PAM reduce the average MSE by 35% and 36% and achieve a lower MSE than Quantile in all 10 CV repeats at every knot budget. They are also insensitive to the knot budget (average MSE between 2,396 and 2,664 at all nine budgets), whereas the MSE of Quantile rises to 6,431 at the smallest budget (20, 10, 5) (3,700–3,827 at the other budgets). With the smallest budget, kk-means and PAM are therefore more accurate than Quantile with the largest budget, while using about 7% fewer basis functions (1,474 versus 1,582).

Datasetkk-means or PAM betterAvg. skewness∣Skewness∣>0.5|\mathrm{Skewness}| > 0.5∣Correlation∣>0.5|\mathrm{Correlation}| > 0.5
cpu100%3.06100%53%
automobile100%0.7173%44%
communities and crime89%0.8977%11%
pima100%0.8871%14%
oecdpanel100%−0.4040%20%
bike sharing100%0.1725%11%
liver disorders0%1.7080%30%
laheart78%0.4445%7%
real estate100%0.1033%20%

Table 5. Real-world datasets: frequency of a lower average MSE for kk-means or PAM relative to Quantile across the nine knot budgets, alongside skewness and correlation characteristics of the continuous predictors.

Across the nine datasets (Table 4), PAM achieves a lower average MSE than Quantile on 7 datasets and kk-means on 5, and PAM reduces the MSE by 8.3% on automobile; on the remaining datasets, both clustering methods stay within 2.5% of Quantile. Because the gains on cpu are driven by folds in which Quantile makes very large errors, the fold-level differences are highly variable, and neither the per-budget comparisons nor the across-dataset tests reach statistical significance.

MethodData sets with lower MSEMedian differenceWilcoxon ppSign test ppSpearman (skewness, diff.) ρ\rhopp
kk-means5 of 9−0.4%0.501.00−0.400.29
PAM7 of 9−0.9%0.130.18−0.080.84

Table 4. Cross-dataset summary of relative differences in cross-validated MSE compared to quantile-based discretization across the nine real-world datasets.

Discussion

In this paper, we investigated outcome-blind knot point screening for HAL, comparing hal9001’s default quantile-based discretization against two center-based clustering quantizers (kk-means and PAM) under matched basis-budget rules. With slightly smaller HAL design matrices, clustering-based screening significantly improved test R2R^2 in 97 (kk-means) and 111 (PAM) of the 153 simulation settings, with design-average gains of up to 0.13 under strongly skewed covariates, and was worse in only 7 and 2 settings, by at most 0.017. On real data, it reduced the cross-validated MSE by 35–36% on the most skewed dataset and remained competitive on the others.

Table 5 summarizes the structural properties of the continuous predictors in the nine real-world datasets alongside the proportion of knot budgets in which at least one clustering method achieved a lower average MSE than Quantile (because this column counts the budgets at which the better of the two methods beats Quantile, it should be read together with the per-method results in Table 4). The other columns use the sample skewness m3/s3m_3/s^3 of each continuous predictor, where m3m_3 is the third central sample moment and ss the sample standard deviation: Avg. skewness is its mean over the continuous predictors and ∣Skewness∣>0.5|\mathrm{Skewness}| > 0.5 the percentage of continuous predictors with absolute skewness above 0.5; ∣Correlation∣>0.5|\mathrm{Correlation}| > 0.5 is the percentage of pairs of continuous predictors with absolute Pearson correlation above 0.5. All are computed on the full preprocessed dataset (for automobile and communities and crime, before the fold-wise lasso screening). In our simulations, the advantage of kk-means and PAM over quantile discretization is largest under skewed covariates paired with smooth regression functions, where equal-probability quantiles under-represent the sparse right tail. In the real-world benchmarks, the most skewed dataset (cpu) shows by far the largest MSE reduction (35–36%), in line with this mechanism. With only nine datasets, the rank correlation between average skewness and the change in MSE (Spearman ρ=−0.40\rho= -0.40 for k-means and −0.08-0.08 for PAM) is not significant, and larger benchmark collections are needed to quantify how the gain depends on skewness. In the simulations, stronger covariate correlation did not amplify the advantage of clustering-based screening and, for p∈{3,5}p \in\{3,5\}, generally reduced it (§ 5.4).

From a practical standpoint, our results support treating clustering-based knot screening as a strong, drop-in alternative to quantile discretization within HAL’s modular screening framework—ideally selected via cross-validation rather than chosen solely on the basis of marginal skewness—and, as the cpu results show, it can be markedly more robust than quantile discretization when the knot budget is small. Between the two clustering methods, k-means and PAM deliver comparable predictive accuracy across both simulated and real-world benchmarks; PAM gives the largest gains under skewed covariates, while k-means is computationally cheaper (§ 4) and thus a natural default for larger datasets.

This study focuses on zero-order HAL basis functions and predictive accuracy at the knot-point screening level. Several natural extensions remain for future work: benchmarking end-to-end wall-clock runtime (including the clustering step) on larger sample sizes and higher-order spline HAL bases, integrating knot-point screening with automated variable- and basis-level screening, and evaluating how clustering-screened HAL performs as a nuisance parameter estimator within semiparametric causal inference procedures such as TMLE.

The code to reproduce all simulations and real-world data analyses is available at https://github.com/yadiweng/hal-knot-screening. The k-means and PAM screening options were run with a development version of hal9001 (version 0.4.5; GitHub repository tq21/hal9001, branch kmeans-knot-screen, commit a81af69).

Regression functions

The nine regression functions f0f_0 follow [8] as implemented in our simulation code. In all 17 designs, Y=f0(X)+ϵY = f_0(X) + \epsilon with ϵ∼Normal⁡(0,1)\epsilon\sim\operatorname{Normal}(0,1) independent of XX, and f0f_0 depends on x1x_1, (x1,x2,x3)(x_1,x_2,x_3), and (x1,…,x5)(x_1,\ldots,x_5) for p=1,3,5p = 1,3,5, respectively.

For p=1p = 1:

fsmooth(x)=0.05x1−0.42x12,f_{\mathrm{smooth}}(x) = 0.05x_1 - 0.42x_1^2,
fjump(x)=−2.7I(x1<−3)+2.5I(x1>−2)−2I(x1>0)+4I(x1>2)−3I(x1>3),f_{\mathrm{jump}}(x) = -2.7I(x_1 < -3) + 2.5I(x_1 > -2) - 2I(x_1 > 0) + 4I(x_1 > 2) - 3I(x_1 > 3),
fsin(x)=2sin⁡(π∣x1∣/2)+2cos⁡(π∣x1∣/2).f_{\mathrm{sin}}(x) = 2\sin(\pi|x_1|/2) + 2\cos(\pi|x_1|/2).

For p=3p = 3:

fsmooth(x)=x1/15−0.28x12+0.5x2+0.25x2x3,f_{\mathrm{smooth}}(x) = x_1/15 - 0.28x_1^2 + 0.5x_2 + 0.25x_2x_3,
fjump(x)=−2I(x1<−3)x3+2.5I(x1>−2)−2I(x1>0)+2.5I(x1>2)x3−2.5I(x1>3)+I(x2>−1)−4I(x2>1)x3+2I(x2>3),\begin{aligned} f_{\mathrm{jump}}(x) ={}& -2I(x_1 < -3)x_3 + 2.5I(x_1 > -2) - 2I(x_1 > 0) + 2.5I(x_1 > 2)x_3 - 2.5I(x_1 > 3) \\ &+ I(x_2 > -1) - 4I(x_2 > 1)x_3 + 2I(x_2 > 3), \end{aligned}
fsin(x)=x3{4sin⁡(π∣x1∣/2)I(x2<0)+4.1cos⁡(π∣x1∣/2)I(x2>0)}.f_{\mathrm{sin}}(x) = x_3\{4\sin(\pi|x_1|/2)I(x_2 < 0) + 4.1\cos(\pi|x_1|/2)I(x_2 > 0)\}.

For p=5p = 5:

fsmooth(x)=x1/10−0.3x12+0.25x2+0.5x2x3−0.5x4+0.04x52−0.1x5,f_{\mathrm{smooth}}(x) = x_1/10 - 0.3x_1^2 + 0.25x_2 + 0.5x_2x_3 - 0.5x_4 + 0.04x_5^2 - 0.1x_5,
fjump(x)=−I(x1<−3)x3+0.5I(x1>−2)−I(x1>0)+2I(x1>2)x3−3I(x1>3)+1.5I(x2>−1)−5I(x2>1)x3+2I(x2>3)+2I(x4<0)−I(x5>5)−I(x4<0)I(x1<0)+2x3,\begin{aligned} f_{\mathrm{jump}}(x) ={}& -I(x_1 < -3)x_3 + 0.5I(x_1 > -2) - I(x_1 > 0) + 2I(x_1 > 2)x_3 - 3I(x_1 > 3) + 1.5I(x_2 > -1) \\ &- 5I(x_2 > 1)x_3 + 2I(x_2 > 3) + 2I(x_4 < 0) - I(x_5 > 5) - I(x_4 < 0)I(x_1 < 0) + 2x_3, \end{aligned}
fsin(x)=x3{3.75sin⁡(π∣x1∣/2)I(x2<0)+4cos⁡(π∣x1∣/2)I(x2>0)}+sin⁡(πx4)x5/10+cos⁡(∣x4−x5∣)x3.f_{\mathrm{sin}}(x) = x_3\{3.75\sin(\pi|x_1|/2)I(x_2 < 0) + 4\cos(\pi|x_1|/2)I(x_2 > 0)\} + \sin(\pi x_4)x_5/10 + \cos(|x_4 - x_5|)x_3.

Under the regular design, the population optimal R2R^2 of each setting is approximately 0.80 (between 0.799 and 0.804 by Monte Carlo).

Detailed simulation results

This appendix contains the full per-design simulation tables for the correlated designs (Table 6–Table 8), their sample covariate correlation matrices (Table 9), the independent skewed design (Table 10), and the twelve skewed-and-correlated designs (Table 11–Table 22). The columns are as in Table 1: Avg. test R2R^2 (SD) is the mean and SD over the 10 replicates, with the highest mean in bold, and a superscript ++ (−-) marks a significantly higher (lower) test R2R^2 than Quantile (paired 95% tt-interval); Avg. total number of bases is the number of columns of the HAL design matrix, averaged over the 10 replicates.

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.793 (0.004)0.793 (0.004)0.793 (0.004)50.050.050.0
jump0.761 (0.010)0.759 (0.012)0.764 (0.009)50.050.050.0
sin0.786 (0.004)0.785 (0.003)0.786 (0.003)50.050.050.0
3smooth0.792 (0.004)0.791 (0.003)0.791−0.791^{-} (0.004)404.4371.1371.1
jump0.717 (0.011)0.726 (0.006)0.727+\mathbf{0.727}^{+} (0.011)405.1371.9371.9
sin0.617 (0.016)0.638+\mathbf{0.638}^{+} (0.021)0.625 (0.017)406.7373.4373.4
5smooth0.739 (0.006)0.740 (0.006)0.740 (0.008)2055.02005.02005.0
jump0.739 (0.014)0.756+\mathbf{0.756}^{+} (0.007)0.754+0.754^{+} (0.006)2047.71998.01998.0
sin0.525 (0.017)0.564+\mathbf{0.564}^{+} (0.020)0.554+0.554^{+} (0.010)2059.62014.02014.0

Table 7. Simulation results under the correlated design (corr⁡=0.5\operatorname{corr}=0.5).

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.836 (0.014)0.885+^{+} (0.008)0.900+^{+} (0.003)50.050.050.0
jump0.701 (0.010)0.696 (0.019)0.703 (0.012)50.050.050.0
sin0.777 (0.002)0.778 (0.005)0.787+^{+} (0.004)50.050.050.0
3smooth0.784 (0.017)0.817+^{+} (0.012)0.827+^{+} (0.004)406.3373.2373.2
jump0.713 (0.012)0.724+^{+} (0.013)0.719+^{+} (0.012)406.7374.1374.1
sin0.542 (0.019)0.591+^{+} (0.015)0.598+^{+} (0.018)406.0373.2373.2
5smooth0.768 (0.022)0.827+^{+} (0.013)0.832+^{+} (0.011)2056.72006.02006.0
jump0.742 (0.014)0.763+^{+} (0.007)0.758+^{+} (0.008)2057.82007.02007.0
sin0.457 (0.025)0.509+^{+} (0.014)0.510+^{+} (0.016)2072.52023.02023.0

Table 12. Simulation results under the skewed and correlated design (skewness = 0.5, corrcorr = 0.5).

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.834 (0.014)0.879+^{+} (0.014)0.895+^{+} (0.005)50.050.050.0
jump0.704 (0.006)0.702 (0.016)0.699 (0.009)50.050.050.0
sin0.773 (0.004)0.774 (0.008)0.782+^{+} (0.007)50.050.050.0
3smooth0.765 (0.030)0.807+^{+} (0.013)0.811+^{+} (0.006)320.4287.6287.6
jump0.702 (0.017)0.708 (0.012)0.703 (0.013)321.1287.9287.9
sin0.635 (0.013)0.667+^{+} (0.015)0.680+^{+} (0.013)322.2289.3289.3
5smooth0.747 (0.009)0.792+^{+} (0.015)0.796+^{+} (0.015)1456.81409.01409.0
jump0.768 (0.014)0.781+^{+} (0.009)0.781+^{+} (0.010)1462.51412.01412.0
sin0.622 (0.009)0.659+^{+} (0.007)0.659+^{+} (0.004)1439.01392.01392.0

Table 13. Simulation results under the skewed and correlated design (skewness = 0.5, corrcorr = 0.9).

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.798 (0.033)0.876+ (0.022)0.903+ (0.017)50.050.050.0
jump0.672 (0.011)0.661 (0.013)0.673 (0.014)50.050.050.0
sin0.777 (0.006)0.779 (0.011)0.789+ (0.006)50.050.050.0
3smooth0.745 (0.067)0.839+ (0.030)0.856+ (0.012)423.7390.7390.7
jump0.706 (0.007)0.710 (0.009)0.709 (0.009)422.8389.6389.6
sin0.518 (0.014)0.564+ (0.016)0.559+ (0.012)424.2391.4391.4
5smooth0.743 (0.117)0.873+ (0.024)0.877+ (0.020)2211.92165.02165.0
jump0.713 (0.011)0.732+ (0.010)0.731+ (0.008)2209.12161.02161.0
sin0.425 (0.022)0.486+ (0.026)0.477+ (0.028)2219.62171.02171.0

Table 14. Simulation results under the skewed and correlated design (skewness = 1, corr=0.1corr = 0.1). Avg. test R2R^2 (SD); Avg. total number of bases.

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.765 (0.026)0.870+ (0.023)0.904+ (0.016)50.050.050.0
jump0.670 (0.013)0.664 (0.011)0.671 (0.009)50.050.050.0
sin0.774 (0.006)0.777 (0.011)0.790+ (0.004)50.050.050.0
3smooth0.717 (0.028)0.807+ (0.026)0.819+ (0.030)406.2373.2373.2
jump0.701 (0.012)0.713+ (0.008)0.712+ (0.010)406.1373.1373.1
sin0.557 (0.013)0.586+ (0.022)0.585+ (0.020)405.8372.3372.3
5smooth0.747 (0.040)0.852+ (0.021)0.851+ (0.030)2052.52003.02003.0
jump0.735 (0.018)0.751+ (0.010)0.753+ (0.013)2055.82005.02005.0
sin0.457 (0.016)0.506+ (0.026)0.497+ (0.023)2045.81995.01995.0

Table 15. Simulation results under the skewed and correlated design (skewness = 1, corr=0.5corr = 0.5). Avg. test R2R^2 (SD); Avg. total number of bases.

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.778 (0.029)0.870+ (0.022)0.885+ (0.022)50.050.050.0
jump0.665 (0.018)0.655 (0.026)0.664 (0.014)50.050.050.0
sin0.776 (0.005)0.779 (0.006)0.790+ (0.005)50.050.050.0
3smooth0.712 (0.019)0.791+ (0.017)0.806+ (0.018)322.5289.8289.8
jump0.688 (0.008)0.693 (0.013)0.689 (0.011)322.5289.8289.8
sin0.649 (0.008)0.680+ (0.019)0.687+ (0.012)321.6288.6288.6
5smooth0.710 (0.032)0.802+ (0.013)0.802+ (0.022)1445.11396.01396.0
jump0.764 (0.006)0.776+ (0.006)0.773+ (0.007)1443.31392.01392.0
sin0.610 (0.012)0.647+ (0.011)0.643+ (0.012)1453.31405.01405.0

Table 16. Simulation results under the skewed and correlated design (skewness = 1, corr=0.9corr = 0.9). Avg. test R2R^2 (SD); Avg. total number of bases.

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.711 (0.046)0.869{sup}+` (0.052)**0.897{sup}+` (0.051)50.050.050.0
jump0.523 (0.015)0.515 (0.018)0.525 (0.020)50.050.050.0
sin0.755 (0.006)0.748 (0.011)0.773{sup}+` (0.006)50.050.050.0
3smooth0.638 (0.085)0.793{sup}+` (0.092)0.825{sup}+` (0.097)422.6389.5389.5
jump0.686 (0.013)0.698{sup}+` (0.009)0.695{sup}+` (0.010)424.1390.9390.9
sin0.530 (0.012)0.568{sup}+` (0.012)0.574{sup}+` (0.015)422.8389.9389.9
5smooth0.712 (0.044)0.870{sup}+` (0.048)0.868{sup}+` (0.041)2199.62150.02150.0
jump0.696 (0.011)0.711{sup}+` (0.011)0.713{sup}+` (0.010)2202.72154.02154.0
sin0.474 (0.021)0.503{sup}+` (0.020)0.510{sup}+` (0.020)2203.82154.02154.0

Table 17. Simulation results under the skewed and correlated design (skewness = 2, corr=0.1corr = 0.1). Avg. test R2R^2 (SD); Avg. total number of bases.

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.705 (0.067)0.854{sup}+` (0.064)0.903{sup}+` (0.051)50.050.050.0
jump0.532 (0.016)0.515{sup}−` (0.025)0.524 (0.015)50.050.050.0
sin0.758 (0.007)0.759 (0.008)0.775{sup}+` (0.006)50.050.050.0
3smooth0.634 (0.063)0.807{sup}+` (0.043)0.841{sup}+` (0.047)407.1373.8373.8
jump0.677 (0.010)0.682 (0.011)0.677 (0.009)405.4372.4372.4
sin0.529 (0.021)0.541{sup}+` (0.022)0.555{sup}+` (0.020)407.8374.8374.8
5smooth0.703 (0.050)0.820{sup}+` (0.107)0.872{sup}+` (0.040)2053.62004.02004.0
jump0.724 (0.007)0.732 (0.011)0.739{sup}+` (0.006)2045.11997.01997.0
sin0.458 (0.014)0.498{sup}+` (0.020)0.501{sup}+` (0.024)2042.61994.01994.0

Table 18. Simulation results under the skewed and correlated design (skewness = 2, corr=0.5corr = 0.5). Avg. test R2R^2 (SD); Avg. total number of bases.

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.726 (0.035)0.877{sup}+` (0.030)0.917{sup}+` (0.029)50.050.050.0
jump0.529 (0.013)0.515 (0.018)0.522 (0.014)50.050.050.0
sin0.759 (0.008)0.760 (0.010)0.772{sup}+` (0.005)50.050.050.0
3smooth0.615 (0.062)0.768{sup}+` (0.062)0.815{sup}+` (0.055)320.4287.1287.1
jump0.663 (0.012)0.662 (0.012)0.657 (0.017)322.6289.6289.6
sin0.575 (0.021)0.604{sup}+` (0.012)0.618{sup}+` (0.009)324.0290.8290.8
5smooth0.657 (0.065)0.813{sup}+` (0.032)0.851{sup}+` (0.040)1459.31410.01410.0
jump0.766 (0.009)0.766 (0.010)0.773 (0.008)1444.51395.01395.0
sin0.572 (0.014)0.599{sup}+` (0.019)0.612{sup}+` (0.010)1446.11399.01399.0

Table 19. Simulation results under the skewed and correlated design (skewness = 2, corr=0.9corr = 0.9). Avg. test R2R^2 (SD); Avg. total number of bases.

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.629 (0.038)0.844+0.844^{+} (0.050)0.887+\mathbf{0.887}^{+} (0.056)50.050.050.0
jump0.387 (0.030)0.367 (0.043)0.409\mathbf{0.409} (0.014)50.050.050.0
sin0.613 (0.013)0.601−0.601^{-} (0.019)0.641+\mathbf{0.641}^{+} (0.009)50.050.050.0
3smooth0.340 (0.475)0.797+0.797^{+} (0.074)0.828+\mathbf{0.828}^{+} (0.099)422.1388.9388.9
jump0.626 (0.009)0.644+0.644^{+} (0.015)0.662+\mathbf{0.662}^{+} (0.007)421.0388.2388.2
sin0.555 (0.022)0.578+0.578^{+} (0.025)0.582+\mathbf{0.582}^{+} (0.027)423.7390.2390.2
5smooth0.630 (0.085)0.867+0.867^{+} (0.040)0.878+\mathbf{0.878}^{+} (0.048)2185.32136.02136.0
jump0.655 (0.012)0.693+0.693^{+} (0.012)0.702+\mathbf{0.702}^{+} (0.007)2186.12135.02135.0
sin0.525 (0.015)0.554+0.554^{+} (0.020)0.557+\mathbf{0.557}^{+} (0.019)2183.12133.02133.0

Table 20. Simulation results under the skewed and correlated design (skewness = 3, corr=0.1corr = 0.1).

ppScenarioQuantilekk-meansPAMQuantilekk-meansPAM
1smooth0.641 (0.080)0.821+0.821^{+} (0.097)0.918+\mathbf{0.918}^{+} (0.053)50.050.050.0
jump0.392 (0.025)0.395 (0.039)0.414+\mathbf{0.414}^{+} (0.016)50.050.050.0
sin0.609 (0.007)0.606 (0.016)0.641+\mathbf{0.641}^{+} (0.006)50.050.050.0
3smooth0.519 (0.130)0.772+0.772^{+} (0.133)0.809+\mathbf{0.809}^{+} (0.132)406.6373.6373.6
jump0.601 (0.010)0.621+0.621^{+} (0.013)0.639+\mathbf{0.639}^{+} (0.013)406.5373.4373.4
sin0.552 (0.017)0.574+0.574^{+} (0.013)0.580+\mathbf{0.580}^{+} (0.016)405.9372.7372.7
5smooth0.647 (0.046)0.865+0.865^{+} (0.063)0.876+\mathbf{0.876}^{+} (0.061)2031.21984.01984.0
jump0.683 (0.011)0.718+0.718^{+} (0.011)0.722+\mathbf{0.722}^{+} (0.010)2028.01980.01980.0
sin0.532 (0.018)0.563+0.563^{+} (0.018)0.565+\mathbf{0.565}^{+} (0.017)2042.71996.01996.0

Table 21. Simulation results under the skewed and correlated design (skewness = 3, corr=0.5corr = 0.5).

Detailed real-world data results

This appendix contains the full repeated 10-fold cross-validation tables for each of the nine real-world datasets (Table 23–Table 31). Number of knots gives the first-, second- and third-degree knot budgets of the quantile-based discretization (§ 4); Avg. MSE (SD) is the mean and SD over the 10 repeats of the cross-validated MSE, with the lowest mean in bold; and Avg. total number of bases is the number of columns of the HAL design matrix, averaged over the 100 fits (10 folds ×\times 10 repeats). No difference from Quantile was significant by the corrected test of § 6.1, so no +/− markers appear.

Number of knotsAvg. MSE (SD)Avg. total number of bases
Quantilekk-meansPAMQuantilekk-meansPAM
20, 10, 50.3444 (0.0236)0.3362 (0.0322)0.3140 (0.0297)15295.611269.511269.5
30, 10, 50.3533 (0.0174)0.3460 (0.0445)0.3220 (0.0264)15325.011297.411297.4
40, 10, 50.3481 (0.0152)0.3401 (0.0251)0.3162 (0.0326)15373.611327.611327.6
50, 10, 50.3460 (0.0245)0.3275 (0.0384)0.3142 (0.0310)15391.411332.911332.9
60, 10, 50.3502 (0.0222)0.3334 (0.0388)0.3185 (0.0253)15398.611335.211335.2
70, 10, 50.3418 (0.0144)0.3434 (0.0294)0.3135 (0.0282)15402.011336.111336.1
80, 10, 50.3474 (0.0248)0.3340 (0.0397)0.3280 (0.0286)15404.811336.811336.8
90, 10, 50.3415 (0.0197)0.3433 (0.0263)0.3134 (0.0354)15407.911337.511337.5
100, 10, 50.3395 (0.0215)0.3433 (0.0311)0.3151 (0.0263)15410.511338.011338.0

Table 24. Repeated 10-fold cross-validation results for the automobile dataset.

Number of knotsAvg. MSE (SD) QuantileAvg. MSE (SD) kk-meansAvg. MSE (SD) PAMAvg. total number of bases QuantileAvg. total number of bases kk-meansAvg. total number of bases PAM
20, 10, 50.0296 (0.0011)0.0287 (0.0008)0.0288 (0.0010)50002.349633.149633.1
30, 10, 50.0291 (0.0010)0.0290 (0.0009)0.0289 (0.0008)50126.449750.549750.5
40, 10, 50.0289 (0.0011)0.0293 (0.0009)0.0289 (0.0008)50228.049847.149847.1
50, 10, 50.0290 (0.0010)0.0289 (0.0011)0.0288 (0.0007)50344.149956.649956.6
60, 10, 50.0289 (0.0011)0.0291 (0.0010)0.0288 (0.0008)50420.650029.350029.3
70, 10, 50.0288 (0.0012)0.0292 (0.0010)0.0287 (0.0009)50571.750163.250163.2
80, 10, 50.0288 (0.0011)0.0290 (0.0007)0.0288 (0.0007)50688.450260.450260.4
90, 10, 50.0287 (0.0011)0.0289 (0.0009)0.0287 (0.0009)50771.850321.550321.5
100, 10, 50.0286 (0.0011)0.0290 (0.0007)0.0288 (0.0009)50772.450321.850321.8

Table 25. Repeated 10-fold cross-validation results for the communities and crime dataset.

Number of knotsAvg. MSE (SD) QuantileAvg. MSE (SD) kk-meansAvg. MSE (SD) PAMAvg. total number of bases QuantileAvg. total number of bases kk-meansAvg. total number of bases PAM
20, 10, 50.1551 (0.0020)0.1497 (0.0023)0.1524 (0.0020)4535.84503.14503.1
30, 10, 50.1551 (0.0028)0.1502 (0.0032)0.1519 (0.0026)4582.34544.94544.9
40, 10, 50.1522 (0.0034)0.1506 (0.0021)0.1512 (0.0016)4635.14589.54589.5
50, 10, 50.1525 (0.0028)0.1490 (0.0040)0.1512 (0.0017)4695.64636.64636.6
60, 10, 50.1525 (0.0036)0.1488 (0.0017)0.1517 (0.0015)4722.64653.64653.6
70, 10, 50.1528 (0.0031)0.1488 (0.0023)0.1520 (0.0027)4747.54666.84666.8
80, 10, 50.1527 (0.0033)0.1506 (0.0046)0.1511 (0.0019)4769.44676.24676.2
90, 10, 50.1522 (0.0032)0.1500 (0.0022)0.1520 (0.0023)4790.84685.44685.4
100, 10, 50.1526 (0.0032)0.1494 (0.0031)0.1512 (0.0019)4808.44692.94692.9

Table 26. Repeated 10-fold cross-validation results for the pima dataset.

Number of knotsAvg. MSE (SD) QuantileAvg. MSE (SD) kk-meansAvg. MSE (SD) PAMAvg. total number of bases QuantileAvg. total number of bases kk-meansAvg. total number of bases PAM
20, 10, 50.2163 (0.0041)0.2114 (0.0033)0.2110 (0.0061)2173.42100.32100.3
30, 10, 50.2147 (0.0059)0.2155 (0.0037)0.2099 (0.0059)2213.42132.32132.3
40, 10, 50.2141 (0.0063)0.2123 (0.0058)0.2099 (0.0057)2253.42164.32164.3
50, 10, 50.2133 (0.0063)0.2128 (0.0035)0.2100 (0.0057)2293.42196.32196.3
60, 10, 50.2127 (0.0052)0.2138 (0.0051)0.2113 (0.0054)2333.42228.32228.3
70, 10, 50.2152 (0.0062)0.2121 (0.0065)0.2107 (0.0063)2373.42260.32260.3
80, 10, 50.2129 (0.0080)0.2121 (0.0037)0.2113 (0.0049)2413.42292.32292.3
90, 10, 50.2118 (0.0055)0.2153 (0.0054)0.2103 (0.0059)2453.42324.32324.3
100, 10, 50.2130 (0.0063)0.2101 (0.0034)0.2115 (0.0054)2493.42356.32356.3

Table 27. Repeated 10-fold cross-validation results for the oecdpanel dataset.

Number of knotsQuantilekk-meansPAMQuantilekk-meansPAM
20, 10, 5428656 (15380)416109 (16174)427174 (11184)8387.57459.77459.7
30, 10, 5430422 (18482)415528 (13373)426037 (10391)8427.57479.77479.7
40, 10, 5426395 (18286)421613 (14871)425259 (10476)8467.57499.77499.7
50, 10, 5420270 (15761)416930 (14592)426131 (14272)8507.57519.77519.7
60, 10, 5418502 (13593)415577 (15114)428546 (13129)8547.57539.77539.7
70, 10, 5419519 (14943)416526 (15837)429209 (12011)8587.57559.77559.7
80, 10, 5415991 (12950)412263 (9918)427585 (12743)8627.57579.77579.7
90, 10, 5419276 (13439)415075 (13411)428498 (12088)8667.57599.77599.7
100, 10, 5418833 (16393)411326 (13626)423821 (11500)8707.57619.77619.7

Table 28. Repeated 10-fold cross-validation results for the bike sharing dataset. Avg. MSE (SD); Avg. total number of bases.

Number of knotsQuantilekk-meansPAMQuantilekk-meansPAM
20, 10, 58.893 (0.144)8.986 (0.172)8.982 (0.131)1701.31689.21689.2
30, 10, 58.895 (0.141)9.011 (0.165)9.004 (0.145)1742.81730.71730.7
40, 10, 58.938 (0.131)8.950 (0.104)8.978 (0.215)1764.91748.51748.5
50, 10, 58.876 (0.132)9.012 (0.147)8.984 (0.138)1800.61777.01777.0
60, 10, 58.893 (0.117)9.024 (0.131)8.989 (0.191)1812.71786.81786.8
70, 10, 58.892 (0.118)8.940 (0.124)8.995 (0.154)1845.61811.31811.3
80, 10, 58.912 (0.113)9.069 (0.130)8.980 (0.188)1873.81828.41828.4
90, 10, 58.885 (0.130)9.027 (0.261)8.990 (0.150)1892.41839.51839.5
100, 10, 58.913 (0.139)9.001 (0.161)8.983 (0.147)1910.21850.11850.1

Table 29. Repeated 10-fold cross-validation results for the liver disorders dataset. Avg. MSE (SD); Avg. total number of bases.

Number of knotsQuantilekk-meansPAMQuantilekk-meansPAM
20, 10, 50.1948 (0.0058)0.1945 (0.0039)0.1939 (0.0055)14412.114283.714283.7
30, 10, 50.1944 (0.0059)0.1994 (0.0058)0.1924 (0.0051)14483.214339.614339.6
40, 10, 50.1967 (0.0067)0.1995 (0.0060)0.1947 (0.0082)14561.714403.414403.4
50, 10, 50.1946 (0.0044)0.1983 (0.0075)0.1922 (0.0057)14607.514436.114436.2
60, 10, 50.1936 (0.0033)0.1984 (0.0060)0.1944 (0.0086)14658.414466.914466.9
70, 10, 50.1947 (0.0044)0.1980 (0.0058)0.1955 (0.0076)14679.814478.514478.5
80, 10, 50.1948 (0.0051)0.1949 (0.0054)0.1946 (0.0061)14702.614491.114491.2
90, 10, 50.1958 (0.0067)0.1964 (0.0052)0.1957 (0.0087)14788.114532.014532.0
100, 10, 50.1943 (0.0052)0.1975 (0.0046)0.1941 (0.0067)14796.514535.814535.9

Table 30. Repeated 10-fold cross-validation results for the laheart dataset. Avg. MSE (SD); Avg. total number of bases.

References

  1. [1]G James et al. An Introduction to Statistical Learning. with Applications in R. Springer Texts in Statistics 103. New York: Springer, 2013. DOI: 10.1007/978-1-4614-7138-7.
  2. [2]G Casella and RL Berger. Statistical Inference. 2nd ed. Thomson Learning, 2002.
  3. [3]MJ van der Laan and D Rubin. “Targeted Maximum Likelihood Learning”. In: The International Journal of Biostatistics 2.1, 11 (2006). DOI: 10.2202/1557-4679.1043.DOI
  4. [4]MJ van der Laan and S Rose. Targeted Learning. Causal Inference for Observational and Experimental Data. Springer Series in Statistics. New York: Springer, 2011. DOI: 10.1007/978-1-4419-9782-1.DOI
  5. [5]AA Tsitsias. Semiparametric Theory and Missing Data. Springer Series in Statistics. New York: Springer, 2006. DOI: 10.1007/0-387-37345-4.
  6. [6]EA Nadaraya. “On Estimating Regression”. In: Theory of Probability & Its Applications 9.1 (1964), pp. 141–142.DOI
  7. [7]GS Watson. “Smooth Regression Analysis”. In: Sankhyā: The Indian Journal of Statistics, Series A 26.4 (1964), pp. 359–372.
  8. [8]D Benkeser and MJ van der Laan. “The Highly Adaptive Lasso Estimator”. In: 2016 IEEE International Conference on Data Science and Advanced Analytics (DSAA). 2016, pp. 689–696. DOI: 10.1109/DSAA.2016.93.DOI
  9. [9]AF Bibaut and MJ van der Laan. Fast rates for empirical risk minimization over càdlàg functions with bounded sectional variation norm. 2019. arXiv: 1907.09244.arxiv.org/abs/1907.09244
  10. [10]A Schuler, Y Li, and MJ van der Laan. Lassoed Tree Boosting. 2022. arXiv: 2205.10697.arxiv.org/abs/2205.10697
  11. [11]JR Coyle et al. hal9001: The Scalable Highly Adaptive Lasso. R package version 0.4.3. 2022. DOI: 10.5281/zenodo.3558313. URL: https://github.com/tlverse/hal9001.
  12. [12]NS Hejazi, JR Coyle, and MJ van der Laan. “hal9001: Scalable highly adaptive lasso regression in R”. In: Journal of Open Source Software 5.53, 2526 (2020). DOI: 10.21105/joss.02526.
  13. [13]R Tibshirani. “Regression Shrinkage and Selection via the Lasso”. In: Journal of the Royal Statistical Society: Series B (Methodological) 58.1 (1996), pp. 267–288. DOI: 10.1111/j.2517-6161.1996.tb02080.x.DOI
  14. [14]G Neuhaus. “On Weak Convergence of Stochastic Processes with Multidimensional Time Parameter”. In: The Annals of Mathematical Statistics 42.4 (1971), pp. 1285–1295. DOI: 10.1214/aoms/1177693241.DOI
  15. [15]RD Gill, MJ van der Laan, and JA Wellner. “Inefficient estimators of the bivariate survival function for three models”. In: Annales de l’Institut Henri Poincaré, Probabilités et Statistiques 31.3 (1995), pp. 545–597.
  16. [16]B Fang, A Guntuboyina, and B Sen. “Multivariate extensions of isotonic regression and total variation denoising via entire monotonicity and Hardy–Krause variation”. In: The Annals of Statistics 49.2 (2021), pp. 769–792. DOI: 10.1214/20-AOS1977.DOI
  17. [17]MJ van der Laan, D Benkeser, and W Cai. “Efficient estimation of pathwise differentiable target parameters with the undersmoothed highly adaptive lasso”. In: The International Journal of Biostatistics 19.1 (2023), pp. 261–289. DOI: 10.1515/ijb-2019-0092.DOI
  18. [18]L Kaufman and PJ Rousseeuw. Finding Groups in Data: An Introduction to Cluster Analysis. New York: Wiley, 1990.
  19. [19]J Schlimmer. Automobile. UCI Machine Learning Repository. 1987. DOI: 10.24432/C5B01C.
  20. [20]M Redmond. Communities and Crime. UCI Machine Learning Repository. 2009. DOI: 10.24432/C53W3X.
  21. [21]Liver Disorders. UCI Machine Learning Repository. 1990. DOI: 10.24432/C54G67.
  22. [22]H Fanaee-T. Bike Sharing. UCI Machine Learning Repository. 2013. DOI: 10.24432/C5W894.
  23. [23]J Feldmesser. Computer Hardware. UCI Machine Learning Repository. 1987. DOI: 10.24432/C5830D.DOI
  24. [24]A Affi and SP Azen. Statistical Analysis: A Computer Oriented Approach. 1979.
  25. [25]I-C Yeh. Real Estate Valuation. UCI Machine Learning Repository. 2018. DOI: 10.24432/C5J30W.DOI
  26. [26]Z Liu and T Stengos. “Non-Linearities in Cross-Country Growth Regressions: A Semiparametric Approach”. In: Journal of Applied Econometrics 14 (1999), pp. 527–538.doi.org/10.1002/(sici)1099-1255(199909/10)14:5<527::aid-jae528>3.0.co;2-x
  27. [27]T Hayfield and JS Racine. “Nonparametric Econometrics: The np Package”. In: Journal of Statistical Software 27.5 (2008), pp. 1–32. DOI: 10.18637/jss.v027.i05.
  28. [28]JW Smith et al. “Using the ADAP Learning Algorithm to Forecast the Onset of Diabetes Mellitus”. In: Proceedings of the Annual Symposium on Computer Application in Medical Care. 1988, pp. 261–265.
  29. [29]C Nadeau and Y Bengio. “Inference for the Generalization Error”. In: Machine Learning 52.3 (2003), pp. 239–281. DOI: 10.1023/A:1024068626366.DOI
  30. [30]RR Bouckaert and E Frank. “Evaluating the Replicability of Significance Tests for Comparing Learning Algorithms”. In: Advances in Knowledge Discovery and Data Mining (PAKDD 2004). Vol. 3056. Lecture Notes in Computer Science. Springer, 2004, pp. 3–12. DOI: 10.1007/978–3–540–24775–3_3.
  31. [31]J Demšar. “Statistical Comparisons of Classifiers over Multiple Data Sets”. In: Journal of Machine Learning Research 7 (2006), pp. 1–30.DOI

Paper details

vlnc:W_y2dcpr4e
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents