Tutorials › Statistical Genetics › Testing Multiple Kernels and Variant Weighting Schemes

Kernel Tests and SKAT Methods · Tutorial 452 of 989

Testing Multiple Kernels and Variant Weighting Schemes

Compare kernel-based tests without treating an observed choice of the smallest p-value as if it had been prespecified.

Advanced 12 min read

What You'll Learn

  • Distinguish a prespecified kernel test from selection among several tests.
  • Express nonnegative weighted combinations of kernels as a single kernel.
  • Derive the null distribution of a kernel score statistic from its eigenvalues.
  • Use Bonferroni or Holm adjustments when reporting results across kernels.
  • Calibrate data-driven kernel selection with a joint null distribution.
  • Recognize why averaging p-values or reporting the smallest unadjusted p-value can mislead.

Why Test More Than One Kernel?

A gene can contain variant classes that differ in frequency, functional annotation, or expected effect pattern. A kernel emphasizes particular similarities among individuals and therefore gives more weight to some patterns of genetic variation than others. An annotation-informed kernel or a different prespecified weighting scheme can be useful when that choice reflects a scientific hypothesis. But trying several kernels and reporting whichever gives the smallest p-value is a different procedure: the choice itself depends on the observed data.

The distinction matters because the usual p-value for one SKAT kernel is calibrated for that one test. It does not automatically account for a search over several kernels. The tests are often correlated because they use the same individuals, variants, and phenotype, but correlation does not make the selection cost disappear. The analysis must either define a single kernel in advance or calibrate the comparison or selection procedure.

Definition: A kernel test is a score test based on a positive semidefinite kernel matrix \(K\), which specifies how genetic information is weighted or compared. A prespecified kernel is fixed without using the observed association evidence. Kernel selection means choosing among candidate kernels using the observed data, for example by selecting the smallest p-value.

Score Statistics and Their Null Distributions

Let \(U\) be the vector of variant score statistics after accounting for the covariate model, and let \(V\) be its covariance matrix under the null hypothesis of no association for the tested gene. For a positive semidefinite kernel \(K\), the kernel score statistic is

$$ Q_K=U^\mathsf{T}KU. $$

The kernel determines how the score evidence is aggregated. For a diagonal variant-weighting scheme, larger diagonal entries give the corresponding variant scores more influence. More general kernels can encode annotation-based similarities or combine several variant classes. The matrix must be positive semidefinite for the standard nonnegative weighted-mixture interpretation.

Under the null, the usual score-test calibration relies on the null mean and covariance model being appropriate and on the score vector having its stated null distribution. In the standard asymptotic formulation, \(U\) is approximately multivariate normal with mean zero and covariance \(V\). The eigenvalues of \(V^{1/2}KV^{1/2}\), denoted \(\lambda_1,\ldots,\lambda_r\), then determine the reference distribution:

$$ Q_K \ \overset{\cdot}{\sim}\ \sum_{j=1}^{r}\lambda_j Z_j^2, \qquad Z_j\ \text{independent }N(0,1). $$

Thus each kernel has its own null distribution and p-value. Comparing raw \(Q_K\) values across kernels is generally not a fair comparison: their eigenvalues, and therefore their null scales, can differ. A p-value accounts for the null distribution of its own statistic, but a collection of p-values still requires care if one is chosen after seeing them.

Combining Prespecified Kernels

Suppose \(K_1,\ldots,K_m\) represent scientifically motivated variant classes or weighting schemes. One option is to specify nonnegative combination weights \(a_1,\ldots,a_m\) before examining the association evidence and define

$$ K_{\mathrm{comb}}=\sum_{k=1}^{m}a_kK_k, \qquad Q_{\mathrm{comb}}=U^\mathsf{T}K_{\mathrm{comb}}U =\sum_{k=1}^{m}a_kQ_{K_k}. $$

If each \(K_k\) is positive semidefinite and each \(a_k\geq 0\), then \(K_{\mathrm{comb}}\) is positive semidefinite. The combined statistic is one kernel test, calibrated using the eigenvalues of \(V^{1/2}K_{\mathrm{comb}}V^{1/2}\). It is not calibrated by averaging the individual p-values. A prespecified combination can distribute sensitivity across patterns, but it may be less sensitive than a well-matched individual kernel.

Justification: Write \(U=V^{1/2}Z\), where under the null \(Z\) has independent standard normal components. Then \(Q_K=Z^\mathsf{T}(V^{1/2}KV^{1/2})Z\). Diagonalizing the symmetric matrix \(V^{1/2}KV^{1/2}\) gives \(Q_K=\sum_j\lambda_jZ_j^2\), since an orthogonal transformation preserves the standard multivariate normal distribution. For a nonnegative combination, \(Q_{\mathrm{comb}}=\sum_ka_kQ_{K_k}=U^\mathsf{T}(\sum_ka_kK_k)U\), so the same eigenvalue argument applies to the combined kernel.

Worked Example: Combining Two Prespecified Kernels

Suppose two kernels emphasize different variant classes. For this hypothetical example, the adjusted score vector is \(U=(\sqrt{3.84},\sqrt{2.25})^\mathsf{T}\), its null covariance is the identity matrix, and the kernels are \(K_1=\operatorname{diag}(1,0)\) and \(K_2=\operatorname{diag}(0,1)\). Both kernels are fixed before examining the phenotype association results.

The individual statistics are

$$ Q_{K_1}=U^\mathsf{T}K_1U=3.84, \qquad Q_{K_2}=U^\mathsf{T}K_2U=2.25. $$

Under the stated null covariance, each statistic has a \(\chi^2_1\) reference distribution. Their approximate p-values are \(0.0500\) and \(0.1336\), respectively. Now prespecify an equal-weight combination, \(a_1=a_2=0.5\). The combined kernel is \(\operatorname{diag}(0.5,0.5)\), so

$$ Q_{\mathrm{comb}}=0.5(3.84)+0.5(2.25)=3.045. $$

The combined kernel has two eigenvalues equal to \(0.5\), giving the null distribution \(0.5\chi^2_2\). Consequently, \(P(0.5\chi^2_2\geq3.045)=P(\chi^2_2\geq6.09)=\exp(-3.045)\approx0.0476\). This p-value is calculated for the prespecified combined statistic, not by averaging \(0.0500\) and \(0.1336\). The example illustrates a possible result, not a guarantee that combining kernels improves power.

Comparing Kernels Without Selecting on the Outcome

If the scientific goal is to compare prespecified kernel tests, report the set of tests transparently, including their definitions, weighting schemes, statistics, and calibrated p-values. When inferential claims are made across the set, account for multiplicity. Bonferroni is valid under arbitrary dependence: for \(m\) tests, compare each p-value with \(\alpha/m\), or report \(p_{\mathrm{adj}}=\min(1,mp)\) for an individual result. Holm’s step-down method is also valid under arbitrary dependence and can be less conservative.

These adjustments control the family-wise error rate for the stated family of tests when the individual p-values are valid. In this setting, that family might be all the kernel tests examined for one gene. The family should reflect the actual search: trying additional weights, annotation subsets, or alternative kernels and omitting them from the reported count understates the multiplicity.

Worked Example: Holm Adjustment Across Four Kernels

Consider four hypothetical kernel tests for the same gene, with valid p-values \(0.006\), \(0.021\), \(0.034\), and \(0.200\). The smallest p-value corresponds to the kernel that emphasizes a prespecified functional class. To control family-wise error at \(\alpha=0.05\), sort the p-values and apply Holm’s procedure.

The first threshold is \(0.05/4=0.0125\). Since \(0.006<0.0125\), the smallest p-value passes this first step. The second threshold is \(0.05/3\approx0.0167\). Since \(0.021>0.0167\), the procedure stops: the remaining hypotheses are not rejected by Holm’s method.

For the smallest p-value, the Holm-adjusted value is \(4(0.006)=0.024\). It remains below \(0.05\), so this result is significant at the family-wise \(0.05\) level after accounting for the four tests. The raw value \(0.006\) alone would not express that multiplicity-adjusted conclusion.

Calibrating a Data-Driven Kernel Choice

A different strategy is to define the selection rule in advance and calibrate the whole rule under the null. For example, suppose the rule is to select the kernel with the smallest p-value. Each null replicate must reproduce the dependence among the candidate tests: generate or resample outcomes under the null model, retain the observed genotype and covariate structure as appropriate, recompute every kernel statistic and p-value, and record the smallest p-value (or an equivalent maximum statistic). The adjusted p-value is the null probability of obtaining a result at least as extreme as the observed selected result.

A parametric bootstrap can implement this procedure when outcomes can be simulated from the fitted null model. The null model and covariance structure must be appropriate, and nuisance parameters are typically estimated under the null. A permutation approach is appropriate only when the permutation scheme is justified under the null—for example, it must respect the study design and any relevant covariates. Neither method is automatically valid merely because it uses resampling.

Worked Example: Joint Null Calibration of the Smallest P-Value

Suppose three candidate kernels have observed p-values \(0.008\), \(0.031\), and \(0.120\). The analysis rule, specified in advance, selects the smallest. To calibrate this rule, generate 9,999 null replicates under a fitted null model. In every replicate, calculate all three kernel p-values and record the smallest. Assume 184 replicates have a minimum p-value no greater than the observed \(0.008\).

Using the standard finite-simulation correction, the selection-adjusted estimate is

$$ p_{\mathrm{adj}}=\frac{184+1}{9{,}999+1} =\frac{185}{10{,}000}=0.0185. $$

The adjusted result is below \(0.05\) under this calibration. It is not the probability that the null hypothesis is true; it estimates how often the full three-kernel selection procedure would produce a minimum p-value this small or smaller under the simulated null. The conclusion depends on the null simulation representing the analysis and dependence structure adequately.

Practical Choices and Common Pitfalls

There is no universally best weighting scheme. Weights encode assumptions about which variants should contribute most strongly, and different kernels can emphasize different alternatives. A careful analysis distinguishes a kernel chosen from external biological or statistical reasoning from one selected after inspecting association results. If the latter choice is made, the selection procedure belongs in the calibration.

A common mistake is: “I tested six kernels, the smallest p-value is \(0.02\), and I will report it as a \(0.02\) result because the kernels are correlated.” Correlation can reduce the multiplicity penalty relative to treating tests as independent, but it does not establish that there is no penalty. The correction is to use a valid multiplicity procedure, such as Holm or Bonferroni, or a joint calibration that preserves the dependence among tests.

  • Do not compare raw statistics alone. Each kernel can have a different null distribution; use calibrated p-values or a defined joint statistic.
  • Do not average p-values to create a combined-kernel p-value. Combine the kernels or statistics according to a specified rule, then calibrate that rule’s null distribution.
  • Do not report only the winning kernel. State how many kernels and weighting schemes were considered and how the choice was handled.
  • Do not assume a prespecified weighted sum is automatically optimal. Its validity and power depend on the kernel, the null calibration, and the effect pattern.

The central decision is whether the analysis tests one kernel, uses a fixed combination, or searches among candidates. These are distinct procedures. Clear specification and matching calibration make the resulting evidence interpretable, while leaving biological interpretation of an association to the broader study context.

Check Your Understanding

Answer each question by identifying the kernel procedure and the relevant calibration.

  1. Why does the smallest p-value among several tested kernels generally require adjustment even when the tests are correlated?
  2. Two positive semidefinite kernels are combined with nonnegative weights fixed in advance. What statistic is tested, and which eigenvalues determine its null distribution?
  3. Why is averaging the individual p-values not the standard way to calibrate a weighted combination of kernels?
  4. A researcher chooses a weighting scheme after inspecting the association results. What feature must a null resampling procedure reproduce?
  5. When can a Bonferroni adjustment be used, and what family of tests should its count include?
Clinical Biostats