EconBase
← Back to paper

Testing Tail-Index Homogeneity via Exceedance-Covariate Independence

The exact contents of citations.db main_text.text for this paper — one flattened LaTeX string, title through conclusion, appendix excluded, unmodified except for removing email addresses. This is what our citation measures are computed over.

53,280 characters

Testing Tail-Index Homogeneity via Exceedance--Covariate Independence


\title{\textbf{Testing Tail-Index Homogeneity via Exceedance--Covariate
Independence}}
\author{Thomas T. Yang\thanks{Email: \protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect[email removed].
Replication Package: \protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\protect\href{http://github.com/youngtigers/tail_index_test}{github.com/youngtigers/tail\_index\_test}}\\
 Australian National University}
\date{\today}

\maketitle

\begin{abstract}
We propose a test of whether the tail index of a heavy-tailed outcome
is homogeneous across observed covariates. The key observation is
that, under tail-index homogeneity, normalized log exceedances are
asymptotically independent of the covariates even when tail frequencies
vary with them. This leads to a simple-to-implement permutation test
based on distance covariance, without estimating conditional tail
indices or specifying the form of tail-index heterogeneity. For the
global and locally balanced versions, we establish validity for order-statistic
thresholds and give conditions for consistency and local power. Local
balancing selects extremes within two covariate groups and can improve
power when tail selection concentrates the covariates. Simulations
illustrate these gains. In French motor insurance data, upper conditional
quantiles vary with risk characteristics, but the tail-index tests
do not reject a common tail index.

\vspace{4mm}
 \medskip{}
 \par\noindent {\small{\em Keywords\/}: Tail index, Extreme value theory, Distance covariance,
Independence test}
\end{abstract}
\newpage{} \setstretch{1.7}

\section{Introduction}

\label{sec:introduction}

The tail index governs tail-probability decay, the existence of higher-order
moments, and extreme-quantile extrapolation \citep{deHaanFerreira2006}.
Classical estimators such as \citet{Hill1975} treat it as a scalar
feature of a homogeneous population. In finance, environmental studies,
and insurance, however, tail thickness may depend on observed characteristics.
We ask whether covariates change the frequency or scale of extremes,
or also their tail-decay rate. Our application to French motor third-party
liability claims illustrates this distinction: BonusMalus is positively
associated with upper conditional claim quantiles, and vehicle power
is significant at the 0.95 quantile, yet the tests do not reject a
common tail index. Covariate effects on large claims therefore need
not imply differences in tail thickness.

Tail-index homogeneity is also an important assumption behind standard
methods for extreme conditional quantiles. The heavy-tailed specialization
of the extremal quantile-regression theory of \citet{Chernozhukov2005}
and the extrapolation framework of \citet{WangLiHe2012} impose a
common tail index. If the tail index varies, these extrapolations
are misspecified, and the error grows with the extrapolation range.
For example, imposing a tail exponent that is too large for a high-risk
group can severely understate its extreme losses and the capital needed
to cover them. A test of homogeneity is therefore a natural diagnostic
before applying them.

To formalize the tail behavior, consider the conditional regular-variation
model
\[
\bar{F}(y\mid x):=\Pr(Y>y\mid X=x)=\kappa(x)y^{-\alpha(x)}L(y;x),\qquad y\ \text{large enough},
\]
where $\alpha(x)>0$, $\kappa(x)>0$, $L(\cdot;x)$ is slowly varying
in its first argument, and normalized so that $L(y;x)\to1$ as $y\to\infty$.
Without normalization, $\tilde{L}(y;x)=\kappa(x)L(y;x)$ is a general
slow varying function. We test
\[
H_{0}:\ \alpha(x)=\alpha_{0}\quad\text{for almost every }x
\]
against general covariate dependence of $\alpha(x)$. The null allows
the leading tail-frequency term $\kappa(x)$ and second-order tail
behavior to vary with $x$.

The core idea is that, under $H_{0}$, the log normalized exceedance
$\log(Y/w)$ is asymptotically independent of $X$ conditional on
$Y>w$. This gives a way to test homogeneity without estimating tail
indices.

To see why, for a high threshold $w$, define $Z:=Y/w$. Then, for
$r\geq1$,
\[
\Pr(Z>r\mid X=x,Y>w)=r^{-\alpha(x)}\frac{L(rw;x)}{L(w;x)}.
\]
The factor $\kappa(x)$ cancels from this ratio. Under a uniform regular-variation
condition, the slowly varying ratio tends to one uniformly in $x$
for each fixed $r$ as $w\to\infty$. Hence, under $H_{0}$,
\[
\Pr(Z>r\mid X=x,Y>w)\longrightarrow r^{-\alpha_{0}},\qquad r\geq1,
\]
which no longer depends on $x$. The same independence restriction
holds after taking logarithms.

We test this independence using distance covariance \citep{SzekelyRizzoBakirov2007},
which detects nonlinear, multivariate dependence, and calibrate by
permutation. The global test is consistent when its dependence signal
is large relative to sampling noise. Under fixed alternatives, however,
tail selection favors smaller tail indices \citep{Yang2026} and can
weaken this signal. Local balancing can protect power by selecting
extremes within two covariate groups before pooling. We also give
a sample-split adaptive version: an independent training subsample
learns whether an observation that already exceeds a high threshold
also exceeds a higher one, and a simple second-order probit score
uses this signal to form two approximately equal groups in the inference
subsample.

Existing tests of conditional tail-index homogeneity usually start
with a model for the conditional tail or extreme quantiles. They then
test a restriction within that model. For example, \citet{WangTsai2009}
model the Pareto index parametrically, \citet{WangLi2013} develop
a power-transformed quantile-regression framework, \citet{KinsvaterFried2017}
consider regression and rank-based procedures for conditional tail
behavior, and \citet{MomokiYoshida2024} study tests in structured
varying-coefficient tail-index models. A related literature examines
homogeneity across other settings. \citet{EinmahlDeHaanZhou2016}
allow the frequency of extremes to vary under a common extreme-value
index, \citet{deHaanZhou2021} test variation over a deterministic
design, \citet{EinmahlYangZhou2021} study constancy across angular
regions in multivariate regular variation, and \citet{ChenZhou2026}
study equality of extreme-value indices across many dimensions. These
approaches are useful when the form of the tail-index difference is
itself of interest. The radial-angular factorization used by \citet{WanDavis2019}
is mathematically related to our conditional-exceedance characterization,
but their objective is threshold selection.

Our contribution is to use conditional-exceedance independence as
an omnibus specification device without estimating tail indices. The
main theoretical difficulty is that independence holds only asymptotically
under the null. We account for finite-threshold dependence, establish
uniform validity that justifies order-statistic thresholds, and give
consistency and $K_{n}^{-1/2}$ local-power results for the global
and locally balanced tests. A short conditioning argument gives null
validity for a two-group partition learned on an independent training
subsample. The fixed-alternative limit also carries over when the
learned groups stabilize. This treatment connects to the approximate-randomization
literature, including \citet{ChungRomano2013}, \citet{CanayRomanoShaikh2017}
and \citet{CanayKamat2018}.

Simulations show competitive performance and gains from balancing
under strong tail concentration. In the insurance application, the
non-rejections by our test and the Wang--Li and Kinsvater--Fried
procedures motivate considering common-tail-index quantile methods,
although they do not establish homogeneity.

The remainder of the paper is organized as follows. Section~\ref{sec:model}
presents the model and the tail-independence characterization. Section~\ref{sec:test}
constructs the distance-covariance test. Section~\ref{sec:null-validity}
establishes permutation validity, and Section~\ref{sec:power} studies
power. Section~\ref{sec:simulations} reports the Monte Carlo experiments.
Section~\ref{sec:application} presents the insurance application,
and the final section concludes. Additional discussion and all technical
proofs are collected in the appendices.

\section{Model and Tail-Independence Characterization}

\label{sec:model}

Let $\{(Y_{i},X_{i}):1\leq i\leq n\}$ be independent copies of $(Y,X)$,
where $Y>0$. For the continuous-covariate power results below, $X\in\mathbb{R}^{d}$
has density $f_{X}$ with support $\mathcal{X}$. The null permutation
arguments also apply to discrete covariates, with sums replacing covariate
integrals. Suppose
\begin{equation}
\bar{F}(y\mid x)=\kappa(x)y^{-\alpha(x)}L(y;x),\qquad y\geq y_{0},\label{eq:tail-model}
\end{equation}
with $\kappa(x)>0$, $\alpha(x)$ bounded away from zero and infinity
on the relevant support, and $L(\cdot;x)$ positive, slowly varying
in its first argument, and normalized so that $L(y;x)\to1$ for each
fixed $x$. We test
\begin{align*}
H_{0} & :\ \alpha(x)=\alpha_{0}\quad P_{X}\text{-almost surely},\\
H_{1} & :\ \alpha(x)\ \text{is not }P_{X}\text{-almost surely constant}.
\end{align*}
The null allows $\kappa(x)$ to vary freely subject to regularity
conditions and permits covariate-dependent second-order behavior through
$L(y;x)$. For Pareto-type tails, the usual extreme-value index is
$\gamma(x)=1/\alpha(x)$, so homogeneity of $\alpha(x)$ and $\gamma(x)$
is equivalent.

We first develop the theory for a deterministic threshold $w_{n}\to\infty$
and define
\[
p_{n}:=\Pr(Y>w_{n}),\qquad K_{n}:=np_{n},
\]
where $p_{n}\to0$ and $K_{n}\to\infty$. For this fixed-threshold
construction, $K_{n}$ is the expected number of exceedances. The
realized number is
\[
\mathcal{I}_{n}:=\{i:Y_{i}>w_{n}\},\qquad N_{n}:=|\mathcal{I}_{n}|.
\]
For the order-statistic construction below, $K_{n}$ instead denotes
the chosen number of retained observations. With a fixed threshold,
the selected observations are iid conditional on $N_{n}$. This helps
in the main null calculation. Section~\ref{sec:null-validity} then
proves permutation validity for a range of increasing thresholds and
for the order-statistic threshold used in applications. For $i\in\mathcal{I}_{n}$,
define
\[
Z_{i,n}:=Y_{i}/w_{n},\qquad Z_{i,n}^{*}:=\log Z_{i,n}.
\]
We use the log exceedance rather than the raw normalized exceedance.
The monotone transformation leaves the independence restriction unchanged,
but it replaces a limiting Pareto variable, whose first moment is
infinite when $\alpha_{0}\leq1$, by an $\operatorname{Exp}(\alpha_{0})$ variable
with moments of all orders.

At finite thresholds, departures from the limiting Pareto form can
create covariate dependence even under the null. The following uniform
Hall expansion, \citet{Hall1982}, uses $D(x)$ and $\beta(x)$ to
describe the magnitude and decay rate of these departures. Together
with the threshold-rate conditions below, it controls this bias so
that it does not cause asymptotic over-rejection.

\begin{assumption}[Uniform Hall expansion]\label{ass:hall} There
exist a constant $\underline{\beta}>0$, a measurable function $\beta(x)\geq\underline{\beta}$,
a bounded measurable function $D(x)$, and a remainder $r(y,x)$ such
that
\[
L(y;x)=1+D(x)y^{-\beta(x)}+r(y,x),\qquad y\geq y_{0},
\]
with $\sup_{x\in\mathcal{X}}|D(x)|<\infty$. The remainder is differentiable
in $y$ for sufficiently large $y$ and satisfies
\begin{equation}
\sup_{x\in\mathcal{X}}\sup_{u\geq y}u^{\beta(x)}\left\{ |r(u,x)|+u|\partial_{u}r(u,x)|\right\} \longrightarrow0.\label{eq:hall-remainder}
\end{equation}
\end{assumption}

Write
\[
a_{n}:=w_{n}^{-\underline{\beta}},\qquad\lambda_{n}(x):=w_{n}^{-[\beta(x)-\underline{\beta}]}.
\]
Then $w_{n}^{-\beta(x)}=a_{n}\lambda_{n}(x)$. Because $L(y;x)$ is
normalized to converge to one, $\kappa(x)$ is the leading tail-frequency
coefficient and remains unrestricted across $x$. The lower bound
$\underline{\beta}$ provides a common envelope for the second-order
bias. No common value of $\beta(x)$ is imposed.

Under $H_{0}$, for each fixed $z\geq0$,
\[
\Pr(Z_{i,n}^{*}>z\mid X_{i}=x,Y_{i}>w_{n})=e^{-\alpha_{0}z}\frac{L(w_{n}e^{z};x)}{L(w_{n};x)}.
\]
Applying Assumption~\ref{ass:hall} gives, uniformly in $x$,
\begin{align}
 & \Pr(Z_{i,n}^{*}>z\mid X_{i}=x,Y_{i}>w_{n})\nonumber \\
 & \quad=e^{-\alpha_{0}z}\left[1+a_{n}\lambda_{n}(x)D(x)\{e^{-\beta(x)z}-1\}+o(a_{n})\right].\label{eq:hall-exceedance}
\end{align}
The uniform remainder follows from \eqref{eq:hall-remainder} and
$w_{n}^{-\beta(x)}\leq w_{n}^{-\underline{\beta}}=a_{n}$. Hence the
conditional distribution of $Z_{i,n}^{*}$ approaches an $\operatorname{Exp}(\alpha_{0})$
distribution that does not depend on $x$. Thus $Z_{i,n}^{*}$ and
$X_{i}$ are asymptotically independent within the selected tail sample.
We therefore use the independence restriction as a direct way to test
$H_{0}$ without estimating $\alpha(x)$.

\section{Test Construction}

\label{sec:test}

The procedure uses only the exceedance observations. Throughout this
section Euclidean distance is used on the support of $X$. We begin
with the deterministic threshold $w_{n}$. Because the original sample
is iid, conditional on $N_{n}$ the selected pairs $(Z_{j}^{*,e},X_{j}^{e})$,
$j=1,\ldots,N_{n}$, are iid from the joint density
\[
f_{n}(x,z):=f_{X,n}(x)f_{n}(z\mid x),\qquad f_{X,n}(x):=\frac{f_{X}(x)\Pr(Y>w_{n}\mid X=x)}{\Pr(Y>w_{n})},
\]
where $f_{n}(z\mid x)$ is the density of $\log(Y/w_{n})$ conditional
on $X=x,Y>w_{n}$. Under $H_{0}$, \eqref{eq:hall-exceedance} makes
$f_{n}(z\mid x)$ approach the same exponential density for every
$x$. We exploit this implication directly with an independence test.
We first define the distance-covariance statistic and permutation
calibration, then describe the global and locally balanced ways of
selecting the exceedances. Sections~\ref{sec:null-validity} and~\ref{sec:power}
establish their null validity and power properties.

\subsection{Distance covariance statistic}

Let $D^{Z}$ and $D^{X}$ denote the pairwise distance matrices in
the selected tail sample:
\[
D_{j\ell}^{Z}:=\left|Z_{j}^{*,e}-Z_{\ell}^{*,e}\right|,\qquad D_{j\ell}^{X}:=\left\Vert X_{j}^{e}-X_{\ell}^{e}\right\Vert ,\qquad j,\ell=1,\ldots,N_{n}.
\]
Let $H_{N}:=I_{N_{n}}-N_{n}^{-1}\bm{1}\bm{1}'$ and define the double-centered
distance matrices
\[
A:=H_{N}D^{Z}H_{N},\qquad B:=H_{N}D^{X}H_{N}.
\]
The sample squared distance covariance is
\begin{equation}
\widehat{\Delta}_{n}:=\widehat{\operatorname{dCov}}_{n}^{\,2}(Z^{*},X)=\frac{1}{N_{n}^{2}}\sum_{j=1}^{N_{n}}\sum_{\ell=1}^{N_{n}}A_{j\ell}B_{j\ell}=\frac{1}{N_{n}^{2}}\operatorname{tr}(AB).\label{eq:dcov}
\end{equation}
For the population analysis, let $\phi_{n}(s,t)$ be the joint characteristic
function of $(X,Z^{*})$ under $f_{n}$ and let $\phi_{X,n}(s)$ and
$\phi_{Z,n}(t)$ be its marginals. Define $c_{q}:=\pi^{(1+q)/2}/\Gamma((1+q)/2)$.
The population squared distance covariance is
\begin{equation}
\Delta_{n}:=\frac{1}{c_{d}c_{1}}\int_{\mathbb{R}^{d}}\int_{\mathbb{R}}\frac{|\phi_{n}(s,t)-\phi_{X,n}(s)\phi_{Z,n}(t)|^{2}}{\|s\|^{d+1}|t|^{2}}\,dt\,ds.\label{eq:population-dcov}
\end{equation}
Under the usual finite-first-moment conditions, population distance
covariance is zero if and only if $Z^{*}$ and $X$ are independent
\citep{SzekelyRizzoBakirov2007}. Large values of \eqref{eq:dcov}
therefore provide evidence against tail-index homogeneity.

\subsection{Permutation calibration}

We calibrate the test by permuting the observed log exceedances across
the covariates in the selected tail sample. Let $\Pi_{N_{n}}$ denote
the set of permutations of $\{1,\ldots,N_{n}\}$. For $\pi\in\Pi_{N_{n}}$,
recompute \eqref{eq:dcov} from the pairs $(Z_{\pi(j)}^{*,e},X_{j}^{e})$,
and denote the resulting statistic by $\widehat{\Delta}_{n}^{\pi}$.
For the theoretical statements below, assume the permutation statistics
are almost surely distinct. This only avoids boundary randomization.
Let $c_{n,1-\eta}^{\pi}$ be the conditional $(1-\eta)$ quantile
of $\{\widehat{\Delta}_{n}^{\pi}:\pi\in\Pi_{N_{n}}\}$. The permutation
test rejects when
\begin{equation}
\widehat{\Delta}_{n}>c_{n,1-\eta}^{\pi}.\label{eq:permutation-rejection}
\end{equation}

Under exact independence, permuting the log exceedances leaves the
joint null distribution invariant while preserving both marginal samples.
Section~\ref{sec:null-validity} justifies this calibration under
the approximate independence implied by the Hall expansion.

\subsection{Global order-statistic threshold}

For the global version, write $Y_{1:n}\leq\cdots\leq Y_{n:n}$ for
the order statistics. Given $K_{n}$ tail sample observations, set
\[
\widehat{w}_{n}:=Y_{n-K_{n}:n},
\]
and retain the $K_{n}$ observations above this threshold. The test
uses their log exceedances $Z_{i,n}^{*}:=\log(Y_{i}/\widehat{w}_{n})$
in \eqref{eq:dcov}.

For any two observations selected by the global threshold,

\begin{equation}
\left|\log\left(\frac{Y_{i}}{\widehat{w}_{n}}\right)-\log\left(\frac{Y_{j}}{\widehat{w}_{n}}\right)\right|=|\log Y_{i}-\log Y_{j}|.\label{eq:orderstat-distance-cancel}
\end{equation}
Thus, after selecting the upper $K_{n}$ observations, the numerical
value of the global threshold does not enter the pairwise distances.

\subsection{Locally balanced tail selection}

Under tail-index heterogeneity, a common high threshold increasingly
selects observations from covariate regions with smaller tail indices.
The resulting loss of covariate variation can weaken the global test,
see Section \ref{sec:power-design} for details. The purpose of local
balancing is therefore simple: split the sample into two covariate
groups that, under the alternative, tend to have different tail indices,
and retain upper observations within each group. Ideally, one group
contains observations with relatively larger $\alpha(x)$ and the
other observations with relatively smaller $\alpha(x)$. The goal
is not to estimate $\alpha(x)$ itself, but to preserve a contrast
in tail decay across the retained sample.

Let $\mathcal{X}_{n}:=\sigma(X_{1},\ldots,X_{n})$ and let $\mathcal{I}_{n,1}$
and $\mathcal{I}_{n,2}$ be an $\mathcal{X}_{n}$-measurable partition
of the observation indices. Write $N_{n,j}:=|\mathcal{I}_{n,j}|$
for $j=1,2$. Allocate the total number of retained observations $K_{n}$
approximately equally across the two groups, with $K_{n,1}+K_{n,2}=K_{n}$.
Within group $j$, write the corresponding outcomes in increasing
order as
\[
Y_{j,1:N_{n,j}}\leq\cdots\leq Y_{j,N_{n,j}:N_{n,j}},
\]
and define the local threshold
\[
\widehat{w}_{n,j}:=Y_{j,N_{n,j}-K_{n,j}:N_{n,j}}.
\]
Thus exactly the largest $K_{n,j}$ observations in group $j$ are
retained. For a retained observation $i$ in group $j$, define
\begin{equation}
Z_{i,n}^{\mathrm{loc}}:=\log\left(\frac{Y_{i}}{\widehat{w}_{n,j}}\right).\label{eq:local-window-log-exceedance}
\end{equation}
The retained pairs from the two groups are pooled, and the dCov statistic
is calibrated by globally permuting the pooled $Z_{i,n}^{\mathrm{loc}}$
values across the retained covariates. Section~\ref{sec:adaptive-localization}
explains how we construct the two groups without estimating conditional
tail indices.

\subsection{Learning the two groups}

\label{sec:adaptive-localization}

We use an independent training subsample to learn a score that ranks
covariates by relative tail persistence. Randomly split the observations
into training and inference subsamples, $\mathcal{S}_{n}^{\mathrm{tr}}$
and $\mathcal{S}_{n}^{\mathrm{inf}}$, with $|\mathcal{S}_{n}^{\mathrm{tr}}|/n\to\rho\in(0,1)$.
Let $m_{n}:=|\mathcal{S}_{n}^{\mathrm{tr}}|$ and choose integers
$M_{1n}>M_{2n}$. From the training outcomes, define two order-statistic
thresholds
\[
\widehat{w}_{1n}:=Y_{m_{n}-M_{1n}:m_{n}}^{\mathrm{tr}},\qquad\widehat{w}_{2n}:=Y_{m_{n}-M_{2n}:m_{n}}^{\mathrm{tr}},\qquad\widehat{w}_{1n}<\widehat{w}_{2n}.
\]
Among the $M_{1n}$ training observations above $\widehat{w}_{1n}$,
set
\[
D_{i}:=\mathds{1}\{Y_{i}>\widehat{w}_{2n}\}.
\]
For deterministic $w_{1}<w_{2}$,
\[
\Pr(Y>w_{2}\mid Y>w_{1},X=x)=\left(\frac{w_{2}}{w_{1}}\right)^{-\alpha(x)}\frac{L(w_{2};x)}{L(w_{1};x)}.
\]
The leading tail-frequency factor $\kappa(x)$ therefore cancels.
Since $w_{2}/w_{1}>1$, a larger conditional persistence probability
corresponds, up to the slowly varying term, to a smaller tail index
and hence a heavier tail.

We fit a probit model for $D_{i}$ using a generic second-order feature
vector $q(X_{i})$. For $x=(x_{1},\ldots,x_{d})'$, $q(x)$ contains
all linear terms, all squares, and all pairwise interactions,
\[
q(x)=\bigl(x_{1},\ldots,x_{d},x_{1}^{2},\ldots,x_{d}^{2},\{x_{r}x_{s}:r<s\}\bigr)^{\prime}.
\]
Writing $\Phi$ for the standard normal distribution function, the
working model is
\[
\Pr(D_{i}=1\mid X_{i}=x,\ Y_{i}>\widehat{w}_{1n})\approx\Phi\{\beta_{0}+q(x)'\beta\}.
\]
This probit is only a ranking device. It is not a model or estimator
of $\alpha(x)$.

Apply the fitted score $\widehat{p}_{n}(X_{i})$ to the inference
subsample and split observations at its median. The lower-score half
is intended to contain relatively larger $\alpha(x)$ values, while
the upper-score half is intended to contain relatively smaller $\alpha(x)$
values. We then apply the locally balanced construction above, allocating
the retained tail observations approximately equally across the two
groups. Conditional on the training subsample, the fitted score is
fixed and the two groups are measurable functions of the inference
covariates. Hence correct specification of the probit model is not
required for size validity. Section~\ref{sec:null-validity} gives
the conditioning argument.

\subsection{Implementation and tuning}

\label{sec:implementation-tuning}

Our default adaptive implementation uses a training fraction $\rho=1/5$.
Within the training sample, we set
\[
M_{1n}=\lfloor0.30m_{n}\rfloor,\qquad M_{2n}=\lfloor0.25M_{1n}\rfloor,
\]
so the two training thresholds correspond to approximately $30\%$
and $7.5\%$ of the training sample. The larger separation between
the two training thresholds provides a clearer tail-persistence signal
while retaining enough observations for the probit fit.

The probit uses the generic second-order features described above.
Thus, for a scalar covariate the regressors are $(X,X^{2})$, while
for two covariates they are
\[
X_{1},\quad X_{2},\quad X_{1}^{2},\quad X_{2}^{2},\quad X_{1}X_{2}.
\]
The inference sample is split at the median fitted score, producing
two approximately equal-sized groups, and $K_{n}$ is allocated as
evenly as possible across them. Ties in fitted scores are broken deterministically
using the covariates and then the original observation index. Outcome
ties in the local orderings are broken by the original observation
index. Apart from the usual choice of $K_{n}$, these tuning choices
are kept fixed in our implementation. The global test remains a useful
benchmark because it uses the same dCov statistic without local balancing.

\section{Null Validity}

\label{sec:null-validity}

\subsection{Hall drift and equivalence to independence}

The Hall expansion describes the dependence that remains at a finite
threshold under $H_{0}$. We impose the following condition and show
the result in the proposition followed.

\begin{assumption}[Tail-design moments]\label{ass:dcov-moments}
For some $\delta>0$,
\[
\sup_{n}\mathbb{E}\left[\|X\|^{1+\delta}\mid Y>w_{n}\right]<\infty.
\]
\end{assumption}

\begin{proposition}[Second-order distance-covariance drift] \label{prop:dcov-drift}
Suppose $H_{0}$, Assumptions~\ref{ass:hall} and \ref{ass:dcov-moments}
hold. Then
\begin{equation}
\begin{aligned}\Delta_{n} & =O(a_{n}^{2})=O(w_{n}^{-2\underline{\beta}}),\\
\operatorname{dCov}(X,Z^{*}\mid Y>w_{n}) & =O(a_{n})=O(w_{n}^{-\underline{\beta}}).
\end{aligned}
\label{eq:dcov-equivalence}
\end{equation}
\end{proposition}

Since $K_{n}\widehat{\Delta}_{n}$ is the natural scaling under independence
\citep{SzekelyRizzoBakirov2007}, the Hall drift is negligible if

\begin{equation}
\sqrt{K_{n}}a_{n}=\sqrt{K_{n}}w_{n}^{-\underline{\beta}}\longrightarrow0.\label{eq:bias-rate}
\end{equation}
Condition \eqref{eq:bias-rate} uses only the lower bound $\underline{\beta}$,
not the unknown function $\beta(x)$. It may therefore be stronger
than needed. Similar second-order conditions appear in extreme-value
theory. For example, \citet{Hoga2017} imposes a condition of the
form $\sqrt{k}A(n/k)\to0$, while \citet{deHaanZhou2021} use its
uniform analogue for their local/global extreme-value-index theory.

\subsection{Uniform and order-statistic threshold validity}

Under exact independence, permuting the log exceedances leaves the
joint null distribution invariant. We first establish uniform size
validity for deterministic thresholds and for thresholds chosen using
the outcomes. Write $\bar{F}(y):=\Pr(Y>y)$.

\begin{proposition}[Permutation validity for global thresholds]
\label{prop:permutation} Assume $H_{0}$, Assumption~\ref{ass:hall},
and $0<\mathbb{E}[\kappa(X)]<\infty$. Let $\mathcal{W}_{n}:=[\underline{w}_{n},\overline{w}_{n}]$
be a deterministic threshold range such that
\begin{equation}
\underline{w}_{n}\longrightarrow\infty,\qquad n\Pr(Y>\overline{w}_{n})\longrightarrow\infty,\label{eq:uniform-threshold-range}
\end{equation}
and
\begin{equation}
\sqrt{n\Pr(Y>\underline{w}_{n})}\,\underline{w}_{n}^{-\underline{\beta}}\longrightarrow0.\label{eq:uniform-threshold-rate}
\end{equation}
For each deterministic $w\in\mathcal{W}_{n}$, let $\phi_{n,w}$ denote
the permutation test in \eqref{eq:permutation-rejection} constructed
from the observations satisfying $Y_{i}>w$. Then
\begin{equation}
\sup_{w\in\mathcal{W}_{n}}\left|\Pr_{H_{0}}\{\phi_{n,w}=1\}-\eta\right|\longrightarrow0.\label{eq:uniform-permutation-size}
\end{equation}

If $Y$ has a continuous upper tail, the same holds for any threshold
$\widetilde{w}_{n}$ measurable with respect to $(Y_{1},\ldots,Y_{n})$
whenever
\begin{equation}
\Pr\{\widetilde{w}_{n}\in\mathcal{W}_{n}\}\longrightarrow1.\label{eq:ymeasurable-threshold}
\end{equation}
In particular, let $K_{n}\to\infty$, $K_{n}/n\to0$, and choose $u_{n}$
so that $\bar{F}(u_{n})=K_{n}/n$. If $\sqrt{K_{n}}\,u_{n}^{-\underline{\beta}}\to0$,
the test at $\widehat{w}_{n}=Y_{n-K_{n}:n}$ has asymptotic level
$\eta$. \end{proposition}

The lower endpoint controls the worst-case Hall bias, while the upper
endpoint must retain a diverging number of exceedances. The order-statistic
proof uses a deterministic range around $u_{n}$. See Appendix~\ref{app:proofs}.

\subsection{Locally balanced permutation validity}

We now consider the two-group locally balanced construction of Section~\ref{sec:test},
including the dependence created by its two random group-specific
order-statistic thresholds.

\begin{proposition}[Locally balanced permutation validity] \label{prop:local-window-permutation}
Suppose $H_{0}$ and Assumption~\ref{ass:hall} hold, the two groups
are covariate-measurable, and the conditional distribution of $Y$
given $X=x$ is continuous in the upper tail uniformly over $x$.
If
\begin{equation}
\min_{j=1,2}K_{n,j}\longrightarrow\infty,\qquad\max_{j=1,2}\frac{K_{n,j}}{N_{n,j}}\longrightarrow_{p}0,\label{eq:local-window-intermediate}
\end{equation}
and
\begin{equation}
\sum_{j=1}^{2}K_{n,j}\widehat{w}_{n,j}^{-2\underline{\beta}}\longrightarrow_{p}0,\label{eq:local-window-bias-rate}
\end{equation}
then the global permutation test based on the pooled locally normalized
exceedances in \eqref{eq:local-window-log-exceedance} has asymptotic
level $\eta$. \end{proposition}

Condition \eqref{eq:local-window-bias-rate} implies that all local
thresholds diverge: since $\min_{j=1,2}K_{n,j}\to\infty$,
\begin{equation}
\min_{j=1,2}\widehat{w}_{n,j}\longrightarrow_{p}\infty.\label{eq:local-window-diverging-thresholds}
\end{equation}

If additionally $N_{n,j}/n\to_{p}p_{j}\in(0,1)$ for $j=1,2$ and
the two local intermediate order statistics admit deterministic equivalents
$u_{n,j}$ satisfying $\widehat{w}_{n,j}/u_{n,j}\to_{p}1$ simultaneously,
then
\[
\sqrt{K_{n}}\max_{j=1,2}u_{n,j}^{-\underline{\beta}}\longrightarrow0
\]
is sufficient for \eqref{eq:local-window-bias-rate}.

Unlike the single-threshold identity in \eqref{eq:orderstat-distance-cancel},
different local thresholds do not cancel from pairwise log-exceedance
distances across the two groups. The proof of Proposition~\ref{prop:local-window-permutation}
therefore conditions on the two group-specific boundaries and selected
identities.

The same validity result applies to the sample-split adaptive construction
in Section~\ref{sec:adaptive-localization}. Conditional on the random
split and the training subsample, the learned score is fixed, while
the inference observations remain iid. The two score groups are measurable
functions of the inference covariates, so Proposition~\ref{prop:local-window-permutation}
applies conditionally whenever its conditions hold with probability
tending to one. The conditional rejection probability therefore converges
to $\eta$, and bounded convergence gives the same unconditional limit.
Correct specification of the training probit is not required for this
null-validity argument.

\section{Power and Tail-Design Concentration}

\label{sec:power}

\begin{assumption}[Tail-sample moments]\label{ass:dcov-process-moments}
For some $\delta>0$, along any sequence for which we invoke a sample
dCov limit,
\begin{equation}
\sup_{n}\mathbb{E}\!\left[(\|X\|+Z^{*})^{2+\delta}\mid Y>w_{n}\right]<\infty.\label{eq:process-moment}
\end{equation}
\end{assumption}

Under an alternative, write
\[
\Delta_{n}^{A}:=\operatorname{dCov}^{2}(X,Z^{*}\mid Y>w_{n}).
\]
For the locally balanced test, let $\mathcal{G}_{n}$ contain the
retained covariates, group memberships, thresholds, and selected identities,
and let $U_{n}$ be uniform on $\{1,\ldots,K_{n}\}$ conditional on
$\mathcal{G}_{n}$. Define
\begin{equation}
\Delta_{n}^{\mathrm{LB},A}:=\operatorname{dCov}^{2}(X_{U_{n},n}^{\mathrm{LB}},Z_{U_{n},n}^{\mathrm{LB}}\mid\mathcal{G}_{n}).\label{eq:local-balanced-dcov-signal}
\end{equation}
We first study how global tail selection changes the covariate design
and then give consistency and local-power results.

\subsection{Tail concentration and the effect of local balancing}

\label{sec:power-design}

At a fixed alternative, Bayes' rule gives the covariate density among
observations exceeding $w$ as
\[
f_{X\mid Y>w}(x)\propto\kappa(x)w^{-\alpha(x)}L(w;x)f_{X}(x).
\]
By Assumption~\ref{ass:hall}, $L(w;x)\to1$ uniformly in $x$, so
for large $w$ this density is approximately proportional to $\kappa(x)w^{-\alpha(x)}f_{X}(x)$.
Thus increasing $w$ favors regions with smaller $\alpha(x)$. For
the two-group construction, let $\mathcal{C}_{1}$ and $\mathcal{C}_{2}$
be fixed groups of positive probability, let $\mathcal{X}_{j}$ be
the support of $X\mid X\in\mathcal{C}_{j}$, and define
\[
\alpha_{\min}:=\inf_{x\in\mathcal{X}}\alpha(x),\qquad\alpha_{j}^{*}:=\inf_{x\in\mathcal{X}_{j}}\alpha(x),\quad j=1,2,
\]
and write the corresponding minimizer sets as
\[
\mathcal{M}:=\{x\in\mathcal{X}:\alpha(x)=\alpha_{\min}\},\qquad\mathcal{M}_{j}:=\{x\in\mathcal{X}_{j}:\alpha(x)=\alpha_{j}^{*}\},\quad j=1,2.
\]
Thus $\alpha_{j}^{*}$ is the smallest tail exponent accessible in
group $j$.

\begin{assumption}[Fixed alternatives]\label{ass:fixed-alt} $\alpha$
and $\kappa$ are continuous on $\mathcal{X}$, $\alpha$ is bounded
above and away from zero, $\kappa>0$, and $0<\mathbb{E}[\kappa(X)]<\infty$.
Assumptions~\ref{ass:hall} and~\ref{ass:dcov-moments} hold uniformly,
also after conditioning on either group. \end{assumption}

\begin{theorem}[Tail concentration and the effect of local balancing]\label{thm:degeneracy}
Under Assumption~\ref{ass:fixed-alt}, as $w_{n}\to\infty$, $\alpha(X)\to\alpha_{\min}$
conditional on $Y>w_{n}$ and
\begin{equation}
\Delta_{n}^{A}\longrightarrow0.\label{eq:global-signal-vanishes}
\end{equation}
For the two fixed groups, suppose the distribution of $X$ given $X\in\mathcal{C}_{j},Y>w$
converges to that of $X_{j}^{\infty}$, the groupwise moment bound
holds uniformly, and \eqref{eq:local-window-intermediate} and \eqref{eq:local-window-diverging-thresholds}
hold. If $K_{n,j}/K_{n}\to\rho_{j}>0$, $\rho_{1}+\rho_{2}=1$, define
$(X_{\infty},Z_{\infty})$ by choosing group $j$ with probability
$\rho_{j}$, drawing $X_{\infty}\sim X_{j}^{\infty}$, and then drawing
$Z_{\infty}\sim\operatorname{Exp}(\alpha_{j}^{*})$ independently conditional on
$j$. Then
\begin{equation}
\Delta_{n}^{\mathrm{LB},A}\longrightarrow_{p}\Delta_{\infty}^{\mathrm{LB}}:=\operatorname{dCov}^{2}(X_{\infty},Z_{\infty}).\label{eq:local-nondegenerate-limit}
\end{equation}
Moreover, $X_{j}^{\infty}$ is supported on $\mathcal{M}_{j}$ for
$j=1,2$. Hence, if $\alpha_{1}^{*}\neq\alpha_{2}^{*}$, then $\mathcal{M}_{1}\cap\mathcal{M}_{2}=\varnothing$
and the limit is nonzero. \end{theorem}

\begin{remark}[Global signal decay and consistency]\label{rem:degeneracy-rate}
There is no universal decay rate. Appendix~\ref{app:degeneracy-rate}
illustrates the logarithmic rates $(\log w_{n})^{-3}$ and $(\log w_{n})^{-5/2}$
in regular boundary and interior benchmarks. In such cases, $K_{n}$
growing faster than the corresponding power of $\log w_{n}$ satisfies
the signal condition for global consistency. \end{remark}

\begin{remark}[Dependence on the two-group split]\label{rem:balancing-limits}
If $\alpha_{1}^{*}=\alpha_{2}^{*}$, then $\Delta_{\infty}^{\mathrm{LB}}=0$.
For the adaptive version, the same limit applies when the learned
groups converge in symmetric difference to two fixed groups satisfying
the conditions of Theorem~\ref{thm:degeneracy}. Hence the split
matters for power, but not for null validity. \end{remark}

\subsection{Consistency}

For the global test impose Assumption~\ref{ass:dcov-process-moments}.
For the locally balanced test also assume upper-tail continuity, Assumption~\ref{ass:hall},
\eqref{eq:local-window-intermediate}, \eqref{eq:local-window-diverging-thresholds},
and, for some $\delta>0$,
\begin{equation}
\max_{j=1,2}\frac{1}{K_{n,j}}\sum_{i\in S_{n,j}}\mathbb{E}_{A}\!\left[\bigl(\|X_{i}\|+Z_{i,n}^{\mathrm{loc}}\bigr)^{2+\delta}\mid\mathcal{G}_{n}\right]=O_{p}(1),\label{eq:local-balanced-process-moment}
\end{equation}
where $S_{n,j}$ is the retained set in group $j$.

\begin{theorem}[Consistency of both tests]\label{thm:global-power}
Under the respective conditions above,
\begin{align}
K_{n}\Delta_{n}^{A}\to\infty & \quad\Longrightarrow\quad\Pr_{A}\{\widehat{\Delta}_{n}>c_{n,1-\eta}^{\pi}\}\to1,\label{eq:fixed-consistency}\\
K_{n}\Delta_{n}^{\mathrm{LB},A}\to_{p}\infty & \quad\Longrightarrow\quad\Pr_{A}\{\widehat{\Delta}_{n}^{\mathrm{LB}}>c_{n,1-\eta}^{\mathrm{LB},\pi}\}\to1.\label{eq:local-balanced-consistency}
\end{align}
\end{theorem}

Thus global consistency can coexist with tail-design concentration,
while the two-group test is consistent whenever the limit in Theorem~\ref{thm:degeneracy}
is positive. Corollary~\ref{cor:global-orderstat-power} in Appendix~\ref{app:global-orderstat-power}
covers the order-statistic threshold used in practice.

\subsection{Local-alternative limits}

For local alternatives, suppose
\begin{equation}
\alpha_{n}(x)=\alpha_{0}+\delta_{n}g(x),\qquad\delta_{n}=c/\sqrt{K_{n}},\label{eq:local-alt}
\end{equation}
where $g$ is bounded, $c\in\mathbb{R}$ is fixed, and $\kappa$ and $L$
are unchanged. Let $\Pr_{n,c}$ denote probability under the sequence
in \eqref{eq:local-alt}. Under $H_{0}$, the limiting covariate density
in the global tail sample is
\[
f_{X}^{0}(x):=\frac{\kappa(x)f_{X}(x)}{\mathbb{E}[\kappa(X)]}.
\]
For the locally balanced test, let $f_{X}^{\mathrm{LB}}$ denote the
limiting density of the retained covariates under the conditions in
Appendix~\ref{app:local-power}. For a covariate density $f$, let
$G_{f}$ be the centered Gaussian characteristic-function process
obtained under independent $X\sim f$ and $Z\sim\operatorname{Exp}(\alpha_{0})$,
and let $H_{g,f}$ be the deterministic first-order shift defined
in Appendix~\ref{app:local-power}. Write
\[
T_{f}(c):=\|G_{f}+cH_{g,f}\|_{\mathrm{dCov}}^{2},\qquad T_{G}(c):=T_{f_{X}^{0}}(c),\qquad T_{\mathrm{LB}}(c):=T_{f_{X}^{\mathrm{LB}}}(c).
\]
For $a\in\{G,\mathrm{LB}\}$, let $q_{a,1-\eta}$ denote the $(1-\eta)$
quantile of $T_{a}(0)$.

\begin{theorem}[Local-alternative limits]\label{thm:local-power}
Under \eqref{eq:local-alt} and the respective conditions in Appendix~\ref{app:local-power},
\begin{align}
K_{n}\widehat{\Delta}_{n} & \Longrightarrow T_{G}(c),\label{eq:sample-local-power}\\
K_{n}\widehat{\Delta}_{n}^{\mathrm{LB}} & \Longrightarrow T_{\mathrm{LB}}(c).\label{eq:local-balanced-local-power-stat}
\end{align}
If $q_{a,1-\eta}$ is unique and is a continuity point of the distributions
of both $T_{a}(0)$ and $T_{a}(c)$, then the corresponding permutation
test satisfies
\begin{equation}
\Pr_{n,c}(\mathrm{reject})\longrightarrow\Pr\{T_{a}(c)>q_{a,1-\eta}\},\qquad a\in\{G,\mathrm{LB}\}.\label{eq:local-power-function}
\end{equation}
\end{theorem}

At $c=0$, $T_{f}(0)=\|G_{f}\|_{\mathrm{dCov}}^{2}$, so Theorem~\ref{thm:local-power}
gives the sampling null limit of the scaled dCov statistic. Under
the continuity condition above, \eqref{eq:local-power-function} reduces
to the nominal rejection probability $\eta$. For fixed $c\neq0$,
the same theorem gives the local asymptotic power against $K_{n}^{-1/2}$
departures. These distributional limits complement the size results
in Section~\ref{sec:null-validity}. Implementation still uses permutation
critical values and does not require estimating $q_{a,1-\eta}$.

\section{Simulations}

\label{sec:simulations}

\subsection{Data-generating processes and threshold choice}

The five designs examine size and different forms of tail-index heterogeneity.
DGP~1 checks size in the presence of finite-threshold second-order
bias. DGP~2 studies scalar local alternatives. DGP~3a has smooth
bivariate heterogeneity. DGP~3b is a pure interaction. DGP~3c
adds nonlinear curvature that is not contained in the working score
model. Throughout, $U\sim\operatorname{Unif}(0,1)$ is independent
of the covariates.

The proposed procedure is the adaptive two-group construction in Sections~\ref{sec:adaptive-localization}
and~\ref{sec:implementation-tuning}. We randomly use one fifth of
the sample for training and the remaining four fifths for inference.
In the training sample, $M_{1}=\lfloor0.30m\rfloor$ and $M_{2}=\lfloor0.25M_{1}\rfloor$.
The inference observations are divided at the median fitted score,
and the total $k$ retained tail observations are allocated approximately
equally across the two groups. For scalar covariates the probit score
uses $(X,X^{2})$. For bivariate covariates it uses the same generic
second-order basis in every design,
\[
(X_{1},X_{2},X_{1}^{2},X_{2}^{2},X_{1}X_{2}).
\]
Thus the score specification is not changed across DGPs~3a--3c.

We use sample sizes $n\in\{2000,5000\}$ and two tail sample sizes,
\begin{equation}
\mathcal{K}_{2000}:=\{100,50\},\qquad\mathcal{K}_{5000}:=\{200,100\}.\label{eq:simulation-k-grid}
\end{equation}
We write $k_{L}$ and $k_{S}$ for the larger and smaller values,
respectively.

\paragraph{DGP 1: Hall-type null with $\beta=1$.}

Let $X\sim\operatorname{Unif}[-1,1]$ and $s(x):=\exp(x/2)$. Generate
\[
Y:=s(X)\left(U^{-1/2}-1\right).
\]
Thus the tail exponent is constant at $\alpha_{0}=2$, while the leading
tail-frequency term is $\kappa(x)=s^{2}(x)=e^{x}$. The Hall second-order
exponent is $\beta=1$, with coefficient $D(x)=-2s(x)$.

\paragraph{DGP 2: Linear scalar local alternatives.}

Let $X\sim\operatorname{Unif}[-1,1]$, define $\kappa(x):=\exp(x/2)$
and $g(x):=\sqrt{3}\,x$. For each $(n,k)$ in \eqref{eq:simulation-k-grid},
set
\begin{equation}
\alpha_{n,c,k}(x):=2+\frac{c}{\sqrt{k}}g(x)=2+\frac{c\sqrt{3}}{\sqrt{k}}x,\label{eq:dgp2-alpha}
\end{equation}
and generate
\[
Y:=\left\{ \frac{\kappa(X)}{U}\right\} ^{1/\alpha_{n,c,k}(X)}.
\]
We use $c\in\{0,1,2,4\}$. The case $c=0$ is an exact-Pareto null
with covariate-dependent tail frequency. The case $c>0$ gives a $k^{-1/2}$
local departure. This design is deliberately favorable to regression-based
competitors.

\paragraph{DGP 3a: Smooth bivariate heterogeneity.}

Let $X_{1},X_{2}\stackrel{\mathrm{iid}}{\sim}\operatorname{Unif}[-1,1]$
and
\[
\alpha_{\theta}(X):=2\exp\{\theta X_{1}\},\qquad\kappa(X):=\exp(X_{2}/2),
\]
with
\[
Y:=\left\{ \frac{\kappa(X)}{U}\right\} ^{1/\alpha_{\theta}(X)}.
\]
Here $X_{1}$ affects tail thickness and $X_{2}$ affects tail frequency
only. We use $\theta\in\{0,0.15,0.30,0.45\}$.

\paragraph{DGP 3b: Pure interaction.}

Let $X_{1},X_{2}\stackrel{\mathrm{iid}}{\sim}\operatorname{Unif}[-1,1]$
and
\[
\alpha_{\theta}(X):=2\exp\{\theta X_{1}X_{2}\},\qquad\kappa(X):=1,\qquad Y:=U^{-1/\alpha_{\theta}(X)}.
\]
We use $\theta\in\{0,0.5,1,1.5\}$. Neither $X_{1}$ nor $X_{2}$
alone has a first-order linear projection on the interaction. The
generic second-order adaptive score does contain $X_{1}X_{2}$, but
the same score basis is used in all bivariate designs rather than
chosen for this DGP.

\paragraph{DGP 3c: Cubic-perturbed nonlinear heterogeneity.}

Again let $X_{1},X_{2}\stackrel{\mathrm{iid}}{\sim}\operatorname{Unif}[-1,1]$.
Define
\[
h_{0}(x):=x_{1}x_{2}+\frac{1}{2}(x_{2}^{2}-x_{1}^{2}),
\]
and, with $\delta=0.5$,
\[
g_{\delta}(x):=\frac{h_{0}(x)+\frac{\delta}{2}(x_{1}^{3}+x_{2}^{3})}{1+\delta}.
\]
Set
\[
\alpha_{\theta}(X):=2\exp\{\theta g_{\delta}(X)\},\qquad\kappa(X):=1,\qquad Y:=U^{-1/\alpha_{\theta}(X)},
\]
for $\theta\in\{0,0.5,1,1.5\}$. The quadratic part rotates the interaction
structure, while the cubic terms are deliberately omitted from the
generic second-order probit score. DGP~3c therefore checks the adaptive
procedure under working-model misspecification. At the same time,
the cubic terms have nonzero linear projections under the uniform
design, so the linear regression competitors are not made mechanically
powerless.

\subsection{Competing procedures and implementation}

We report four procedures: the adaptive two-group dCov test, the global
top-$k$ dCov benchmark, the Kinsvater--Fried L-test, and the Wang--Li
test. The adaptive test uses the sample split and tuning described
above. The global test uses the same dCov statistic and the top $k$
observations from the full sample. The two regression competitors
use the same nominal $k$ but otherwise follow their own constructions.
For all bivariate designs, their working regressions contain the linear
main effects $X_{1}$ and $X_{2}$. We do not add design-specific
interactions or polynomial terms.

\paragraph{Wang--Li three-stage test.}

We implement the constancy test of \citet{WangLi2013} with $\lambda=0$
(the log transformation). Transformed linear quantile regressions
produce covariate-dependent EVI estimates $\widehat{\gamma}(X_{i})$,
and
\[
T_{n}^{WL}:=\frac{1}{n}\sum_{i=1}^{n}\{\widehat{\gamma}(X_{i})-\widehat{\gamma}_{P}\}^{2},\qquad\widehat{\gamma}_{P}:=\frac{1}{n}\sum_{i=1}^{n}\widehat{\gamma}(X_{i}).
\]
With the nonconstant regressors centered, we use $S_{n}^{WL}=kT_{n}^{WL}/\widehat{\gamma}_{P}^{2}$
and the $\chi_{d}^{2}$ reference distribution from Corollary~3.1
of \citet{WangLi2013}: one degree of freedom for scalar designs and
two for bivariate designs.

\paragraph{Kinsvater--Fried L-test.}

We use the L-estimator-based test of \citet{KinsvaterFried2017}.
For a given $k$, their method estimates a high conditional quantile,
forms approximately $k$ relative excesses, and estimates a linear
conditional EVI model. Following their recommendation, we use 20 probabilities
equally spaced over $[1/2,1-1/40]$ and their optimal L-weights. Constancy
is tested by the joint Wald test that the slope coefficients are zero.

All procedures are evaluated at the 5\% nominal level with 1,000 Monte
Carlo replications. Both dCov tests use 299 random permutations with
the plus-one correction. The adaptive and global dCov procedures use
the same nominal total tail count $k$.

\subsection{Simulation results}

Tables~\ref{tab:sim-dgp12}--\ref{tab:sim-dgp3c} in Appendix~\ref{app:simulation-additional}
report the rejection frequencies. Figures~\ref{fig:sim-size}--\ref{fig:sim-dgp3c}
summarize them with pointwise 95\% Wilson intervals.

\paragraph{Size and scalar local power.}

Under DGP~1, adaptive dCov, Kinsvater--Fried, and Wang--Li are
close to nominal size. Global dCov shows mild over-rejection in one
design.

\begin{figure}[H]
\centering \includegraphics[width=0.96\textwidth]{pictures/simulation_size}

\begin{singlespace}
\caption{Size under the Hall-type null (DGP~1).}
\label{fig:sim-size}
\end{singlespace}
\end{figure}

Under DGP~2, the four procedures have similar power for moderate
local departures, while the regression tests are somewhat stronger
at the largest $c$, as expected from the locally linear design.

\begin{figure}[H]
\centering \includegraphics[width=0.96\textwidth]{pictures/simulation_dgp2}

\begin{singlespace}
\caption{Power under linear scalar local alternatives (DGP~2).}
\label{fig:sim-dgp2}
\end{singlespace}
\end{figure}


\paragraph{Smooth and interaction alternatives.}

Under DGP~3a, the regression procedures benefit from the smooth main
effect, although adaptive dCov gains substantially over global dCov
as heterogeneity strengthens.

\begin{figure}[H]
\centering \includegraphics[width=0.96\textwidth]{pictures/simulation_dgp3a}

\begin{singlespace}
\caption{Power under smooth bivariate heterogeneity (DGP~3a).}
\label{fig:sim-dgp3a}
\end{singlespace}
\end{figure}

Under the pure interaction in DGP~3b, adaptive dCov becomes the most
powerful as the departure strengthens, while the main-effect Kinsvater--Fried
regression has little power. This illustrates the value of learning
a useful localization when the relevant functional form is not specified.

\begin{figure}[H]
\centering \includegraphics[width=0.96\textwidth]{pictures/simulation_dgp3b}

\begin{singlespace}
\caption{Power under a pure nonlinear interaction (DGP~3b).}
\label{fig:sim-dgp3b}
\end{singlespace}
\end{figure}


\paragraph{Misspecified nonlinear alternative.}

In DGP~3c, where the adaptive score omits the cubic terms, all procedures
remain correctly sized and adaptive dCov remains competitive at the
stronger alternatives, without uniformly dominating Wang--Li.

\begin{figure}[H]
\centering \includegraphics[width=0.96\textwidth]{pictures/simulation_dgp3c}

\begin{singlespace}
\caption{Power under cubic-perturbed nonlinear heterogeneity (DGP~3c).}
\label{fig:sim-dgp3c}
\end{singlespace}
\end{figure}


\paragraph{Effect of local balancing.}

Table~\ref{tab:global-local} shows that global and adaptive dCov
are similar near the null, but adaptive balancing can be substantially
more powerful under stronger interaction and nonlinear alternatives.
This matches the tail-design concentration mechanism in Section~\ref{sec:power}.

\FloatBarrier

\section{Empirical Illustration}

\label{sec:application}

We use the French motor third-party liability data \texttt{freMTPL2}
from the \texttt{CASdatasets} package.\footnote{See \url{https://dutangc.github.io/CASdatasets/reference/freMTPL.html}.}
After aggregating claims within policy and retaining positive claim
amounts, the sample contains 24,944 observations. We study standardized
\texttt{BonusMalus} and \texttt{VehPower}.

\subsection{Tail-index homogeneity}

We use $k\in\{1247,624\}$, approximately 5\% and 2.5\% of the usable
sample. Adaptive dCov uses the same 20\% training split, generic second-order
score, and two-group tuning as in the simulations, with 999 permutations.
We repeat the random split ten times and summarize the resulting $p$-values.
The global benchmark uses the top $k$ observations, and the Kinsvater--Fried
and Wang--Li tests use the same nominal tail counts. Table~\ref{tab:application-tail-tests}
reports the results.

\begin{table}[!htbp]
\centering \caption{Tail-index homogeneity tests for French motor claim severity}
\label{tab:application-tail-tests} {\small{}{}}{\small{}
\begin{tabular}{rlrl}
\hline
{\small$k$  } & {\small Method  } & {\small Statistic  } & {\small$p$-value or 10-split summary }\tabularnewline
\hline
{\small 1247  } & {\small Adaptive dCov  } & {\small ---  } & {\small min 0.129, max 0.710, median 0.458, mean 0.455 }\tabularnewline
 & {\small Global dCov  } & {\small 0.000941  } & {\small 0.720 }\tabularnewline
 & {\small K--F  } & {\small 2.051  } & {\small 0.359 }\tabularnewline
 & {\small W--L  } & {\small 3.940  } & {\small 0.139 }\tabularnewline
{\small 624  } & {\small Adaptive dCov  } & {\small ---  } & {\small min 0.596, max 0.996, median 0.825, mean 0.832 }\tabularnewline
 & {\small Global dCov  } & {\small 0.001932  } & {\small 0.730 }\tabularnewline
 & {\small K--F  } & {\small 1.603  } & {\small 0.449 }\tabularnewline
 & {\small W--L  } & {\small 2.895  } & {\small 0.235 }\tabularnewline
\hline
\end{tabular}}{\small\par}

{\small\smallskip{}
 \raggedright}{\footnotesize\textit{Notes:}}{\footnotesize{} The
covariates are standardized BonusMalus and VehPower. Adaptive dCov
uses a 20\% training subsample, the two-group score split described
in Section~\ref{sec:adaptive-localization}, and 999 permutations.
Global dCov uses the top $k$ observations from the full usable sample
and 999 permutations. For K--F the reported statistic is the Wald
statistic. For W--L it is the $\chi^{2}$ statistic. K--F denotes
the Kinsvater--Fried L-test and W--L denotes the Wang--Li test. }{\footnotesize\par}
\end{table}

None of the four procedures rejects tail-index homogeneity. Across
the ten adaptive splits, the $p$-values range from 0.129 to 0.710
for $k=1247$ and from 0.596 to 0.996 for $k=624$. The global and
regression-based tests lead to the same conclusion. The common EVI
estimates from Wang--Li and Kinsvater--Fried are also similar (about
0.81--0.85). Thus the data provide no evidence against a common tail
index for these covariates, although non-rejection does not establish
homogeneity.

\subsection{High-quantile regression}

For comparison, we estimate linear quantile regressions at $\tau\in\{0.95,0.975\}$,
\[
Q_{\tau}(Y\mid X)=\beta_{0,\tau}+\beta_{1,\tau}\text{BonusMalus}+\beta_{2,\tau}\text{VehPower},
\]
with 199 pairs-bootstrap replications. See Table~\ref{tab:application-qr}.

\begin{table}[!htbp]
\centering \caption{Upper conditional quantile regressions for claim severity}
\label{tab:application-qr} {\small{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}}{\small{}
\begin{tabular}{lrrrr}
\hline
 & \multicolumn{2}{c}{{\small$\tau=0.95$}} & \multicolumn{2}{c}{{\small$\tau=0.975$}}\tabularnewline
{\small Variable  } & {\small Estimate  } & {\small 95\% CI  } & {\small Estimate  } & {\small 95\% CI }\tabularnewline
\hline
{\small Intercept  } & {\small 5060.98  } & {\small$[4988.10,\ 5379.59]$  } & {\small 8868.06  } & {\small$[8307.30,\ 9232.81]$ }\tabularnewline
{\small BonusMalus  } & {\small 306.75  } & {\small$[193.58,\ 643.46]$  } & {\small 775.90  } & {\small$[61.61,\ 1442.23]$ }\tabularnewline
{\small VehPower  } & {\small 239.43  } & {\small$[7.74,\ 590.75]$  } & {\small 339.83  } & {\small$[-343.85,\ 847.52]$ }\tabularnewline
\hline
\end{tabular}}{\small\par}

{\small\smallskip{}
 }{\small\par}

\raggedright{}{\footnotesize\textit{Notes:}}{\footnotesize{} The
dependent variable is policy-level claim severity. BonusMalus and
VehPower are standardized before estimation. Confidence intervals
are percentile intervals from 199 pairs-bootstrap replications. }{\footnotesize\par}


\end{table}

BonusMalus is positively associated with both upper conditional quantiles,
while vehicle power is significant only at $\tau=0.95$. Thus upper
quantiles vary with the covariates even though tail-index homogeneity
is not rejected. This supports considering common-tail-index extremal
quantile methods such as \citet{Chernozhukov2005} and \citet{WangLiHe2012},
subject to their remaining assumptions.

\section{Conclusion}

We propose a permutation distance-covariance test of tail-index homogeneity
without estimating tail indices. We establish validity and power results
for global and locally balanced versions. Global consistency can coexist
with tail concentration, while the adaptive two-group construction
can preserve covariate variation in the selected tail sample. Simulations
show competitive performance across linear, interaction, and misspecified
nonlinear alternatives. In French motor insurance, the tests do not
reject homogeneity, while risk characteristics affect upper conditional
quantiles.

The practical tradeoff is between reducing finite-threshold bias,
learning a useful two-group localization, and retaining enough tail
observations for inference. Null validity does not require correct
specification of the training score. The local-power analysis for
learned groups currently uses a stability condition. Relaxing that
condition is a natural direction for future research. \medskip{}

 \bibliographystyle{ecta}
\bibliography{references}

\newpage{}