Papers
Topics
Authors
Recent
Search
2000 character limit reached

Series HAR Two-Sample t-Tests

Updated 5 July 2026
  • Series HAR two-sample t-tests are robust procedures that compare means in time series data exhibiting heteroskedasticity and serial dependence.
  • The method employs orthonormal basis projections to estimate long-run variances, replacing conventional sample-variance formulas.
  • It integrates a Welch-type t adjustment and a series-based wild bootstrap to enhance finite-sample performance in diverse applications.

Searching arXiv for the specified paper to ground the article in the current record. Series HAR two-sample t-tests are procedures for testing equality of means across two univariate time series when the data may exhibit heteroskedasticity and serial dependence. They are developed for the setting

Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,

where the two series are independent of each other, while the innovations ujtu_{jt} may be heteroskedastic and serially dependent. The target hypothesis is

H0:μ1=μ2,H_0:\mu_1=\mu_2,

and the central methodological feature is a heteroskedasticity-and-autocorrelation-robust standardization based on orthonormal basis projections rather than conventional sample-variance formulas. The framework is presented as accommodating structural breaks, treatment-control comparisons, and group-averaged panel data, with a Welch-type tt approximation and a series-based HAR wild bootstrap providing finite-sample refinements under long-run variance heterogeneity (Hounyo et al., 12 Dec 2025).

1. Formal setting and inferential objective

The formal setup considers two univariate time series,

Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,

with independent series and potentially heteroskedastic, serially dependent innovations. The inferential objective is the two-sample mean comparison under the null hypothesis

H0:μ1=μ2.H_0:\mu_1=\mu_2.

Under mild regularity, expressed through a functional CLT, the sample means satisfy

Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),

where

Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)

is the long-run variance of series jj (Hounyo et al., 12 Dec 2025).

This formulation places the problem outside the scope of classical iid two-sample tt procedures. A plausible implication is that the relevant uncertainty is governed not by one-period innovation variance alone, but by the long-run variance induced by temporal dependence. That distinction motivates the series HAR construction.

2. Series-HAR standardization through orthonormal projections

The standardization step uses a mean-zero orthonormal basis on ujtu_{jt}0, denoted ujtu_{jt}1 for ujtu_{jt}2, satisfying

ujtu_{jt}3

A convenient choice is the trigonometric system

ujtu_{jt}4

For each series, the demeaned observations are projected onto the basis through

ujtu_{jt}5

and the ujtu_{jt}6th partial long-run variance estimator is defined as

ujtu_{jt}7

The series-HAR long-run variance estimator is then the simple average

ujtu_{jt}8

The stated intuition is that each ujtu_{jt}9 picks out a frequency-band projection of the series, and averaging over H0:μ1=μ2,H_0:\mu_1=\mu_2,0 mimics a nonparametric fixed-H0:μ1=μ2,H_0:\mu_1=\mu_2,1 estimator of the long-run variance that is robust to general heteroskedasticity and autocorrelation (Hounyo et al., 12 Dec 2025). This suggests that the method achieves robustness through basis-domain aggregation rather than direct blockwise time-domain smoothing.

3. Test statistic and Welch-type degrees-of-freedom adjustment

The unequal-long-run-variance statistic is defined by

H0:μ1=μ2,H_0:\mu_1=\mu_2,2

When H0:μ1=μ2,H_0:\mu_1=\mu_2,3 and H0:μ1=μ2,H_0:\mu_1=\mu_2,4, the statistic satisfies

H0:μ1=μ2,H_0:\mu_1=\mu_2,5

However, finite-sample size distortions may arise under serial dependence.

To address that issue, a Welch-type H0:μ1=μ2,H_0:\mu_1=\mu_2,6 approximation is constructed by matching the first two moments of the denominator with a scaled H0:μ1=μ2,H_0:\mu_1=\mu_2,7. Let H0:μ1=μ2,H_0:\mu_1=\mu_2,8. Under H0:μ1=μ2,H_0:\mu_1=\mu_2,9 and fixed tt0,

tt1

has mean approximately

tt2

and variance approximately

tt3

Matching to tt4 yields the adjusted degrees of freedom

tt5

with feasible implementation replacing tt6 by tt7 and tt8 by tt9. The resulting rule compares Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,0 to Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,1 critical values (Hounyo et al., 12 Dec 2025).

This correction is explicitly motivated by long-run variance heterogeneity across the two series. In contrast to classical Welch adjustments based on sample variances under independence, the present version is built around HAR long-run variance estimators.

4. Series-based HAR wild bootstrap

The series-based HAR wild bootstrap, denoted SHAR-WB, is designed to replicate both heteroskedasticity and serial dependence. Its algorithm proceeds as follows.

First, residuals are computed as

Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,2

Second, the null is imposed through the common mean

Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,3

Third, dependent wild multipliers Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,4 are generated via a second orthonormal basis Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,5, Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,6, for example

Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,7

With iid draws Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,8 for Yjt=μj+ujt,t=1,,Tj,j=1,2,Y_{jt}=\mu_j+u_{jt}, \quad t=1,\ldots,T_j,\quad j=1,2,9, the multipliers are set to

H0:μ1=μ2.H_0:\mu_1=\mu_2.0

These satisfy

H0:μ1=μ2.H_0:\mu_1=\mu_2.1

and

H0:μ1=μ2.H_0:\mu_1=\mu_2.2

which mimics a fixed-H0:μ1=μ2.H_0:\mu_1=\mu_2.3 Daniell kernel.

Fourth, bootstrap errors and bootstrap data are formed as

H0:μ1=μ2.H_0:\mu_1=\mu_2.4

Fifth, one recomputes H0:μ1=μ2.H_0:\mu_1=\mu_2.5, residuals H0:μ1=μ2.H_0:\mu_1=\mu_2.6, series-HAR long-run variances H0:μ1=μ2.H_0:\mu_1=\mu_2.7, and

H0:μ1=μ2.H_0:\mu_1=\mu_2.8

Finally, after H0:μ1=μ2.H_0:\mu_1=\mu_2.9 repetitions, the Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),0 and Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),1 quantiles of the bootstrap distribution of Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),2 are used, and the null is rejected when the original Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),3 lies outside those quantiles (Hounyo et al., 12 Dec 2025).

A central feature of SHAR-WB is that it avoids resampling blocks of observations. The paper characterizes this as an extension of traditional wild bootstrap methods to the time-series setting.

5. Assumptions and asymptotic properties

The assumptions are organized around basis regularity, weak convergence, higher-order dependence control, and properties of the external wild variables. The basis functions Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),4 and Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),5 are assumed to be piecewise-smooth, mean-zero for Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),6, orthonormal, and uniformly bounded. The functional CLT is stated as

Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),7

For each series, fourth-order cumulant summability is imposed:

Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),8

and

Tj(Yˉjμj)N(0,Ωj),\sqrt{T_j}(\bar Y_j-\mu_j)\Rightarrow N(0,\Omega_j),9

The external wild variables satisfy the previously stated conditional moment and covariance conditions (Hounyo et al., 12 Dec 2025).

Under these assumptions, several asymptotic results are reported. In the equal-long-run-variance case with fixed Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)0, under Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)1 and Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)2,

Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)3

In the unequal-long-run-variance case with Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)4 and Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)5,

Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)6

For the bootstrap, large-Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)7 validity is expressed as

Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)8

in probability. The Welch-approximation Ωj=limVar(TjYˉj)\Omega_j=\lim \operatorname{Var}(\sqrt{T_j}\bar Y_j)9 is stated to have asymptotically correct size to a higher order than the plain normal approximation (Hounyo et al., 12 Dec 2025).

These results separate the equal- and unequal-long-run-variance cases in a way analogous to classical pooled and Welch testing, but with long-run variance playing the role ordinarily occupied by one-sample variance.

6. Finite-sample behavior and empirical use

The reported finite-sample evidence is based on Monte Carlo designs with AR(1) errors, jj0, normal or jj1 innovations, equal versus unequal jj2, and jj3. Within these experiments, classical jj4 and Welch jj5 massively overreject when jj6. The series HAR normal test, meaning jj7 with a normal cutoff, improves performance but remains slightly oversized in small samples under strong dependence. The series HAR jj8 approximation using jj9 is reported to have much better size control. SHAR-WB delivers the best size control across all settings, including strong dependence and unequal tt0, with power only moderately below the infeasible oracle (Hounyo et al., 12 Dec 2025).

Empirical illustrations include WFH productivity and pre/post structural breaks in U.S. macro series. In those examples, classical tt1-tests reject differences that fail to survive the serial-dependence-robust series HAR and bootstrap tests. A plausible implication is that methods ignoring serial dependence can attribute significance to mean differences that are better interpreted as consequences of underestimated uncertainty.

7. Scope, implementation, and relation to conventional practice

The framework is described as accommodating a wide range of applications, including structural breaks, treatment-control comparisons, and group-averaged panel data (Hounyo et al., 12 Dec 2025). In all such settings, the unifying issue is inference on mean differences when serial dependence and heteroskedasticity make classical two-sample variance formulas unreliable.

Implementation is summarized as straightforward in the sense that one specifies two integers, tt2 and tt3. The first controls the number of orthonormal projections entering the series-HAR long-run variance estimator, and the second governs the multiplier construction in SHAR-WB. This suggests a modular architecture: basis-projection standardization for the statistic itself, and basis-driven multiplier dependence for bootstrap calibration.

A common misconception is that robustness to serial dependence in two-sample problems necessarily requires block bootstrap resampling or explicit parametric modeling of the autocovariance structure. The series HAR approach provides a different route: the long-run variance is estimated through orthonormal series projections, and the bootstrap analogue reproduces dependence through dependent wild multipliers rather than blocks. Within the reported evidence, this combination is associated with valid inference under heterogeneity and nonparametric dependence structures, together with superior finite-sample performance for the bootstrap variant (Hounyo et al., 12 Dec 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Series HAR Two-Sample t-Tests.