Tutorials › High-Dimensional Genomic Data Analysis › Studentized Max-T Tests Under Unequal Variances

Permutation and Resampling Tests · Tutorial 211 of 795

Studentized Max-T Tests Under Unequal Variances

Compare raw and studentized max-T statistics, calculate resampling-based familywise p-values, and identify when studentization helps without mistaking it for a cure-all for invalid permutations.

Advanced 12 min read

What You'll Learn

  • Define raw and studentized statistics for a family of genomic hypotheses.
  • Calculate a Welch-type standard error and compare evidence across differently scaled outcomes.
  • Construct a studentized maximum-statistic reference distribution and an adjusted p-value.
  • Distinguish exact randomization validity under a sharp null from inference for a weak equality-of-means null.
  • Diagnose when unequal variances or dependence make a resampled max-T calibration unreliable.
  • Explain why studentization improves scale comparability but does not automatically ensure strong familywise error control.

Why the Scale of a Test Statistic Matters

A maximum-statistic procedure compares the largest test statistic in a family with a resampled reference distribution. This comparison is meaningful only if the statistics are on a suitably comparable scale. In genomic analyses, different features can have very different variability: a raw difference in average expression of 2 units may be striking for a stable feature but unremarkable for a highly variable one.

Studentization addresses this scale problem by dividing an estimated effect by an estimate of its standard error. It does not, by itself, make an invalid resampling scheme valid. In particular, unequal variances can make group labels nonexchangeable under a weak equality-of-means null. The justification for the resampling distribution must still come from the design or from an appropriate asymptotic argument.

Definition: For hypothesis \(j\), let \(\hat{\delta}_j\) estimate the effect being tested and let \(\widehat{SE}_j\) estimate its standard error. The raw statistic is \(\hat{\delta}_j\), or its absolute value for a two-sided test. The studentized statistic is \(T_j=\hat{\delta}_j/\widehat{SE}_j\), or \(|T_j|\) for a two-sided test. The corresponding single-step maximum statistics are \(M_{\mathrm{raw}}=\max_{1\leq j\leq m}|\hat{\delta}_j|\) and \(M_T=\max_{1\leq j\leq m}|T_j|\).

For a two-group comparison of independent observations, a common estimate of the difference in means for feature \(j\) is \(\hat{\delta}_j=\bar{x}_{1j}-\bar{x}_{0j}\). Under unequal variances, its Welch-type standard error is

$$ \widehat{SE}_j=\sqrt{\frac{s_{1j}^2}{n_1}+\frac{s_{0j}^2}{n_0}}. $$

Here \(n_1,n_0\) are the group sample sizes and \(s_{1j},s_{0j}\) are the within-group sample standard deviations for feature \(j\). This formula assumes independent observations across subjects and a valid sample variance within each group; it does not assume the two population variances are equal. For paired, blocked, clustered, or covariate-adjusted designs, the standard error and resampling scheme must instead respect that design.

What the Resampled Maximum Represents

Suppose a resampling scheme produces \(B\) permitted resamples. For each resample \(b\), compute all feature-specific statistics using the same procedure as for the observed data, then retain their maximum. For studentized max-T, this means recomputing both the estimated effect and its standard error in each resample:

$$ M_T^{(b)}=\max_{1\leq j\leq m}\left|T_j^{(b)}\right|,\qquad b=1,\ldots,B. $$

For feature \(j\), a single-step adjusted resampling p-value compares its observed \(|T_j|\) with this distribution of maxima. With a Monte Carlo resampling procedure, a common estimate is

$$ \hat{p}_{j,\mathrm{adj}}= \frac{1+\sum_{b=1}^{B} I\{M_T^{(b)}\geq |T_j^{\mathrm{obs}}|\}}{B+1}. $$

The added one avoids reporting a zero p-value when no sampled maximum exceeds the observed statistic. The reference distribution uses the joint resampled outcomes across features, so it retains their dependence to the extent that the resampling scheme preserves it. A max-T adjustment is a familywise procedure, but the validity of its error-rate guarantee depends on the null and assumptions supporting that reference distribution.

Worked Example: Raw Effects and Standard Errors Give Different Rankings

Suppose two hypothetical genomic features are measured in independent treatment and control groups, with \(n_1=n_0=20\). For feature A, the observed difference in means is \(0.8\) expression units, and both group standard deviations are \(2\) units. For feature B, the difference is \(3.0\) units, and both standard deviations are \(10\) units. Treat these as summary data from the same two-group design.

For feature A, the Welch standard error and studentized statistic are

$$ \widehat{SE}_A=\sqrt{\frac{2^2}{20}+\frac{2^2}{20}} =\sqrt{0.4}=0.6325,\qquad |T_A|=\frac{0.8}{0.6325}=1.265. $$

For feature B, they are

$$ \widehat{SE}_B=\sqrt{\frac{10^2}{20}+\frac{10^2}{20}} =\sqrt{10}=3.162,\qquad |T_B|=\frac{3.0}{3.162}=0.9487. $$

The raw maximum is \(M_{\mathrm{raw}}=\max(0.8,3.0)=3.0\), attained by feature B. The studentized maximum is \(M_T=\max(1.265,0.9487)=1.265\), attained by feature A. This is not a contradiction: B has the larger effect in expression units, while A's effect is larger relative to its estimated uncertainty. The calculation assumes the independent two-group sampling structure used in the standard error formula; it does not alone establish a valid resampling test.

Why Studentization Helps Under Unequal Variances

The central benefit is that the standard error puts feature-specific effects in units of their sampling uncertainty. Under independent sampling, finite positive variances, and adequate sample sizes, the central limit theorem gives an approximately normal sampling distribution for a difference in means. Dividing by a consistent estimate of its standard deviation makes the statistic's null scale approximately one, even when the underlying feature variances differ.

A raw difference has a null variance that depends directly on both group variances and sample sizes. Thus, even if all null differences are zero, features with large variances tend to generate larger raw fluctuations and can dominate a raw maximum. Studentizing can reduce this scale imbalance, making the maximum a more coherent measure of the most extreme standardized evidence.

A Scale Calculation for the Permutation Problem

The distinction between a sharp null and a weak null is essential. A sharp null specifies no treatment effect for every unit, so each unit's outcome would be the same under every allowed assignment. A weak equality-of-means null says only that the two population means are equal; it permits individual effects or differing outcome distributions that cancel in the mean. Randomized group assignments alone do not make a test exact for this weaker null.

The issue with raw permutation statistics can be seen in a two-sample setting. Let \(N=n_1+n_0\), and suppose the sample-size fraction in group 1 approaches \(\lambda=n_1/N\), with \(0<\lambda<1\). Under independent groups with population variances \(\sigma_1^2,\sigma_0^2\), the variance of the raw difference in means is

$$ \operatorname{Var}(\bar{x}_1-\bar{x}_0) =\frac{\sigma_1^2}{n_1}+\frac{\sigma_0^2}{n_0}. $$

A label permutation draws both groups from the pooled observations. Its pooled variance approaches \(\lambda\sigma_1^2+(1-\lambda)\sigma_0^2\), so the variance of a permuted raw difference approaches

$$ \left(\lambda\sigma_1^2+(1-\lambda)\sigma_0^2\right) \left(\frac{1}{n_1}+\frac{1}{n_0}\right). $$

These expressions need not agree. For example, their variance factors after multiplying by \(N\) are respectively \(\sigma_1^2/\lambda+\sigma_0^2/(1-\lambda)\) and \(\sigma_1^2/(1-\lambda)+\sigma_0^2/\lambda\). They coincide when group sizes are asymptotically equal or the variances are equal, but not in general. The raw permutation distribution can therefore be on the wrong scale under a weak null with unequal variances.

Studentization uses a group-specific standard error, rather than a pooled equal-variance standard error. In a two-group mean test, the Welch statistic is asymptotically standard normal under the weak null when the groups are independent, both sample sizes grow with their ratio bounded away from zero and one, the variances are finite and positive, and suitable moment conditions hold. A studentized permutation test can likewise have asymptotic validity for this single contrast under suitable conditions, despite not being an exact test for the weak null.

This univariate argument is not automatically a proof for a maximum across many correlated features. For a family max-T test, the joint distribution of the vector of studentized statistics must also be represented adequately. Studentization of each coordinate corrects its marginal scale; it does not necessarily correct a mismatch in cross-feature dependence under heteroskedasticity. The broad high-dimensional case can require stronger conditions and methods designed to preserve or estimate the relevant joint structure.

1
Define the family and contrast.
Specify which features are tested, the effect \(\hat{\delta}_j\), the direction of each alternative, and whether the family uses one- or two-sided statistics.
2
Choose a design-compatible standard error.
For independent two-group means with unequal variances, use the Welch form; for paired or blocked observations, use a standard error and resampling unit that reflect those dependencies.
3
Justify the resampling scheme under the null.
Use allowed assignments for a sharp randomization null. For a weak null, do not claim exactness from randomization alone; justify an asymptotic or other valid procedure.
4
Recompute and inspect the maximum.
For every resample, recalculate each effect and standard error, form the maximum, then compare observed statistics with the resulting reference distribution.

Worked Example: A Monte Carlo Studentized Max-T P-Value

Suppose two-sided studentized statistics are calculated for a family of hypothetical features, and the largest observed absolute statistic is \(1.20\). Nine resampled maxima are \(0.42, 0.77, 1.31, 0.55, 0.96, 0.68, 1.05, 0.33,\) and \(0.89\). These are assumed to have been computed by re-estimating each feature's standard error within each resample, using a scheme justified for the inferential target.

Only one of the nine resampled maxima is at least \(1.20\): \(1.31\). Thus \(B=9\) and the exceedance count is \(b=1\), giving

$$ \hat{p}_{\mathrm{adj}}=\frac{b+1}{B+1} =\frac{1+1}{9+1}=0.200. $$

This Monte Carlo estimate is not small evidence against the corresponding familywise null at conventional levels such as \(\alpha=0.05\). With only nine resamples it is also coarse and uncertain; substantially more resamples would be needed for precise tail probabilities. The arithmetic does not establish validity: that still depends on the resampling assumptions and on whether the studentized joint maximum is calibrated for the null being tested.

Exactness, Diagnostics, and Alternatives

Worked Example: What Random Assignment Does and Does Not Guarantee

Imagine a hypothetical trial with 24 independent units, 12 assigned to treatment and 12 to control by complete random assignment. Suppose the target null is that treatment has no effect on any unit. Under this sharp null, every unit's outcome is fixed across assignments. The design makes each allowed allocation equally likely, so comparing a statistic computed for the observed assignment with its values over the allowed assignments gives an exact randomization test, up to discreteness. The statistic may be a raw maximum or a studentized maximum, provided it is recomputed for every assignment.

Now change only the null statement: treatment and control have equal population means, but treatment effects may vary across units and the outcome variances may differ between groups. The sharp-null invariance no longer follows. Equal randomization probabilities do not make the observed outcomes exchangeable under this weak null. A label-permutation max-T test is therefore not automatically exact. Studentization may support asymptotic inference under suitable conditions, but its validity for the full maximum still needs joint-distribution justification.

Several checks help identify problems before interpreting adjusted p-values:

  • Compare estimated standard errors. A wide range across features signals that raw effects may have strongly unequal null scales.
  • Inspect group variances and sample sizes. Extreme imbalance combined with unequal variances is a warning that raw label permutation may be poorly calibrated under a weak null.
  • Check the resampling unit. Permuting individual measurements when observations are paired, blocked, or clustered breaks the design structure and can distort both variances and dependence.
  • Inspect studentized resample statistics. Heavy tails, unstable standard errors, or frequent zero denominators indicate that normal-scale intuition may be unreliable.
  • Check joint behavior, not only marginal scales. Correlated features can determine the tail of the maximum. Matching each feature's variance does not prove that the dependence in the resampled vector is appropriate.

A raw max statistic may be reasonable when feature effects genuinely share a common, interpretable scale and the resampling distribution is valid for the null. Studentized max-T is usually more comparable when standard errors differ, but it can be unstable for features with tiny sample variances and it changes the emphasis from absolute effect size to effect relative to uncertainty. Under nonexchangeable errors, a heteroskedasticity-aware procedure such as a wild bootstrap may be preferable; it too requires assumptions and diagnostics. As covered in the earlier material on strong familywise control and subset pivotality, improving statistic scale is distinct from establishing strong familywise error control. Studentization alone does not establish subset pivotality or any other condition needed for that guarantee.

Common pitfall: “The groups were randomized, so permuting labels is an exact test of equal means even when variances differ.” This is not generally correct. Randomization gives exactness for a sharp null under the stated assignment mechanism; a weak equality-of-means null does not make unit outcomes invariant across assignments. Studentizing can improve scale calibration and may yield asymptotic validity under stated conditions, but it does not turn a nonexchangeable weak-null problem into an exact permutation test.

Check Your Understanding

Answer each question, then compare your reasoning with the brief solutions below.

  1. Two features have estimated effects \(1.5\) and \(2.0\), with standard errors \(0.5\) and \(2.0\), respectively. Which feature has the larger raw effect, and which has the larger absolute studentized statistic?
  2. For a family of tests, why must standard errors be recalculated within each resample when constructing studentized max-T?
  3. A randomized experiment uses label permutation to test the sharp null of no unit-level treatment effects. What supports exact randomization inference in this case?
  4. Why does studentization not, by itself, guarantee a valid max-T reference distribution for many correlated features?
  5. With \(B=99\) resampled maxima, 4 are at least as large as an observed statistic. Calculate the plus-one Monte Carlo adjusted p-value.

Solutions. (1) The raw effects are \(1.5\) and \(2.0\), so the second feature has the larger raw effect. The absolute studentized statistics are \(1.5/0.5=3.0\) and \(2.0/2.0=1.0\), so the first is larger on the standardized scale. (2) The statistic is defined using the estimated standard error; holding it fixed would fail to reproduce the resampling variation in the studentized statistic and its maximum. (3) Under the sharp null, each unit's outcome is unchanged across assignments, and the allowed assignments are generated with known probabilities by the stated randomized design. (4) Studentization targets each feature's marginal scale, but the distribution of a maximum also depends on the joint dependence among features; that dependence may not be correctly represented by the resampling scheme. (5) Here \(b=4\), so \(\hat{p}=(b+1)/(B+1)=5/100=0.0500\).

Clinical Biostats