Tutorials › Multi-Omics Data Integration › Equal-Variance Versus Equal-Influence Block Weights

Preprocessing, Scaling and Block Weighting · Tutorial 45 of 597

Equal-Variance Versus Equal-Influence Block Weights

Learn to calculate and interpret block weights that equalize average feature variance or total block influence, and to choose between these distinct goals.

Intermediate 10 min read

What You'll Learn

  • Define average feature variance and total variance for a centered data block.
  • Derive scalar weights for equal average variance and equal total influence.
  • Calculate how unequal feature counts affect the two weighting targets.
  • Connect total block variance to expected squared distances between samples.
  • Diagnose weighting choices using block-level variance summaries and distance contributions.
  • Recognize when neither target represents the scientific aim.

Why Two Equal-Weighting Goals Differ

When omics blocks are concatenated, a block with more features can contribute more to a distance or variance-based analysis, even if its features have the same average variance as those in a narrower block. This follows because total variation adds across features. A weighting rule therefore needs a clearly stated target: should blocks have the same average variance per feature, or should each block contribute the same total variance?

These goals are not interchangeable. If two blocks have the same average feature variance but one has four times as many features, its total variance is four times as large. Equalizing average variance preserves that difference. Equalizing total variance removes it, which means the wider block must have a lower average variance after weighting. The choice changes what “balanced” means in a combined analysis.

Assume the blocks contain the same \(n\) matched samples, so each row refers to the same sample across blocks. Let \(X_b\) be the centered data matrix for block \(b\), with \(n\) rows and \(p_b\) features. Centering means that each feature has sample mean zero. Write \(s_{bj}^2\) for the sample variance of feature \(j\) in block \(b\). In this tutorial, a block is multiplied by one nonnegative scalar \(a_b\); this scalar changes every feature in the block by the same factor.

Definition: The average feature variance of centered block \(b\) is \(V_b=p_b^{-1}\sum_{j=1}^{p_b}s_{bj}^2\). Its total variance is \(T_b=\sum_{j=1}^{p_b}s_{bj}^2=p_bV_b\). After multiplying the block by \(a_b\), its average feature variance is \(a_b^2V_b\) and its total variance is \(a_b^2T_b\).

The squared factor arises because variance is measured in squared units: multiplying a feature by \(a_b\) multiplies its variance by \(a_b^2\). These summaries describe marginal feature variances. They do not assert that features within a block are independent, nor do they measure biological importance by themselves.

Deriving the Two Weighting Rules

For equal average variance, choose a common target \(c>0\) and require every weighted block to have average feature variance \(c\). Solving \(a_b^2V_b=c\) gives \(a_b=\sqrt{c/V_b}\). A convenient reference is \(c=1\), yielding \(a_b=1/\sqrt{V_b}\), provided \(V_b>0\). The target value is a scale convention; the essential feature is that each block’s average variance is matched.

For equal total influence, where influence is defined here by total variance, choose a common target \(C>0\) and require \(a_b^2T_b=C\). Solving gives \(a_b=\sqrt{C/T_b}\). With \(C=1\), the weight is \(a_b=1/\sqrt{T_b}\). Since \(T_b=p_bV_b\), this rule depends on both the block’s average variance and its feature count.

$$ a_{b,\mathrm{avg}}=\frac{1}{\sqrt{V_b}}, \qquad a_{b,\mathrm{total}}=\frac{1}{\sqrt{T_b}} =\frac{1}{\sqrt{p_bV_b}} $$

The formulas assume centered data, finite and positive variance summaries, and the same sample set when comparing blocks. A zero-variance block has no variation to rescale: dividing by its zero summary is undefined, so it must be investigated or excluded under a stated preprocessing rule. If blocks have different missingness patterns or sample sets, their summaries may not be comparable without addressing that difference first.

Worked Example: Equal Average Variance Leaves a Width Effect

Suppose a hypothetical study has two centered blocks, both with average feature variance \(4\). Block A has \(100\) features and block B has \(25\). Find weights that make average variance equal to \(1\), and compare their total variances.

For each block, \(V_b=4\), so the equal-average-variance weight is \(a_b=1/\sqrt{4}=0.5\). The weighted average variance is \(a_b^2V_b=0.25(4)=1\) in both blocks.

Before weighting, \(T_A=100(4)=400\) and \(T_B=25(4)=100\). After weighting, the totals are \(a_A^2T_A=0.25(400)=100\) and \(a_B^2T_B=0.25(100)=25\). Thus equal average feature variance does not give equal total variance: block A still has four times block B’s total.

The arithmetic is consistent with the identity \(T_b=p_bV_b\): when the average variance is fixed at \(1\), the weighted totals are \(100\) and \(25\), exactly the feature counts.

What Equal Total Influence Changes

Equal total influence uses the same starting blocks but sets both weighted totals to a common value. In the preceding example, choosing \(C=100\) gives block A weight \(\sqrt{100/400}=0.5\), and block B weight \(\sqrt{100/100}=1\). Their weighted totals are both \(100\). Their weighted average variances are \(100/100=1\) for A and \(100/25=4\) for B. Equal total influence therefore does not equalize average feature variance when feature counts differ.

The target \(C\) can be chosen for convenience. Using \(C=1\) would multiply both weights in this example by an additional common factor of \(1/10\); it would preserve their relative weighting and still give equal totals. A common change of scale may affect the numerical units of a combined representation, but it does not change the ratio of the block weights.

Worked Example: Unequal Width and Unequal Starting Variance

Consider hypothetical centered block A with \(80\) features and average variance \(9\), and block B with \(20\) features and average variance \(1\). Calculate weights for (a) equal average variance \(1\) and (b) equal total variance \(100\).

The initial totals are \(T_A=80(9)=720\) and \(T_B=20(1)=20\).

(a) Equal average variance. The weights are \(a_A=1/\sqrt{9}=1/3\) and \(a_B=1/\sqrt{1}=1\). The weighted averages are \((1/3)^2(9)=1\) and \(1^2(1)=1\). The weighted totals are \((1/9)(720)=80\) and \(1(20)=20\). Average variances match, but block A’s total is four times block B’s.

(b) Equal total variance. For target \(C=100\), \(a_A=\sqrt{100/720}=0.3727\) and \(a_B=\sqrt{100/20}=\sqrt{5}=2.236\), to four significant figures. The weighted totals are \(0.3727^2(720)\approx100.0\) and \(2.236^2(20)\approx100.0\). The weighted average variances are \(100/80=1.25\) for A and \(100/20=5\) for B.

The narrower block receives the larger multiplier under equal total influence because its starting total is smaller. This is a mathematical consequence of the target, not evidence that block B is more reliable or more biologically important.

Why Total Variance Predicts a Distance Contribution

Total variance has a direct interpretation for analyses based on squared Euclidean distances. Let \(x_{ib}\) be the centered feature vector for sample \(i\) in block \(b\), and suppose two distinct samples are independent draws from the same distribution with covariance matrix \(\Sigma_b\). Their expected squared distance in that block is twice the sum of the feature variances. The result does not require features within a sample to be independent.

Justification: For independent sample vectors \(x_{ib}\) and \(x_{kb}\), with mean zero and covariance \(\Sigma_b\), expand the squared distance and take expectations. The cross term has expectation zero by independence and zero means. The two squared-norm terms each have expectation \(\operatorname{tr}(\Sigma_b)=\sum_j\operatorname{Var}(x_{ibj})\). Hence \(E\lVert x_{ib}-x_{kb}\rVert^2=2\operatorname{tr}(\Sigma_b)\). Multiplying the block by \(a_b\) multiplies this expectation by \(a_b^2\).

This is a population argument under the stated sampling assumptions; it explains why total variance is a useful proxy for expected squared-distance contribution. It does not guarantee identical contributions for every pair of observed samples. Equalizing this proxy can be appropriate when the goal is to give blocks comparable total scale in a distance-based analysis, but that goal should not be confused with equalizing each feature’s typical variance.

Worked Example: Comparing Expected Distance Contributions

Suppose hypothetical block A has three feature variances \(1,4,4\), while block B has one feature with variance \(4\). Assume the centered sample vectors follow the same independent-draw conditions used in the justification above. Compare the expected squared-distance contributions after each of two weighting choices.

Block A has \(T_A=1+4+4=9\) and \(V_A=9/3=3\). Block B has \(T_B=4\) and \(V_B=4\).

Equal average variance of \(1\). The weights are \(a_A=1/\sqrt{3}=0.5774\) and \(a_B=1/\sqrt{4}=0.5\). The weighted totals are \(0.5774^2(9)=3\) and \(0.5^2(4)=1\). The expected squared distances are therefore \(2(3)=6\) for A and \(2(1)=2\) for B.

Equal total variance of \(1\). The weights are \(a_A=1/\sqrt{9}=1/3\) and \(a_B=1/\sqrt{4}=0.5\). Both weighted totals are \(1\), so both expected squared distances are \(2(1)=2\). The totals match, although the average weighted feature variances differ: \(1/3\) in A and \(1\) in B.

Choosing a Target, Checking It, and Recognizing Failure

Equal average variance is useful when the intended unit of balance is a typical feature: after weighting, the average marginal variance per feature is the same across blocks. It still allows a wider block to contribute more total variation. Equal total influence is useful when the intended unit is the block as a whole: each block has the same summed marginal variance, so a wider block’s average feature variance is lower. Neither choice is universally preferable.

Other approaches answer different questions. Leaving blocks unweighted preserves the variation on the scales produced by earlier preprocessing, but can let a high-variance or wide block dominate. Scaling every feature individually to unit variance makes each feature’s variance equal, but a block with \(p_b\) such features then has total variance \(p_b\); this is not equal total influence. A block-level scalar preserves the relative variances among features within that block, unlike individual feature scaling. The earlier material on feature scaling and concatenated analyses motivates these distinctions; the decision here is specifically which block-level summary to equalize.

After applying weights, calculate both \(a_b^2V_b\) and \(a_b^2T_b\). The first checks the average-variance target, and the second checks the total-influence target. Also inspect each block’s contribution to representative squared distances, and check whether a small number of unusual features dominate a block summary. A block can meet its target while still having substantial within-block heterogeneity.

The calculation can fail to represent the intended comparison if blocks use different samples, if preprocessing has left major technical artifacts, or if very small variance estimates produce extreme weights. Weighting cannot repair poor measurements or make blocks equally informative. In addition, total variance sums marginal variances; it is not a measure of signal relevance, reliability, or cross-block agreement. Those properties require separate scientific or statistical considerations.

  • Common mistake: “Both blocks have average variance one, so both have equal influence.” This ignores feature count: total variance is \(p_b\) times average variance. The correction is to compute the totals explicitly and use equal-total weighting if matching those totals is the actual objective.
  • Common mistake: “Equal total influence means every feature has the same variance.” It means the sums of feature variances match; the averages will generally differ when feature counts differ. Inspect the per-feature variances if equal feature-level scale is the goal.
Key takeaway: Equal average variance matches variance per feature; equal total influence matches summed variance per block. Because \(T_b=p_bV_b\), blocks with unequal feature counts cannot generally satisfy both targets using one scalar weight per block.

Check Your Understanding

Work through each question, then compare with the brief solutions below.

  1. A centered block has \(50\) features, each with sample variance \(2\). What are its average and total variance? What weight makes its average variance \(1\)?
  2. Two blocks have feature counts \(10\) and \(40\), and both have average variance \(1\). After equal-average-variance weighting to target \(1\), what is the ratio of their total variances?
  3. Block C has \(p_C=12\) and \(V_C=3\). Find its weight for equal total variance target \(C=1\), and its resulting average variance.
  4. Why does multiplying a block by \(a_b\) multiply its total variance by \(a_b^2\), not \(a_b\)?
  5. Does equal total variance establish that two blocks are equally reliable? Explain.

Solutions. (1) The average is \(2\), and the total is \(50(2)=100\). The weight is \(1/\sqrt{2}=0.7071\). (2) Each weighted average remains \(1\), so the totals are \(10\) and \(40\); the wider block’s total is four times the narrower block’s. (3) Its initial total is \(12(3)=36\), so \(a_C=1/\sqrt{36}=1/6\). The weighted average is \((1/6)^2(3)=3/36=0.08333\). (4) Variance is based on squared deviations: \((a_bx-a_b\bar{x})^2=a_b^2(x-\bar{x})^2\). (5) No. Equal total variance matches a scale summary only; reliability depends on measurement quality and other features not established by that equality.

Clinical Biostats