Why Correlation Limits the Benefit of Averaging
Averaging predictions can reduce variability, but the reduction depends on whether members make errors together. If their errors are independent, averaging \(M\) equally variable members divides the error variance by \(M\). If they tend to err in the same direction, part of their variation is shared and remains in the average. The correlation among member errors therefore gives a direct way to quantify how much averaging is buying.
This tutorial considers a fixed prediction target and a specified source of randomness, such as variation across training samples or algorithmic randomization. Write \(E_m\) for member \(m\)'s prediction error under that randomness. The calculation concerns the variance of the average error. It does not, by itself, account for the average error's mean or establish that the ensemble has lower total squared-error risk.
Equal variance and equal pairwise correlation are substantive assumptions, not automatic properties of an ensemble. They are useful because they reduce the variance calculation to just three quantities: \(M\), \(\sigma^2\), and \(\rho\). The shared value \(\rho\) describes dependence in the errors, not similarity of the fitted models in every possible sense.
The Variance Formula and Effective Size
Expanding the variance of a sum gives \(M\) variance terms and \(M(M-1)\) ordered covariance terms. Under equicorrelation, all the variance terms equal \(\sigma^2\) and all the covariance terms equal \(\rho\sigma^2\). Dividing by \(M^2\) yields the ensemble variance.
For comparison, an average of \(K\) independent errors, each with variance \(\sigma^2\), has variance \(\sigma^2/K\). This motivates defining the effective ensemble size as the number \(K\) of independent, equally variable members that would give the same variance as the actual ensemble. When \(\operatorname{Var}(\bar E)>0\), solving \(\sigma^2/K=\operatorname{Var}(\bar E)\) gives:
provided the denominator is positive. It is a variance-equivalence measure, not necessarily an integer or a literal count of distinct models.
When \(\rho=0\), the effective size is \(M\): the average has the same variance as \(M\) independent members. Positive correlation makes \(M_{\mathrm{eff}}\) smaller than \(M\), while a valid negative correlation makes it larger. In particular, \(M_{\mathrm{eff}}\) can exceed the actual number of members; this means that the average has lower variance than an independent average of the same size, not that the ensemble contains additional models.
Worked Calculations
Worked Example: Eight Members With Positive Correlation
Suppose the errors are jointly Gaussian, with the model \(E_m=2\{\sqrt{1/4}\,Z_0+\sqrt{3/4}\,Z_m\}\), where \(Z_0,Z_1,\ldots,Z_8\) are independent standard normal random variables. Find the variance of the average error and its effective size.
Each error has mean zero. Independence and unit variances give \(\operatorname{Var}(E_m)=4(1/4+3/4)=4\). For distinct \(j,k\), the only shared random term is \(Z_0\), so \(\operatorname{Cov}(E_j,E_k)=4(1/4)=1\). Therefore \(\rho=1/4\).
With \(M=8\), the multiplier of \(\sigma^2\) in the ensemble variance is \(1/4+(1-1/4)/8=1/4+3/32=11/32\). Consequently, \(\operatorname{Var}(\bar E)=4(11/32)=11/8\).
An independent average with the same member variance would have variance \(4/K\). Equating \(4/K=11/8\) gives \(K=32/11\), approximately \(2.91\). The effective size is therefore about \(2.91\), despite there being eight members.
Worked Example: Negative Correlation and an Effective Size Above the Member Count
Let \(M=4\), \(\sigma^2=9\), and \(\rho=-1/6\), with the error vector having a multivariate normal distribution with mean zero and covariance matrix \(9R\), where \(R\) has diagonal entries \(1\) and off-diagonal entries \(-1/6\). First check that this is a valid covariance matrix.
For an equicorrelation matrix of size four, the eigenvalue in the direction of the all-ones vector is \(1+3\rho=1/2\). The other three eigenvalues are \(1-\rho=7/6\). They are all positive, so \(R\) is positive definite and the specified Gaussian model exists.
The average-error variance is \(9\{-1/6+(1+1/6)/4\}=9\{-1/6+7/24\}=9(1/8)=9/8\). Thus the effective size is \(9/(9/8)=8\). Negative dependence lets four members achieve the same variance as eight independent members of variance \(9\).
This example does not mean that every negative value of \(\rho\) is possible for every ensemble size. The allowable range must be checked, as the next result shows.
Worked Example: Many Members but Little Variance Reduction
Suppose \(M=100\), each error has variance \(1\), and the equicorrelation is \(\rho=0.9\). The variance multiplier is \(0.9+(0.1/100)=0.901\), so \(\operatorname{Var}(\bar E)=0.901\). The effective size is \(1/0.901=1000/901\), approximately \(1.11\).
For comparison, 100 independent errors of variance \(1\) would give average variance \(1/100=0.01\). The 100 highly correlated members reduce variance only slightly relative to one member. Their number alone is not a reliable measure of the benefit of averaging.
Which Equicorrelations Are Possible?
A proposed correlation must correspond to a positive semidefinite correlation matrix. For \(M\) equicorrelated errors, that matrix has the form \(R=(1-\rho)I+\rho\mathbf{1}\mathbf{1}^{\mathsf T}\), where \(I\) is the \(M\) by \(M\) identity matrix and \(\mathbf{1}\) is the vector of \(M\) ones.
Proof. For a vector \(v\) proportional to \(\mathbf{1}\), the matrix \(R\) acts by multiplication by \(1+(M-1)\rho\), because \(\mathbf{1}^{\mathsf T}\mathbf{1}=M\). For any vector \(v\) perpendicular to \(\mathbf{1}\), we have \(\mathbf{1}^{\mathsf T}v=0\), so \(Rv=(1-\rho)v\). The space perpendicular to \(\mathbf{1}\) has dimension \(M-1\). These are all the eigenvalues: \(1+(M-1)\rho\) once, and \(1-\rho\) with multiplicity \(M-1\). A real symmetric matrix is positive semidefinite exactly when all its eigenvalues are nonnegative. Thus the necessary and sufficient conditions are \(1+(M-1)\rho\ge 0\) and \(1-\rho\ge 0\), equivalent to the stated bounds. \(\square\)
At the lower boundary, \(1+(M-1)\rho=0\), so the variance formula gives \(\operatorname{Var}(\bar E)=0\). In this singular case, the effective size defined by dividing \(\sigma^2\) by the ensemble variance is infinite; the finite formula for \(M_{\mathrm{eff}}\) has a zero denominator. At \(\rho=1\), the errors have the same variance and correlation one, and the average has variance \(\sigma^2\), equal to that of a single member.
What Happens as the Ensemble Grows?
For a fixed \(\rho\) between zero and one, the variance formula can be written as a shared component, \(\sigma^2\rho\), plus a component, \(\sigma^2(1-\rho)/M\), that decreases with ensemble size. In particular, for fixed \(\rho>0\), the variance approaches \(\sigma^2\rho\), rather than zero. More members reduce the unshared variation but cannot remove this shared part.
The reduction from adding one member can also be calculated exactly. For \(0\le\rho\le1\), \(\operatorname{Var}(\bar E_M)-\operatorname{Var}(\bar E_{M+1})=\sigma^2(1-\rho)/\{M(M+1)\}\). This difference is nonnegative and decreases as \(M\) increases. If \(\rho=1\), adding members gives no variance reduction; if \(\rho=0\), the familiar independent-member reduction is recovered.
Worked Example: The Incremental Gain From One More Member
Take \(\sigma^2=4\), \(\rho=1/2\), and compare an ensemble of \(M=4\) members with one of five members. The four-member variance is \(4\{1/2+(1/2)/4\}=4(5/8)=5/2\). The five-member variance is \(4\{1/2+(1/2)/5\}=4(3/5)=12/5\).
The reduction is \(5/2-12/5=25/10-24/10=1/10\). The general expression gives \(4(1/2)/(4\cdot5)=1/10\) as well. As the ensemble grows, the shared correlation component remains, while the gains from each additional member shrink.
Interpretation and a Common Pitfall
Effective size is useful when comparing ensembles with different member counts or dependence levels. Two ensembles can have different values of \(M\) but the same variance-equivalent size. It also makes clear why increasing the number of trees or other members need not yield a proportional reduction in prediction variability: the dependence among their errors matters.
Common mistake: “There are \(M\) members, so averaging divides the variance by \(M\).” This reasoning silently assumes zero covariance. In general, the covariance terms contribute \(\sigma^2(M-1)\rho/M\) to the average variance, giving \(\sigma^2\{\rho+(1-\rho)/M\}\), not simply \(\sigma^2/M\). The correction is to account for the pairwise error correlation before interpreting the ensemble size.
Finally, variance is only one part of prediction performance. If all members share a nonzero mean error, averaging does not remove that common mean. Effective size compares variances to an independent-member benchmark; it does not guarantee a particular mean squared error improvement, nor does it replace analysis of bias or total risk.
Check Your Understanding
Use the equal-variance equicorrelation assumptions unless a question asks you to check them.
- For \(M=6\) and \(\rho=0\), what are the ensemble variance and effective size in terms of \(\sigma^2\)?
- For \(M=5\), is \(\rho=-0.3\) an admissible equicorrelation? Explain using the allowable range.
- If \(M=20\) and \(\rho=0.1\), calculate the effective size and state whether it is greater or less than 20.
- For fixed \(\rho=0.4\), what value does the ensemble variance approach as \(M\) increases without bound?
- Why does effective size not, by itself, determine whether averaging reduces total squared-error risk?