The amount of variance explained is widely reported for quantifying the model fit of a multiple linear regression model. The default adjusted R-squared estimator has the disadvantage of not being unbiased. The theoretically optimal Olkin-Pratt estimator is unbiased. Despite this, it is not being used due to being difficult to compute. In this paper, I present an algorithm for the exact and fast computation of the Olkin-Pratt estimator, which facilitates its use. I compare the Olkin-Pratt, the adjusted R-squared, and 18 alternative estimators using a simulation study. The metrics I use for comparison closely resemble established theoretical optimality properties. Importantly, the exact Olkin-Pratt estimator is shown to be optimal under the standard metric, which considers an estimator optimal if it has the least mean squared error among all unbiased estimators. Under the important alternative metric, which aims for the estimator with the lowest mean squared error, no optimal estimator could be identified. Based on these results, I provide careful recommendations on when to use which estimator, which first and foremost depends on the choice of which metric is deemed most appropriate. If such a choice is infeasible, I recommend using the exact Olkin-Pratt instead of the default adjusted R-squared estimator. To facilitate this, I provide the R package altR2, which implements the Olkin-Pratt estimator as well as all other estimators.

Multiple linear regression is one of the most used analysis methods within psychological research. The R-Squared (R2) value is commonly reported when performing multiple linear regression. It quantifies the proportion of variance of the dependent variable that can be accounted for by the regression model in the sample, which is commonly abbreviated as the proportion of variance explained. It is well known that the R2 value systematically overestimates the amount of variance explained in thepopulation, which is arguably the more relevant quantity. To estimate the amount of variance explained in the population, the so-called adjustedR2 is typically used.

While standard linear regression software, such as SPSS and the “lm” function in R (R Core Team, 2018), and consequently the vast majority of psychological publications report onlyR2 and adjusted R2, many alternative estimators for the proportion of variance explained in the population have been proposed (see, Raju, Bilgic, Edwards, & Fleer, 1997; Shieh, 2008;Yin & Fan, 2001, for overviews). This leads to the question which of these estimators should be used. There have already been multiple studies addressing this issue (most notably, Raju et al., 1997; Shieh, 2008; Yin & Fan, 2001) via a systematic comparison of estimators.

In this study, I extend these previous comparisons in three aspects. First, I add a new estimator. This estimator is an implementation of the Olkin-Pratt estimator (Olkin & Pratt, 1958). The Olkin-Pratt estimator has been shown to be optimal under the most prevalent optimality criterion used in statistics, which considers an estimator optimal if it always has least mean squared error (MSE) among all unbiased estimators (Olkin & Pratt, 1958). Despite this favorable property, it is not used and has not been included in any of the previous comparisons due to the difficulties associated with computing it. Here, I show that the Olkin-Pratt estimator can be computed relatively straightforwardly, which facilitates its use.

Second, similarly to Raju et al. (1997), and Shieh (2008), I evaluate the estimators using both MSE and bias as both are essential. However, in contrast to Raju et al. (1997), Shieh (2008), I do not combine MSE and bias in an informal way but, instead, as suggested by concepts established within theoretical statistics (Lehmann & Casella, 2003). I will provide the detailed explantion of this strategy in the Methods section. Importantly, this strategy avoids non-transparent, conflicting recommendations such as Raju et al. (1997) recommending the use of the standard adjusted R2 estimator and Shieh (2008) the positive-part Pratt estimator despite both basing their conclusion on bias and MSE. It also leads to considering the optimality of estimators based on different perspectives, which weight the relative importance of bias and MSE differently. To obtain bias and MSE of the estimators, I perform a Monte-Carlo simulation study.

Third, to enable usage of the alternative estimators, I provide an R package (“altR2” on CRAN), which contains all estimators compared here. This also includes all estimators compared previously.

This paper is structured as follows. First, I introduce the compared estimators, the design of the simulation study, and the different perspectives used for evaluation. Then, I discuss which estimator is optimal under which perspective. I end by relating the results to previous studies and a recommendation of which estimators to use.

### Proportion of Variance Explained in the Population

Consider i = 1,…,N observations of the dependent variable Yi and the correspondingp predictors [Xi1,…,Xip]. The statistical model associated with multiple linear regression is then

$Yi= β0+∑k=1pXikβk+ ϵi$
1

whereβ0,…,βP are the regression coefficients and ϵi a normal random variable with constant variance $σϵ2$ representing the residual error.

It must be differentiated whether the predictors are assumed to be fixed or random. I assume that the predictors are random since I agree with Yin and Fan (2001), that, in psychology, random predictors are the norm. In particular, in line with Shieh (2008), Yin and Fan (2001), I assume that the predictors have a joint multivariate normal distribution. Under this assumption, the dependent variableYi is normally distributed with constant variance, which I will denote as total variance $σY2$.

The true proportion of variance explained in the population is

$ρ2=1−σϵ2σY2.$
2

This is known as squared multiple correlation ρ2 in the statistical literature, which I will use from now on.

### Estimators

#### Normal R2

The normal R2 replaces the error variance and the total variance by their maximum likelihood estimates $σ^ϵ2$ This results in $R2=1−σ^ϵ2σ^Y2$ For a given sample, the maximum likelihood estimates can be calculated using the total sums of squaresSST as well as the residual sums of squares $SSR:σ^Y2=SST/N$ and $σ^2=SSR/N$ By inserting into the definition ofR2 one obtains

$R2=1−SSRSST.$

The core idea of adjusted R2, is to replace the biased estimators with their unbiased counterparts. The unbiased estimates are $σ˜ϵ2=SSR/(N−p−1)$ and $σ˜Y2=SST/(N−1)$ This leads to the adjusted R2, which is called Ezekiel estimator in the statistical literature:

Somewhat counterintuitively, the Ezekiel estimator is not an unbiased estimator of the squared multiple correlation despite using unbiased estimators for the error and the total variance.

#### Variations of the Ezekiel Estimator

In the literature, slight variations of the Ezekiel estimator have been proposed, which I also include in the comparison. Due to space constraints, I only list them here. For a detailed description of the estimators including their derivation, the reader is referred to Raju et al. (1997), Yin and Fan (2001) as well as the references therein.

#### Maximum Likelihood Estimator

The maximum likelihood estimator $ρ^ML2(R2)$ introduced by Alf and Graf (2002) estimates the squared multiple correlation by finding the squared multiple correlation value that maximizes the likelihood of the observed data. I refer the reader to Alf and Graf (2002) for the computational details.

#### Olkin-Pratt Estimator

Olkin and Pratt (1958) proposed an estimator for the squared multiple correlationρ2 and showed that it is the unique uniformly minimum variance unbiased estimator. That is, no matter the circumstances, the Olkin-Pratt estimator always has the smallest MSE among all unbiased estimators. Thus, among the unbiased estimators, it can be considered optimal. No such strong theoretical justification exists for any other estimator.

Despite this favorable property, the Olkin-Pratt estimator has not been implemented in any software package, is not being used, and has not been included in any previous comparison. The reason for this is that it has been believed to be difficult to compute (Shieh, 2008) since its formula contains the hypergeometric function. The hypergeometric function2F1(a,b; c; z) is difficult to compute as it is defined via an infinite series (see Appendix A for the full definition). The Olkin and Pratt estimator is

$ρ^OP2(R2)=1−N−3N−p−1(1−R2) 2F1(1, 1; N−p+12; 1−R2).$

Due to the computation complexity of the hypergeometric function, different approximation approaches exist, which I will review in the following.

#### Approximations of the Olkin-Pratt Estimator

One approach to approximate the Olkin-Pratt estimator is to only use the first K + 1 addends of the infinite series of the hypergeometric function. This leads to a family of estimators of the form

$ρ^OPK2(R2)=1−N−3N−p−1(1−R2)∑k=0Ktk$

where tk is the kth addend of the hypergeometric series (see Appendix A).

In the previous comparisons, the $ρ^OP12, ρ^OP22$ and $ρ^OP52$ estimators have been included, which I also included in the comparison.

Other approximation approaches modify the $ρ^OP12$ estimator to correct for the left out addends. These are:

$Claudy: ρ^C2(R2)= N−4N−p−1(1−R2)(1+2(1−R2)N−p+1)$

For the rationales of these corrections, see Raju et al. (1997), Yin and Fan (2001) as well as the references therein.

#### New Estimator: Exact Olkin-Pratt Estimator

The existence of the approximations of the Olkin-Pratt estimator is based on the assumption that the Olkin-Pratt estimator is too difficult to compute, making it unusable in practice. In Appendix A, I show that this assumption is not true. In particular, I demonstrate that there are closed-form solutions for the hypergeometric function for all possible inputs required for the evaluation of the Olkin-Pratt estimator. These closed-form solutions allow the exact Olkin-Pratt estimator to be computed within milliseconds and thus facilitating its use in practice.

#### Positive-Part Estimators

All estimators introduced here, besides the normalR2 and the maximum likelihood estimator, share one disadvantage. The estimated squared multiple correlation can be negative, while the population squared multiple correlation cannot. In practice, this problem is commonly addressed by assuming that the population squared multiple correlation is 0 if an estimator returns a negative value. Shieh (2008) formalized this practice by suggesting that so-called positive-part estimators should be considered, which return 0 if the respective estimator returns a negative value and otherwise return the original estimate. Shieh (2008) showed that this increases the bias, as expected, but decreases MSE. Consequently, I also included the positive-part versions of all estimators introduced here in the comparison.

### Simulation Study

#### Overview Design

In the simulation study, I varied the factors, sample sizeN, number of predictors p, and population squared multiple correlation ρ2. Fisher (1928) showed that these are the only factors modifying the sampling distribution ofR2 and thus the bias and MSE of each estimator.

#### Sample Size

I investigated the sample sizes 10,20, 30, 40, 50, 60,100,150. According to the estimates provided by Marszalek, Barber, Kohlhart, and Holmes (2011), the resulting range contains more than 75% of the sample sizes reported in psychological journals from 1995—2006. I chose to cover the sample sizes below 60 more densely because these sample sizes occurred more often and include more than 50% of the sample sizes reported in psychological journals.

#### Number of Predictors

As number of predictors p, I chose 2, 5 and 10. This is equivalent to the values used by one previous comparison (Shieh, 2008) and close to the values used by another one (Yin & Fan, 2001).

#### Squared Multiple Correlation

For the true squared multiple correlationρ2, I included the values investigated in the previous comparison performed by Shieh (2008), 0.0, 0.1, 0.2,…, 0.9 as they sample the space of possible values in a relatively dense matter. I additionally included two small values: 0.01 and 0.05 as small squared multiple correlation values are relatively common in psychology (see, for example, Karch et al., 2019).

### Data Generation

In Appendix B as well as in the code (https://doi.org/10.24433/CO.8023088.v3.), I describe how I simulated data for a given combination of sample size N, number of predictors p, and squared multiple correlationρ2 in detail. For generating the data, some parameters, like the residual variance, had to be set to fixed values. Importantly, the results are not influenced by those choices, as the sampling distribution of R2 and thus the bias and MSE of each estimator are independent of those parameter values (Fisher, 1928).

#### Replications

Fully crossing all factors would lead to 288 design cells. However, those design cells for which the sample size N was not at least two bigger (Np + 2) than the number of predictors p were removed since some estimators, for example, the Ezekiel estimator, require this. This resulted in 276 remaining design cells. For each design cell, I repeated the process of generating data and obtaining the estimates 100,000 times.

### Evaluating the estimators

#### Uniformly Minimum Mean Squared Error Unbiased

The classical optimality criterion for point estimators is uniformly minimum variance unbiasedness (Lehmann & Casella, 2003, Chapter 2). For example, the standard estimator of the regression coefficients (ordinary least squares) is uniformly minimum variance unbiased. A uniformly minimum variance unbiased estimator has the minimum MSE among all unbiased estimators in all circumstances. I will call this property uniformly minimum MSE unbiased to connect it more obviously to MSE. This property has been proven for the Olkin-Pratt estimator. Thus the Olkin-Pratt estimator is unbiased. Since all other estimators have a different expected value, it follows that they are biased.

Mostly, to validate the proposed implementation of the Olkin-Pratt estimator, I quantified whether an estimator was empirically unbiased, for a given sample size N, number of predictors p, squared multiple correlation ρ2 condition, by using the one-sample t-test, with the null hypothesis of zero bias. I conclude that an estimator is overall empirically unbiased for a given sample size N, and number of predictors p condition if for no squared multiple correlationρ2 value, the null hypothesis was rejected. As significance threshold I chose α = .005 as recommended by Benjamin et al., 2018. Note that an estimator might still be biased despite being empirically unbiased. Indeed, all estimators besides the Olkin-Pratt estimator are biased. However, if they are empirically unbiased, the bias is likely negligible.

#### Uniformly Lowest Mean Squared Error

It has been argued that considering only unbiased estimators is detrimental as biased estimators typically have lower MSE than unbiased estimators (Lehmann & Casella, 2003, Chapters 4 and 5). At the same time, MSE is well suited as the only metric for choosing between estimators as it trades off bias and variance. This argument leads to MSE being considered as the only metric (Lehmann & Casella, 2003, Chapters 4 and 5).

When using the MSE as the only metric, an optimal estimator has the lowest MSE across all conditions, in the case of this study, across all sample sizeN, number of predictors p, and squared multiple correlation ρ2 combinations. In practice, such a uniformly best estimator does rarely exist (Lehmann & Casella, 2003, Chapters 4 and 5). To confirm that this is the case, I identified the estimator with the lowest MSE for each combination of design factors.

#### Mean Squared Error Dominance

An estimator A dominates an estimator B if it always has lower MSE. This is an essential relationship because if an estimator is dominated by another estimator, it should never be used (if considering only MSE). Consequently, I also report the dominance relationships to determine the set of admissible estimators (those which are not dominated).

#### Maximum Mean Squared Error

The first solution to the problem that the uniformly lowest MSE rarely exists is typically used in frequentist inference. The strategy is to consider the maximum MSE over all unknown parameters (in this study, only the squared multiple correlation ρ2) as the metric for choosing between estimators. Consequently, I also report the maximum MSE for all estimators.

#### Average Mean Squared Error

The Bayesian solution to the fact that no estimator exists with uniformly the lowest MSE is to consider a weighted average of the MSEs over all unknown parameter values. The crucial question is which prior to use for the weighting. In line with the common practice of using flat priors in psychology (Albers, Kiers, & van Ravenzwaaij, 2018), I average using a uniform prior over the squared multiple correlation ρ2.

### A Note On Consistency

Note that all of the estimators are consistent. Thus for a fixed number of predictors p, they will all converge to the true squared multiple correlation value ρ2 as the sample size N increases. Consequently, it is to be expected that the differences between the estimators are most pronounced for smaller sample sizes.

In the supplementary material (CSV Files S1, and S2, and Tables S3-S25), I present bias and MSE for each design cell. Here, I will focus on summarizing those values using the different evaluation strategies just discussed.

### Uniformly Minimum Mean Squared Error Unbiased

Table 1 shows which estimators were empirically unbiased and under what condition. The exact Olkin-Pratt estimator was the only estimator that was empirically unbiased across all conditions. Additionally, only approximations of the exact Olkin-Pratt estimator were empirically unbiased in any condition, namely: the Olkin-Pratt K = 2, K = 5, and the Pratt estimator.

Table 1

Emperically Unbiased Estimators.

Np

2510

10.00 OPE OPE
20.00 OP5, OPE OP5, OPE OP5, OPE
30.00 OP5, OPE OP5, OPE OP2, OP5, OPE
40.00 OP5, OPE OP2, OP5, OPE, P OP5, OPE, P
50.00 OP2, OP5, OPE, P OP2, OP5, OPE, P OP5, OPE, P
60.00 OP2, OP5, OPE OP2, OP5, OPE, P OP2, OP5, OPE, P
100.00 OP2, OP5, OPE, P OP2, OP5, OPE, P OP2, OP5, OPE, P
150.00 OP2, OP5, OPE, P OP2, OP5, OPE, P OP2, OP5, OPE, P
Np

2510

10.00 OPE OPE
20.00 OP5, OPE OP5, OPE OP5, OPE
30.00 OP5, OPE OP5, OPE OP2, OP5, OPE
40.00 OP5, OPE OP2, OP5, OPE, P OP5, OPE, P
50.00 OP2, OP5, OPE, P OP2, OP5, OPE, P OP5, OPE, P
60.00 OP2, OP5, OPE OP2, OP5, OPE, P OP2, OP5, OPE, P
100.00 OP2, OP5, OPE, P OP2, OP5, OPE, P OP2, OP5, OPE, P
150.00 OP2, OP5, OPE, P OP2, OP5, OPE, P OP2, OP5, OPE, P

Note: For a sample size N, number of predictors p combination, the estimators are displayed that were deemed unbiased for all squared multiple correlation values ρ2. OPE = Exact Olkin-Pratt; OP2 = Olkin-Pratt, K = 2; OP5 = Olkin-Pratt, K = 5; P = Pratt.

To investigate the size of the bias, I exemplarily display the bias of the most popular Ezekiel estimator, the previously recommended Pratt estimator, and the new exact Olkin-Pratt estimator in a small (N = 10) and big sample (N = 150) condition in Figures 1a and 1b respectively. In the small sample condition, both the Ezekiel and the Pratt estimator were substantially biased. The Pratt estimator up to .09 and the Ezekiel estimator up to .05. Both estimators consistently underestimated the squared multiple correlation ρ2. In the large sample condition, all estimators were virtually unbiased, as expected.

Figure 1

Bias for selected estimators in a small sample (a) and a big sample (b) condition.

Figure 1

Bias for selected estimators in a small sample (a) and a big sample (b) condition.

Close modal

In summary, the results confirm that the newly proposed implementation of the Olkin-Pratt estimator is unbiased, whereas none of the other estimators is.

### Uniformly Lowest Mean Squared Error

In Appendix C, the estimator with the lowest MSE for each combination of design factors is shown. As expected, no estimator had uniformly lowest MSE across all conditions. Instead, 6 out of the total 20 estimators were best in at least one condition, namely: the positive-part versions of the Ezekiel, Smith, Wherry, and Claudy estimators as well as the maximum likelihood and the normalR2 estimators.

In general, the unknown factor squared multiple correlationρ2 must be known in order to select the best estimator for all sample size N, number of predictorp combinations. The difference in terms of MSE between the estimators was non-trivial for some conditions, especially when the sample size was small, as is exemplarily displayed in Figure 2a. In contrast, for large sample sizes, the difference between the estimator was negligible, as expected (see Figure 2b). In summary, without knowledge of the true squared multiple correlation ρ2, it is impossible to choose the estimator with the lowest MSE, and there can be substantial differences in MSE between the estimators.

Figure 2

Mean squared error for selected estimators in a small sample(a) and a big sample (b) condition. For each condition, all estimators that had lowest mean squared error for a certain ρ2 value were selected.

Figure 2

Mean squared error for selected estimators in a small sample(a) and a big sample (b) condition. For each condition, all estimators that had lowest mean squared error for a certain ρ2 value were selected.

Close modal

### Dominance

While no estimator dominated all other estimators, multiple estimators dominated at least one other estimator. In Figure 3, the full dominance relationships between all estimators are presented.

Figure 3

Matrix representing the dominance relationships between the estimators. A black square signals that the estimator in the respective row dominates the estimator in the corresponding column. Rows and columns that contain no black square have been removed.

Figure 3

Matrix representing the dominance relationships between the estimators. A black square signals that the estimator in the respective row dominates the estimator in the corresponding column. Rows and columns that contain no black square have been removed.

Close modal

The two most relevant results are as follows. First, all positive-part versions dominated their regular counterparts. Second, within the Olkin-Pratt estimators, the simpler versions dominated the more complex. This is reflected by the Olkin-Pratt K = x estimators dominating all Olkin-PrattK = y estimators for which x < y, all Olkin-Pratt K estimators dominating the exact Olkin-Pratt estimator, and the Olkin-Pratt K = 1 estimator dominating the Pratt estimator.

The dominated estimators were not considered for the maximum MSE as well as the average MSE perspective since the estimators dominating them are guaranteed to also perform better with regard to these metrics.

### Maximum Mean Squared Error

In Table 2, the estimator with the lowest maximum MSE for each sample size N, number of predictorsp combination is displayed. No estimator was best in this sense across all conditions. Instead, 4 out of 20 estimators were best, namely: the positive-part versions of the Ezekiel and the Wherry estimators as well as the maximum likelihood and the normal R2 estimators.

Table 2

Estimators With the Lowest Maximum Mean Squared Error.

Np

102030405060100150

W+ R2 R2 R2 ML ML ML ML
E+ W+ W+ W+ W+ W+ ML ML
10  E+ W+ W+ W+ W+ ML ML
Np

102030405060100150

W+ R2 R2 R2 ML ML ML ML
E+ W+ W+ W+ W+ W+ ML ML
10  E+ W+ W+ W+ W+ ML ML

Note: E+ = positive-part Ezekiel; ML = Maximum Likelihood; R2 = normal R2;W+ = positive-part Wherry.

To nevertheless obtain an overall best estimator, I also calculated the maximum MSE across all conditions for each estimator. The results are displayed in Table3. Most importantly, the positive-part Ezekiel estimator was best with a maximum MSE of 0.1082. The maximum MSE of the second-best estimator (positive-part Pratt) was 0.1230 and thus more than 10% higher.

Table 3

Maximum and Average Mean Squared Error.

E+P+S+MLOPE+OP5+OP2+OP1+C+W+R2

Max. MSE 0.1082 0.1230 0.1317 0.1367 0.1380 0.1380 0.1387 0.1413 0.1533 0.1561 0.3543
Av. MSE 0.0154 0.0161 0.0154 0.0154 0.0161 0.0161 0.0161 0.0160 0.0166 0.0156 0.0260
E+P+S+MLOPE+OP5+OP2+OP1+C+W+R2

Max. MSE 0.1082 0.1230 0.1317 0.1367 0.1380 0.1380 0.1387 0.1413 0.1533 0.1561 0.3543
Av. MSE 0.0154 0.0161 0.0154 0.0154 0.0161 0.0161 0.0161 0.0160 0.0166 0.0156 0.0260

Note: The minimum within each row is marked in bold. The average mean squared error was lowest for the E+ = estimator, when considering more than 4 digits.

E+ = Positive-part Ezekiel; P+ = positive-part Pratt; S+ = positive-part Smith; ML = Maximum Likelihood; OPE+ = positive-part exact Olkin-Pratt; 0P2+ = positive-part Olkin-Pratt K = 2; 0P5+ = positive-part Olkin-Pratt K = 5; C+ = posi-tive-part Claudy; W+= positive-part Wherry; R2 = normalR2.

### Average Mean Squared Error

In Table 4, the estimator with the lowest average MSE for each sample size N, number of predictorsp combination is displayed. No estimator was best in this sense across all conditions. Instead, 4 out of 20 estimators were best, namely: the positive-part versions of the Ezekiel, Wherry, and the Smith estimators, as well as the maximum likelihood estimator.

Table 4

Estimators With The lowest Average Mean Squared Error.

Np

102030405060100150

W+ W+ W+ W+ ML ML ML ML
E+ S+ W+ W+ W+ W+ ML ML
10  E+ S+ S+ ML ML ML ML
Np

102030405060100150

W+ W+ W+ W+ ML ML ML ML
E+ S+ W+ W+ W+ W+ ML ML
10  E+ S+ S+ ML ML ML ML

Note: E+ = positive-part Ezekiel; S+ = positive-part Smith;W+ = positive-part Wherry; and ML = Maximum Likelihood.

To nevertheless obtain an overall best estimator, I also calculated the average MSE across all conditions for each estimator. The result is displayed in Table3. Importantly, the positive-part Ezekiel estimator again was best with an average MSE of 0.015353. However, the average MSE of the second-best estimator (maximum likelihood) was 0.015369 and thus virtually identical.

### Impact of Always Using the Positive-Part Ezekiel Estimator

Since the positive-part Ezekiel estimator was best both in terms of average as well as maximum MSE, I investigated the impact of always using it. To do this, I calculated the increase in maximum MSE and average MSE for each N, p combination instead of the optimal estimator.

The full results are displayed in Table 5. The increase in maximum MSE was never higher than 11%. The increase in mean MSE was never higher than 4%. Thus, the increase in MSE when always using the positive-part Ezekiel estimator was relatively mild.

Table 5

Relative Increase of the Average and Maximum Mean Squared Error When Always Using the Positive-part Ezekiel Estimator.

NMaximum;pAverage;p

25102510

10.00 8.63 0.00  2.14 0.00
20.00 10.56 4.98 0.00 3.63 0.64 0.00
30.00 7.68 5.02 2.37 3.27 1.20 0.13
40.00 6.53 5.10 3.94 2.99 1.52 0.30
50.00 5.41 4.47 3.94 2.60 1.57 0.33
60.00 4.80 3.73 3.70 2.41 1.43 0.50
100.00 3.03 2.66 2.17 1.78 1.20 0.63
150.00 2.02 1.89 1.73 1.29 0.99 0.70
NMaximum;pAverage;p

25102510

10.00 8.63 0.00  2.14 0.00
20.00 10.56 4.98 0.00 3.63 0.64 0.00
30.00 7.68 5.02 2.37 3.27 1.20 0.13
40.00 6.53 5.10 3.94 2.99 1.52 0.30
50.00 5.41 4.47 3.94 2.60 1.57 0.33
60.00 4.80 3.73 3.70 2.41 1.43 0.50
100.00 3.03 2.66 2.17 1.78 1.20 0.63
150.00 2.02 1.89 1.73 1.29 0.99 0.70

Note: The increase is relative to the minimum average and maximum mean squared error respectively and expressed as a percentage.

In this paper, I compared the novel exact Olkin-Pratt estimator and 19 additional estimators of the squared multiple correlation using different perspectives. These different perspectives all follow directly from optimality concepts established in theoretical statistics and are based on bias, MSE, or a combination thereof.

Regarding the most prevalent uniformly minimum MSE unbiased perspective, the results are unambiguous and in line with the theoretical optimality property established for the Olkin-Pratt estimator. The exact Olkin-Pratt estimator was optimal. It was the only estimator that was empirically unbiased across all conditions. Consequently, based on this perspective, the exact Olkin-Pratt estimator should always be used.

Regarding the perspectives that consider only MSE, the results are more ambiguous. No estimator had uniformly lowest MSE across all conditions. Even more importantly, no estimator was uniformly best according to the maximum or average MSE perspectives. However, across all conditions, the positive-part version of the most widely used Ezekiel (adjusted R2) estimator performed best both according to the maximum MSE as well as average MSE perspective.

To choose the best estimator under the MSE-only perspective, two cases have to be distinguished. First, there is some knowledge about the squared multiple correlationρ2. Second, this is not the case. If there is some knowledge, then I advise using Table C1 in Appendix C to select the estimator with the lowest MSE for the particular study. If this is not the case, then one first has to decide for the maximum or the average MSE perspective. The maximum MSE perspective matches well with frequentist principles, whereas the average MSE perspective matches better with Bayesian principles. After this choice has been made, one can select the best estimator using Tables 2 or 4. In case constraints do not allow such an individualized choice, I recommend using the positive-part Ezekiel estimator. This choice is especially defendable in situations where the sample sizeN is large compared to the number of predictorsp, as here the difference between estimators is small. Thus, choosing the default estimator, which most readers know, is a sound strategy.

If it is not possible to determine what is more important – unbiasedness or minimization of MSE – I recommend using the unbiased exact Olkin-Pratt estimator. There are three reasons for this. The first one is consistency. The uniformly lowest MSE unbiased perspective is the standard in regression analysis. In partlcular, the rationale given for using the ordinary least squared regression coefficients is that they are uniformly lowest MSE unbiased (Cohen, Cohen, West, & Aiken, 2003, p. 124). Second, psychology is traditionally primarily concerned with explanatory modeling (Yarkoni & Westfall, 2017), and in explanatory modeling, unbiasedness should be preferred over lower MSE (Shmueli, 2010). Third, and in relation to this, the fact that an estimator is unbiased guarantees that when estimates for the same property of interest from multiple studies are aggregated in a meta-analysis, this aggregation eventually leads to the true value, which is not the case when using a biased estimator, even if it has lower MSE.

On the surface, these recommendations conflict with previous recommendations based on simulation studies with similar designs. Yin and Fan (2001) recommended using the Pratt estimator and Shieh (2008) the positive-part version of the Pratt estimator. The conflict with Yin and Fan (2001) is quickly resolved. They considered only the Pratt and the Claudy approximation of the Olkin-Pratt estimator but not the more elaborate versions. Additionally, they used bias as the only metric for comparison. Thus, were they to repeat their study with the estimator included in this comparison, they should conclude that the exact Olkin-Pratt estimator should always be used.

The conflict with Shieh (2008) can also be resolved. While Shieh (2008) considered bias and MSE, he eventually based his conclusions almost exclusively on bias. Additionally, he considered computational complexity and the estimator not returning impossible negative values as factors. Balancing all these factors lead to the positive-part Pratt estimator. Using this same balance of factors, I would expect that the results presented here would not change the recommendation by Shieh (2008).

While the rationale presented in Shieh (2008) is sound, the rationale given here has several advantages. First, computational complexity becomes an irrelevant factor due to the R package provided, which can compute all estimators within milliseconds. Second, while ignoring estimators that do not return impossible negative values is intuitively appealing and beneficial from a pure MSE-based perspective, it is detrimental from the more prevalent unbiasedness perspective. As I already mentioned, the fact that an estimator is unbiased guarantees that when estimates for the same property of interest are obtained based on multiple studies, then the average of these estimates converges to the true value. Consequently, from this perspective, returning impossible values on one sample is less detrimental than converging on the wrong value when averaging across many samples (see, Okada, 2017, for a paper-length elaboration of this argument).

### Limitations and Future Work

All results presented here rely on the assumption of a multivariate normal distribution of the predictor variables. This limitation is shared with all previous comparisons. As such, repeating this study with different distributions for the predictor variables to investigate the robustness of the results with regard to this assumption is recommended for future work.

Assessing bias and MSE through a simulation study has several disadvantages. First, the values are estimated and not computed exactly. I mitigated this issue by employing a much larger number of replications than previous comparisons (100,000) and hypothesis tests to account for the remaining small uncertainty of the estimates. I did not use more precise alternatives such as analytical derivations or numerical methods (Shieh, 2008) because both approaches would not allow a direct assessment of the provided R package.

A second disadvantage is that the conclusions from a simulation study often do not generalize beyond the considered design. I diminished this issue by augmenting the results of the simulation study with theoretical results. As such, the central finding that the Olkin-Pratt estimator is uniformly minimum MSE unbiased generalizes beyond the design considered. Whether the outcome that overall, the Ezekiel estimator performs best in terms of MSE also generalizes to other designs remains to be investigated. Also, selecting the MSE optimal estimator is only possible if the parameters of a data set (sample size, number of predictors) lie within the range considered here. For this reason, I carefully selected the parameter ranges such that they cover the majority of parameter values reported in psychology. Nevertheless, providing a table for all relevant parameter combinations is impossible. Instead, I advise researchers to run their own small simulation studies to determine the MSE optimal estimator for their particular situation. To facilitate this, I share the code used for running the simulation study as supplementary material https://doi.org/10.24433/CO.8023088.v3.

In conclusion, I recommend using the exact Olkin-Pratt estimator by default. However, if the researcher is confident that minimizing MSE is more critical than unbiasedness, then a different estimator should be used. In this case, I recommend an individualized choice based on the strategy described at the beginning of this discussion, and if this is not feasible or the sample size N is large compared to the number of predictors p, the positive-part version of the Ezekiel estimator.

The data and code used to produce this paper and the supplementary material can be found at https://doi.org/10.24433/CO.8023088.v3.

### Computation of the Hypergeometric Function

The hypergeometric function for real inputs a, b, c, z, ∈ ℝ is as an infinite sum $2F1(a, b; c; z)=∑k=0∞tk$ with addends

$tk=(a)k(b)k(c)kzkk!.$

(q)k denotes the rising factorial, which is defined by

$(q)k={1k=0q(q+1)⋯(q+k−1)k>0$

In general, the hypergeometric function is difficult to compute and for some inputs it is even not defined since it does not converge.

However, for the evaluation of the Olkin-Pratt estimator, the hypergeometric function only needs to be evaluated at the inputs a = 1,b = 1, c ∈ {m / 2:m ∈ ℕ \ {0, 1}}, and z ∈ [0, 1] ⊂ ℝ. I restrict this further to the case c > 2, as this guarantees convergence. This restriction is fulfilled ifNp ≥ 3. Thus, there must be at least 4 samples more than there are predictors. For these inputs, closed-form solutions exist. For notational unclutterdness, I define the following functionF (c, z) =2F1 (1, 1; c;z).

First, I discuss the pathological cases z =1 andz = 0. For z = 0,F(c; 0) = 0. For $z=1, F(c; 1)=(c−1)(c−2)$.

Beyond those pathological cases, two cases have to be distinguished: 1)c being an integer, and 2) c not being an integer but divisible by 0.5.

For 1) c being an integer, a closed-form solution is presented in “Gauss Hypergeometric Function 2F1: Specific Values” (2019). It is:

$F(c; z)=(c−1)z(z−1)2(∑k=2c−11c−k(z−1z)k−(z−1z)clog(1−z))$

For 2) c not being an integer but divisible by 0.5, the following rule presented in “NIST Digital Library of Mathematical Functions” (2019, Equation 15.5.16) can be leveraged.

$F(c+1;z)=c2F1(0, 1; c; z)−c(1−z)F(c; z)(c−1)z.$

Subsituting 2F1(0,1; c;z) = 1, this becomes the following recursive equation

$F(c+1; z)=c−c(1−z)F(c;z)(c−1)z.$

with the base $F(12;z)$. The value of the base is known

$F(12; z)=11−z(1+zarcsin(z)1−z)$

These observations lead to the following algorithm for calculating the functionF(c; z), which I display in the form of R code.

While this algorithm works in general, it returns wrong results for some inputs if implemented using floating-point arithmetic, as is commonly used in R and most other programming languages. In particular, the case z < 0.5 leads to wrong results. To resolve this, I relied on recent work about how to accurately compute the hypergeometric function using floating-point arithmetic (Pearson, Olver, & Porter, 2015).

In particular, I used the Taylor series approach, which is described in detail in Pearson et al. (2015, Section 4.2). The Taylor series approach works similarly to the approximation of the hypergeometric series in the OKP estimators. It also relies on approximating the hypergeometric series by only employing a finite number of addendstk up to some threshold K. However, the crucial difference is that the threshold K is not fixed but is chosen dynamically such that the approximation error is minimal (see, Pearson et al., 2015, Section 4.2 for details).

To estimate the discrepancy between the Taylor series approach and the analytical algorithm, I used an input range for which the analytical algorithm returns correct results; in particular, z ∈ (0.5, 0.99), andc ∈ [5,1000]. In this range, the maximum difference between the Taylor series approach and the analytic algorithm was < 10–12. Thus, the Taylor series approach and the analytical algorithm are virtually indistinguishable. Consequently, while the Taylor series approach is an approximation, its approximation error is so small that I consider it exact.

### Data Generation Details

Here, I will explain how I simulated data for a given combination of sample sizeN, number of predictors p, and squared multiple correlation ρ2.

As I mentioned in the main text, the core assumption of this paper is that the predictors have a multivariate normal distribution with mean vectorμx and covariance matrix Σx. As the mean vectorμx, I used the vector of p zeros and as the covariance matrix Σx thep × p identity matrix. To obtainN observations for each predictor, I sampled from this distribution N times.

Generating the dependent variable such that it leads to a certain squared multiple correlation values ρ2 is more complex. As the first step, I abitrarily set the error variance of $σϵ2$ to 10. By rearranging Equation 2 to

$σY2=σϵ21−ρ2,$

the problem reduces to generating the dependent variable Y such that it has a total variance of $σY2$. The total variance $σY2$ can be expressed as a function of the regression coefficientsββ= [β1,…,βp]T, the error variance $σϵ2$, and the covariance matrix of the predictors Σx:

$σY2=β⊤ΣXβ+σϵ2.$
3

There is still an infinite number of regression weightsββthat lead to a given total variance $σY2$. To solve this problem, I used the restriction that all regression weights must be equal. I denote their value withβ*. Using this restriction, and the fact that the covariance matrix Σx was the identity matrix, Equation 3 simplifies to

$σY2=pβ*2+σϵ2$

and the value β* for the regression coefficients is thus

$β*=σY2−σϵ2p.$

With the error variance $σY2$ and the regression coefficients β, the dependent variable can be generated by applying Equation 1. As interceptβ0, I used 100.

### Estimators With the Lowest Mean Squared Error

Table C1

Estimator with the lowest mean squared error for each sample sizeN, number of predictors p, and mulitiple squared correlation ρ2 combination.

ρ2

Np0.050.10.20.30.40.50.60.70.80.9

10.00 2.00 E+ E+ E+ S+ R2 R2 R2 R2 R2 C+
10.00 5.00 E+ E+ E+ E+ S+ W+ R2 R2 R2 R2
20.00 2.00 E+ E+ E+ R2 R2 R2 R2 R2 R2 C+
20.00 5.00 E+ E+ E+ W+ W+ W+ R2 R2 R2 R2
20.00 10.00 E+ E+ E+ E+ W+ W+ W+ W+ W+ R2
30.00 2.00 E+ E+ W+ R2 R2 R2 R2 R2 R2 C+
30.00 5.00 E+ E+ E+ W+ W+ W+ R2 R2 R2 R2
30.00 10.00 E+ E+ E+ W+ W+ W+ W+ C+ C+ C+
40.00 2.00 E+ E+ W+ R2 R2 R2 R2 R2 R2 C+
40.00 5.00 E+ E+ W+ W+ W+ W+ R2 R2 R2 R2
40.00 10.00 E+ E+ E+ W+ W+ W+ W+ C+ C+ C+
50.00 2.00 E+ E+ ML ML R2 R2 R2 R2 R2 C+
50.00 5.00 E+ E+ W+ W+ W+ W+ R2 R2 R2 R2
50.00 10.00 E+ E+ S+ W+ W+ W+ W+ C+ C+ C+
60.00 2.00 E+ E+ ML ML R2 R2 R2 R2 C+ C+
60.00 5.00 E+ E+ W+ W+ W+ W+ R2 R2 R2 R2
60.00 10.00 E+ E+ W+ W+ W+ W+ W+ C+ C+ C+
100.00 2.00 E+ S+ ML ML R2 R2 R2 R2 C+ C+
100.00 5.00 E+ S+ ML ML ML W+ R2 R2 R2 R2
100.00 10.00 E+ E+ W+ ML W+ W+ C+ C+ C+ C+
150.00 2.00 E+ ML ML ML R2 R2 R2 R2 C+ C+
150.00 5.00 E+ S+ ML ML ML W+ R2 R2 R2 R2
150.00 10.00 E+ S+ W+ ML ML W+ C+ C+ C+ C+
ρ2

Np0.050.10.20.30.40.50.60.70.80.9

10.00 2.00 E+ E+ E+ S+ R2 R2 R2 R2 R2 C+
10.00 5.00 E+ E+ E+ E+ S+ W+ R2 R2 R2 R2
20.00 2.00 E+ E+ E+ R2 R2 R2 R2 R2 R2 C+
20.00 5.00 E+ E+ E+ W+ W+ W+ R2 R2 R2 R2
20.00 10.00 E+ E+ E+ E+ W+ W+ W+ W+ W+ R2
30.00 2.00 E+ E+ W+ R2 R2 R2 R2 R2 R2 C+
30.00 5.00 E+ E+ E+ W+ W+ W+ R2 R2 R2 R2
30.00 10.00 E+ E+ E+ W+ W+ W+ W+ C+ C+ C+
40.00 2.00 E+ E+ W+ R2 R2 R2 R2 R2 R2 C+
40.00 5.00 E+ E+ W+ W+ W+ W+ R2 R2 R2 R2
40.00 10.00 E+ E+ E+ W+ W+ W+ W+ C+ C+ C+
50.00 2.00 E+ E+ ML ML R2 R2 R2 R2 R2 C+
50.00 5.00 E+ E+ W+ W+ W+ W+ R2 R2 R2 R2
50.00 10.00 E+ E+ S+ W+ W+ W+ W+ C+ C+ C+
60.00 2.00 E+ E+ ML ML R2 R2 R2 R2 C+ C+
60.00 5.00 E+ E+ W+ W+ W+ W+ R2 R2 R2 R2
60.00 10.00 E+ E+ W+ W+ W+ W+ W+ C+ C+ C+
100.00 2.00 E+ S+ ML ML R2 R2 R2 R2 C+ C+
100.00 5.00 E+ S+ ML ML ML W+ R2 R2 R2 R2
100.00 10.00 E+ E+ W+ ML W+ W+ C+ C+ C+ C+
150.00 2.00 E+ ML ML ML R2 R2 R2 R2 C+ C+
150.00 5.00 E+ S+ ML ML ML W+ R2 R2 R2 R2
150.00 10.00 E+ S+ W+ ML ML W+ C+ C+ C+ C+

Note: E+ = positive-part Ezekiel; S+ = positive-part Smith; ML = Maximum Likelihood; R2 = normalR2; W+ = positive-part Wherry; C+ = positive-part Claudy.

The columns for p2 = 0 and 0.01 are not shown. In this conditions, the positive-part Ezekiel estimator is always best as for the p2 = 0.05 column.

Sarah Makonnen provided helpful feedback on the manuscript.

The author has no competing interests to declare.

1
Albers
,
C. J.
,
Kiers
,
H. A. L.
, &
van Ravenzwaaij
,
D.
(
2018
).
Credible confidence: A pragmatic view on the frequentist vs Bayesian debate
.
Collabra: Psychology
,
4
(
1
),
31
. DOI:
2
Alf
,
E. F.
, &
Graf
,
R. G.
(
2002
).
A new maximum likelihood estimator for the population squared multiple correlation
.
Journal of Educational and Behavioral Statistics
,
27
(
3
),
223
235
. DOI:
3
Benjamin
,
D. J.
,
Berger
,
J. O.
,
Johannesson
,
M.
,
Nosek
,
B. A.
,
Wagenmakers
,
E.-J.
,
Berk
,
R.
, …
Johnson
,
V. E.
(
2018
).
Redefine statistical significance
.
Nature Human Behaviour
,
2
(
1
),
6
10
. DOI:
4
Cohen
,
J.
,
Cohen
,
J.
,
West
,
S. G.
, &
Aiken
,
L. S.
(
2003
).Applied multiple regression/correlation analysis for the behavioral sciences (3rd ed.).
Machwach, NJ
:
Erlbaum
.
5
Fisher
,
R. A.
(
1928
).
The general sampling distribution of the multiple correlation coefficient
.
Proceedings of the Royal Society, A
,
121
,
654
673
. DOI:
6
Gauss Hypergeometric Function 2F1: Specific Values
. (
2019
).http://functions.wolfram.com/HypergeometricFunctions/Hypergeometric2F1/03/06/07/02/.
7
Karch
,
J. D.
,
Filevich
,
E.
,
Wenger
,
E.
,
Lisofsky
,
N.
,
Becker
,
M.
,
Butler
,
O.
, …
Kühn
,
S.
(
2019
).
Identifying predictors of within-person variance in MRI-based brain volume estimates
.
Neuroimage
. DOI:
8
Lehmann
,
E. L.
, &
Casella
,
G.
(
2003
).
Theory of point estimation
(2nd ed. 1998. Corr. 4th printing 2003).
New York
:
Springer
.
9
Marszalek
,
J. M.
,
Barber
,
C.
,
Kohlhart
,
J.
, &
Holmes
,
C. B.
(
2011
).
Sample size in psychological research over the past 30 years
.
Perceptual and Motor Skills
,
112
(
2
),
331
348
. DOI:
10
NIST Digital Library of Mathematical Functions
. (
2019
).http://dlmf.nist.gov/, Release 1.0.23 of 2019–
06
15
.
F. W. J.
Olver
,
A. B.
Olde Daalhuis
,
D. W.
Lozier
,
B. I.
Schneider
,
R. F.
Boisvert
,
C. W.
Clark
,
B. R.
Miller
and
B. V.
Saunders
, (eds.).
11
,
K.
(
2017
).
Negative estimate of variance-accounted-for effect size: How often it is obtained, and what happens if it is treated as zero
.
Behavior Research Methods
,
49
(
3
),
979
987
. DOI:
12
Olkin
,
I.
, &
Pratt
,
J. W.
(
1958
).
Unbiased estimation of certain correlation coefficients
.
The Annals of Mathematical Statistics
,
29
(
1
),
201
211
. DOI:
13
Pearson
,
J. W.
,
Olver
,
S.
, &
Porter
,
M. A.
(
2015
).
Numerical Methods for the Computation of the Confluent and Gauss Hypergeometric Functions
.
arXiv:
https://arxiv.org/abs/1407.7786
14
R Core Team
. (
2018
).
R: A language and environment for statistical computing
.
Vienna, Austria
:
R Foundation for Statistical Computing
.
15
Raju
,
N. S.
,
Bilgic
,
R.
,
Edwards
,
J. E.
, &
Fleer
,
P. F.
(
1997
).
Methodology review: Estimation of population validity and cross-validity, and the use of equal weights in prediction
.
Applied Psychological Measurement
,
21
(
4
),
291
305
. DOI:
16
Shieh
,
G.
(
2008
).
Improved shrinkage estimation of squared multiple correlation coefficient and squared cross-validity coefficient
.
Organizational Research Methods
,
11
(
2
),
387
407
. DOI:
17
Shmueli
,
G.
(
2010
).
To explain or to predict?
Statistical Science
,
25
(
3
),
289
310
. DOI:
18
Yarkoni
,
T.
, &
Westfall
,
J.
(
2017
).
Choosing prediction over explanation in psychology: Lessons from machine learning
.
Perspectives on Psychological Science
,
12
(
6
),
1100
1122
. DOI:
19
Yin
,
P.
, &
Fan
,
X.
(
2001
).
Estimating R2 shrinkage in multiple regression: A comparison of different analytical methods
.
The Journal of Experimental Education
,
69
(
2
),
203
224
. DOI:

The author(s) of this paper chose the Open Review option, and Streamlined Review option, and all new peer review comments (but not ported comments from the prior review) can be downloaded at: http://doi.org/10.1525/collabra.343.pr

This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License (CC-BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. See http://creativecommons.org/licenses/by/4.0/.