Original Article

The A Priori Procedure (APP) for Estimating Regression Coefficients in Linear Models

Tingting Tong1, David Trafimow2,*, Tonghui Wang1, Cong Wang3, Liqun Hu1, Xiangfei Chen1

Methodology, 2022, Vol. 18(3), 203–220, https://doi.org/10.5964/meth.8245

Received: 2022-01-27. Accepted: 2022-09-02. Published (VoR): 2022-09-30.

Handling Editor: Francisco J. Abad, Universidad Autónoma de Madrid, Madrid, Spain

*Corresponding author at: SH 337, Department of Psychology, MSC 3452, New Mexico State University, Las Cruces, 88003-8001, NM, USA. E-mail: dtrafimo@nmsu.edu

This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Abstract

Regression coefficients are crucial in the sciences, as researchers use them to determine which independent variables best explain the dependent variable. However, researchers obtain regression coefficients from data samples and wish to generalize to populations; without reason to believe that sample regression coefficients are good estimates of corresponding population regression coefficients, their usefulness would be curtailed. In turn, larger sample sizes provide better estimates than do smaller ones. There is much recent literature on the a priori procedure (APP) that was designed for the general purpose of determining the sample sizes needed to obtain sample statistics that are good estimates of corresponding population parameters. We provide an extension of the APP to regression coefficients, which works for standardized or unstandardized regression coefficients. A simulation study and real data example support the mathematical derivations. Also, we include a free and user-friendly computer program to aid researchers in making the calculations.

Keywords: regression coefficients, a priori procedure, sample size

For over a century, researchers have performed multiple regression analyses to obtain regression coefficients that, in turn, provided valuable information about the ability of independent variables to explain dependent variables. However, until the present work, sample size determination has been left to power analyses (e.g., Cohen, 2013). From the point of view of determining sample sizes needed to render good chances of obtaining statistical significance, power analyses make sense. But from the point of view of determining sample sizes needed so that sample statistics can be trusted to estimate corresponding population parameters, power analysis is insufficient (Trafimow et al., 2020; Trafimow & Myüz, 2019). This is because power analysis is a function not only of the sample size, but of the expected effect size too. For example, consider the simple case of a single mean under the typical prescription in psychology that researchers should attempt to detect a ‘medium’ effect size (e.g., Cohen’s d = 0.50) with a 0.80 probability of rejecting the null hypothesis at alpha equals 0.05. In that case only 31 participants are required. However, that sample size implies that the researcher has a probability of 0.95 of obtaining a sample mean that is within 0.35 standard deviations of the population mean it is intended to estimate (Trafimow et al., 2020), which many would consider insufficiently precise. Trafimow (2018) recommended having a probability of 0.95 of having sample statistics be within 0.20 or 0.10 of corresponding population parameters for ‘good’ or ‘excellent’ precision, respectively, though also indicating that such designations could change depending on study contexts. Clearly, an alternative to power analysis is desirable, and the a priori procedure (APP), to be explained presently, provides it. The present goal is to expand the APP so that researchers can determine the sample sizes necessary to meet their requirements for obtaining sample regression coefficients that provide good estimates of corresponding population regression coefficients.

To set up the present work, it is useful to briefly consider the issue of regression coefficient size in the context of research that is exploratory or that is beyond exploratory, keeping in mind that the definitions of ‘small’ or ‘large’ regression coefficients depend on substantive areas and researcher goals. In exploratory research, variables with larger regression coefficients are typically considered better candidates for future investigation than are independent variables with smaller regression coefficients. In research that is beyond the initial exploration phase, independent variables with larger regression coefficients are typically considered better candidates for intervention, policy recommendations, or theoretical explanation than are independent variables with smaller regression coefficients. This is because policy makers must have reason not only to believe in the empirical relationship, but also that the relationship is sufficiently large to justify the costs of implementing a policy (Trafimow & Osman, 2022). Even for basic research, large regression coefficients are less susceptible to trivial alternative explanations than are smaller ones, all else being equal. Whether the research is at the exploratory level, or beyond that, researchers must have some reason to believe that the regression coefficients they obtain from their sample generalize to the population of interest; it is necessary to assume that sample regression coefficients are good estimates of corresponding population regression coefficients. Most researchers are aware that, in general, the larger the sample size, the better the estimation. However, at present, there is no way to know the minimum sample size needed to meet criteria for quality of estimation. Our goal is to derive a procedure to accomplish this. The procedure to be described works equally well for those researchers who prefer unstandardized regression coefficients to standardized ones.

Recently, a general methodology—the APP—has been developed for determining required sample sizes so that sample statistics provide good estimates of corresponding population parameters. There are two main criteria that are bullet-listed below:

  • Precision: Researchers must specify the distance within which they wish their sample statistics to be of corresponding population parameters.

  • Confidence: Researchers must specify the probability they wish to have of meeting the precision specification.

For example, in the case of a single mean, under normality, Trafimow (2017) showed that it is necessary to obtain a sample size of 385 to be 95 % confident that the sample mean will be within one-tenth of a standard deviation of the population mean. Note the contrast between a sample size of 385 participants versus 31 participants sufficient to satisfy a typical power analysis. Even dropping the criterion to a precision level of 0.20 implies a sample size of 97, which still exceeds 31, thereby exemplifying that the APP is very different from power analysis.

Recent APP work has gone well beyond single means under normality. For example, Trafimow et al. (2019) extended the APP to work for skew normal distributions; Wang et al. (2019a) extended the APP to work for comparisons between independent groups under skew normal distributions; and Wang et al. (2019c) provided an APP extension to two dependent groups (matched data). Moreover, Wang et al. (2020) extended the APP to one-way analysis of variance paradigms. Then, too, there are APP extensions pertaining to standard deviations or scales (e.g., Wang et al., 2022), distribution shapes (Wang et al., 2019b), and correlation coefficients (Wang et al., 2021). There is even a Bayesian APP extension for estimating the normal mean (Wei et al., 2020) and proportion based on skew normal approximations and the Beta-Bernoulli process (Cao et al., 2021). The foregoing citations indicate that a sizable APP literature already exists and that it is growing quickly.

The present goal is to add to the APP literature by extending that literature to address regression coefficients assuming a multivariate normal distribution. Our aim is to derive a procedure by which researchers can specify the desired degree of precision and confidence, as well as the number of independent variables, to determine the minimum sample sizes needed to meet the specifications. In other words, the work to be presented provides a way for researchers to determine the sample size necessary so that they can trust that their sample regression coefficients are good estimates of corresponding population regression coefficients.

Review of Multiple Linear Regression Model

In statistical modeling, regression analysis is a set of statistical processes for estimating the relationships between a dependent (response) variable and one or more independent (explanatory) variables. The most common form of regression analysis is linear regression that most closely fits the data according to a specific mathematical criterion.

The multiple linear regression model for n observations can be written as

y i = β 0 + β 1 x i 1 + + β p x i p + ε i , i = 1 , , n
which is equivalent to the matrix form
1
y = X β + E
where y = ( y 1 , , y n ) is the vector of dependent variable,
X ( j n , X 1 ) = ( j n , x 1 , , x p )
is n × ( p + 1 ) design matrix with j n = ( 1 , , 1 ) in n and x j = ( x 1 j , , x n j ) is the vector of observations for jth variable for j = 1 , , p . The random vector E = ( ε 1 , , ε n ) is the error term in the model and β = ( β 0 , β 1 , , β p ) is the vector of regression coefficients. For estimating β , we need general assumptions that the mean and the covariance matrix of E are, respectively, given by E ( E ) = 0 and C o v ( E ) = σ 2 I n , where I n is the identity matrix of order n and σ > 0 . Note that the model (1) can be written in centered form:
2
y = ( j n , X c ) ( α β 1 ) + E
where β 1 = ( β 1 , β 2 , , β p ) , α = β 0 + β 1 x ¯ 1 + β 2 x ¯ 2 + + β k x ¯ p , and
X c = ( I n J ¯ n ) X 1 , J ¯ n = 1 n j n j n
The following lemma will be used in constructing our APP method for estimating β and its proof is given in Rencher and Schaalje (2008).

Lemma 1

Consider the regression model given in (1) and (2) and assume that y N n ( X β , σ 2 I n ) , the n-dimensional multivariate normal distribution with mean X β and covariance matrix σ 2 I n . Then the maximum likelihood estimators of α , β 1 , and σ 2 are, respectively, given by

3
α ^ = y ¯ , β ^ 1 = ( X c X c ) 1 X c y , σ ^ 2 = 1 n ( y X β ^ ) ( y X β ^ )
where y ¯ = j n y / n . Furthermore, these estimators have the following properties:

  1. β ^ 1 N p ( β 1 , σ 2 ( X c X c ) 1 ) .

  2. n σ ^ 2 / σ 2 χ n p 1 2 , the chi-square distribution with n p 1 degrees of freedom.

  3. β ^ 1 and σ ^ 2 are independent.

Let S x x = ( s i j ) be the sample covariance matrix of ( x 1 , , x p ) and s y x = ( s y 1 , , s y p ) be the vector of sample covariances between y and the x j ’s, where s y j ’s are sample covariance between y and x j for j = 1 , , p . It can be shown that

4
X c X c = ( n 1 ) S x x , X c y = ( n 1 ) s y x , and β ^ 1 = S x x 1 s y x

We can also express the vector of regression coefficients β ^ 1 in terms of sample correlations. Let R be the sample correlation matrix between y and x 1 , , x p ’s and S be its corresponding sample covariance matrix as

R = ( 1 r y x r y x R x x ) and S = ( s y 2 s y x s y x S x x )
where r y x is the vector of correlations between y and x j ’s and R x x is the correlation matrix for the x 1 , , x p , and s y 2 is the sample variance of y 1 , y 2 , , y n . Let
D = [ diag ( S ) ] 1 / 2 diag ( s y , s 1 , , s p ) and D x = diag ( s 1 , , s p )
Then it is easy to verify from (4) that
5
β ^ 1 = s y D x 1 R x x 1 r y x and β ^ 1 = ( β ^ 1 , , β ^ p ) = 1 s y D x β ^ 1
where β ^ 1 is the estimator of the vector of standardized coefficient β 1 = ( s 1 s y β 1 , , s p s y β p ) . For references of standardized regression coefficients, please see Cohen (1968), Darlington and Hayes (2016), Green (1991), and Viswesvaran (1998).

Example 1

Consider the regression model with two independent variables x 1 and x 2 . We have

D x = ( s 1 0 0 s 2 ) , S x x = ( s 1 2 s 12 s 21 s 2 2 ) and s y x = ( s y 1 s y 2 )
By (4) and (5), we obtain, after simplification, that the estimators of β 1 and β 1 are
β ^ 1 = ( β ^ 1 β ^ 2 ) = 1 s 1 2 s 2 2 s 12 2 ( s 2 2 s y 1 s 12 s y 2 s 1 2 s y 2 s 21 s y 1 ) and β ^ 1 = ( β ^ 1 β ^ 2 ) = 1 1 r 12 2 ( r y 1 r 12 r y 2 r y 2 r 12 r y 1 )
respectively.

Remark 1

Note that the β ^ j ’s can be compared to each other, whereas the β ^ j ’s cannot be so compared. The division by s y is customary but not necessary. That is, the relative values of s 1 β ^ 1 and s 2 β ^ 2 are the same as those of s 1 β ^ 1 / s y and s 2 β ^ 2 / s y . Therefore, in stead of finding the necessary sample size needed to trust standardized regression weights β ^ 1 , people look for the sample size needed for estimating γ = s y β 1 = D x β 1 , which is equivalent to estimating β 1 as D x are calculated by the observations of independent variables X 1 , , X p . Therefore we will focus on setting our APP method on the estimation of β 1 .

The Necessary Sample Size Needed for Estimating the Vector of Regression Coefficients

In this section, we will establish the APP for estimating β 1 , vector of the regression coefficients given in (2) under normal assumption.

Theorem 1

Assume that y N n ( X β , σ 2 I n ) , where X is n × ( p + 1 ) of rank p + 1 and β = ( β 0 , β 1 , , β p ) = ( β 0 , β 1 ) . Then for specified precision f and confidence level c, the necessary sample size needed for estimating regression coefficients β 1 (or regression weights) can be obtained by solving the following equation

6
0 ( n 1 ) f 2 f U ( u ) d u = c
where
7
U S x x 1 / 2 ( β ^ 1 β 1 ) 2 p s 2 / ( n 1 ) F p , n p 1
the F-distribution with numerator degrees of freedom p and denominator degrees of freedom n p 1 and f U ( u ) is the density of U.

The proof of Theorem 1, together with the density of U is given in the Appendix.

Remark 2

Note that Theorem 1 still hold for finding the necessary sample size needed to trust γ ^ since

R 1 / 2 ( γ ^ E ( γ ^ ) ) = R 1 / 2 ( D x β 1 ^ D x β 1 ) = R 1 / 2 D x ( β 1 ^ β 1 ) = S x x 1 / 2 ( β ^ 1 β 1 )
Therefore, the necessary sample size, n, for estimating β ^ 1 , the vector of standardized regression weights will be same as that for estimating β 1 .

Remark 3

If the previous data sets are available, we can use them to obtain β 10 so that the random variable U given in (10) has a noncentral F distribution with non-centrality parameter

λ 0 = ( β 1 β 10 ) S x x ( β 1 β 10 )
and degrees of freedoms p and n p 1 , denoted by U F p , n p 1 ( λ 0 ) . The density function of W U F k 1 , k 2 ( λ ) is given in the Appendix. Therefore the required sample size n can be obtained by specifying an extra λ 0 with f U given in (6) replaced by f W given above.

The density curves of U with different values of p and n are listed in Figures 1 and 2. In Figure 1, the density curves of U are given for p = 2 and different values of n p 1 = 27 , 47 , 97 , 297 , which do not change much as n increases. In Figure 2, the density curves of U are graphed for n = 50 and different values of p = 2 , 3 , 5 , 10 , which change substantially when p changes.

Click to enlarge
meth.8245-f1.png
Figure 1

The Density Curves of U for p = 2 and n = 30 , 50 , 100 , 300

Click to enlarge
meth.8245-f2.png
Figure 2

The Density Curves of U for n = 50 and p = 2 , 3 , 5 , 10

If the non-central parameter λ 0 is not 0, the density curves for p = 5 , n = 50 , and different values of λ 0 = 0 , 1 , 2 , 5 are listed in Figure 3. We can see that the non-central parameter λ 0 do effect density curves.

Click to enlarge
meth.8245-f3.png
Figure 3

The Density Curves of Non-Central F-Distribution for p = 5 , n p 1 = 15 and Non-Central Parameter λ 0 = 0 , 1 , 2 , 5

Remark 4

From Theorem 1, we can construct a confidence region for β 1 or γ with give confidence level c 100 % and precision f, the confidence region for β 1 and γ are given by

8
C β 1 ( c , f ) = { β 1 : S x x 1 / 2 ( β ^ 1 β 1 ) p f σ }
and
9
C γ ( c , f ) = { γ : R x x 1 / 2 ( γ ^ γ ) p f σ }
respectively.

To illustrate the above results for case where p = 2 , c = 0.95 , the confidence regions of β 1 = ( 4 , 2.5 ) with n = 308 , 138 and f = 0.1 , 0.15 are given in Figures 4 and 5, respectively. Here data observations of x 1 and x 2 are generated from the uniform distribution with mean 0 and variance 1, and with true values ( β 0 , β 1 , β 2 ) = ( 2 , 4 , 2.5 ) .

Click to enlarge
meth.8245-f4.png
Figure 4

Confidence Regions of β 1 = ( β 1 , β 2 ) = ( 4 , 2.5 ) (Green Point) Enclosed by Blue Dashed Line for C = 0.95 and f = 0.1 , 0.15 From Left to Right and the Corresponding Point Estimators (Red Points)

Click to enlarge
meth.8245-f5.png
Figure 5

Confidence Regions of γ = ( 1.128 , 0.721 ) (Left Green Point) and γ = ( 1.162 , 0.715 ) (Right Green Point) Enclosed by Red Dashed Line for C = 0.95 and f = 0.1 , 0.15 From Left to Right and the Corresponding Point Estimates (Red Points)

Simulation Study and Real Data Example

In this section, we conduct a simulation study and present a real data analysis to evaluate the performance of the APP proposed above. The necessary sample sizes (n) obtained by using Theorem 1 are provided in Tables 1, 2, 3, 4 for different values of p when f = 0.1 , 0.15 , 0.2 , 0.25 and c = 0.9 , 0.95 .

Table 1

The Necessary Sample Sizes and Coverage Rates for p = 2

f 0.1 0.15 0.2 0.25
c 0.95 0.9 0.95 0.9 0.95 0.9 0.95 0.9
n 308 244 138 114 84 62 58 49
cr 0.95027 0.89956 0.95006 0.89995 0.95005 0.89968 0.94963 0.90019
Table 2

The Necessary Sample Sizes and Coverage Rates for p = 3

f 0.1 0.15 0.2 0.25
c 0.95 0.9 0.95 0.9 0.95 0.9 0.95 0.9
n 275 222 129 104 74 60 49 38
cr 0.94976 0.90035 0.94999 0.90042 0.94974 0.90039 0.94991 0.90003
Table 3

The Necessary Sample Sizes and Coverage Rates for p = 5

f 0.1 0.15 0.2 0.25
c 0.95 0.9 0.95 0.9 0.95 0.9 0.95 0.9
n 229 195 113 96 71 51 43 38
cr 0.95009 0.90000 0.94962 0.90004 0.95003 0.89946 0.94992 0.90030
Table 4

The Necessary Sample Sizes and Coverage rates for p = 10

f 0.1 0.15 0.2 0.25
c 0.95 0.9 0.95 0.9 0.95 0.9 0.95 0.9
n 192 172 98 78 58 46 38 35
cr 0.95009 0.89961 0.94995 0.89959 0.94991 0.89957 0.94971 0.89984

The tables indicate the following. First, the required sample size n decreases as values of precision f increase for all p = 2 , 3 , 5 , and 10. Second, with M = 100 , 000 runs (samples) for required sample size n, the coverage rates (the percentage of the constructed confidence intervals that include the true parameters) are very close to the corresponding confidence levels c = 0.9 , 0.95 . Third, as the number p of independent variables increases, the required sample size n decreases for fixed f and c. It is reasonable since the multiple correlation coefficient R 2 is increased as p increases so that the sample size decreases as p increases. Fourth, the effect of increasing the number p of independent variables is smaller for low precision setting (e.g., f = 0.25 : p = 2 , c = 0.9 , n = 49; f = 0.25 , p = 10 , c = 0.9 , n = 35 ) than for high-precision setting (e.g., f = 0.10 : p = 2, c = 0.9 , n = 224 ; f = 0.10 , p = 10 , c = 0.9 , n = 172 ).

For calculating the necessary sample sizes needed to estimate the regression coefficients β 1 , a freely available online calculator can be found at the Supplementary Materials.

Introduction to the Link

To use the program for finding the sample size needed to estimate the regression coefficients, it is necessary to make three entries. In the first box, type in the number (p) of independent variables included in the model. In the second box, type in the desired degree of precision (f). In the third box, type in the desired confidence level (c). The last input is the noncentrality parameter ( λ 0 ), which can be determined by using previous data. The default value of λ 0 is 0. Then click “update” to obtain the sample size needed to meet your specifications for precision and confidence.

Example 2

The data set was obtained from the R Package named datarium (Kassambara, 2019). The data sets list the impact of three advertising media (Youtube, Facebook and newspaper) on sales. Data are the advertising budget in thousands of dollars along with the sales. The advertising experiment has been repeated 200 times. Now, we construct a regression model to predict sales (y) on the basis of advertising budget spent in Youtube media ( x 1 ) and newspaper ( x 2 ). By the online calculator provided in the above, we obtain the necessary sample size needed for estimating the standardized regression weights is 138 with precision f = 0.15 , confidence level c = 0.95 . So we randomly choose a sample of size n = 138 from the row data. After calculation, the least-squares estimate of β 1 in equation (2) and γ are β ^ 1 = ( 0.04680 , 0.04472 ) and γ ^ = ( 4.74557 , 1.16442 ) , respectively. Also the estimate of the standardized regression weights is β ^ 1 = ( 0.76823 , 0.18850 ) . If we use the whole data set as a sample ( n = 200 ), the estimates of β 1 , γ and β 1 are β ^ 10 = ( 0.04690 , 0.04422 ) , γ ^ 0 = ( 4.83200 , 1.15565 ) and β ^ 10 = ( 0.77177 , 0.18458 ) , respectively. For comparison, the difference between β ^ 10 and β ^ 1 is ( 0.0001 , 0.0005 ) , which indicates that our proposed method for required n = 138 is consistent.

Remark 5

The verification of the assumptions of normality, homoscedasticity and influential values is provided in the C section of the Appendix.

Discussion

In the introduction, we explained why the size of regression coefficients, not just whether they are statistically significant, is important especially for applied research. Even if a regression coefficient is statistically significant, it might not be sufficiently large to justify expenditures necessary for a policy change (Trafimow & Osman, 2022). However, once the importance of regression coefficient size is acknowledged, there remains the crucial issue of the accuracy with which sample regression coefficients estimate population regression coefficients. Even a large sample regression coefficient may not justify a policy change if it cannot be trusted to be a good estimator of the corresponding population regression coefficient. Consequently, it is useful to have a procedure to enable valid judgments of the degree of trust consumers of research can place in sample regression coefficients as estimators of corresponding population regression coefficients. The present APP expansion provides that procedure.

In turn, there are two ways the present work, with the free and user-friendly program, can be used. One use concerns the original purpose of the APP, which is to plan sample sizes necessary for achieving researcher goals pertaining to precision and confidence. Secondly, however, the present APP expansion can be used post data collection, such as evaluating an already published regression coefficient. If a researcher reports a seemingly impressive regression coefficient, the trust that regression coefficient deserves can be assessed using the present program. If the reported sample size is less than what is necessary to meet assessors’, reviewers’, or policy makers’ criteria for precision and confidence, the applicability of the sample regression coefficient can be discounted accordingly. Alternatively, if the reported sample size exceeds that which is necessary to meet criteria for precision and confidence, trust in the sample regression coefficient can be augmented accordingly.

Also, we wish to be upfront about an important limitation, which is the assumption of multivariate normality. Future work, that we intend to perform, could include commencing from more general assumptions. For example, instead of assuming a multivariate normal distribution, it would be a further advance to extend the APP to regression coefficients under a multivariate skew normal distribution. In the meantime, the present work is nevertheless useful even if the assumption of multivariate normality is violated. To see why, consider that skewness decreases sample sizes necessary to meet specifications for precision and confidence (e.g., Trafimow et al., 2019; Wang et al., 2019a; Wang et al., 2019c). Thus, when multivariate normality is violated, the present computer program will overestimate necessary sample sizes needed to meet specifications for precision and confidence. Hence, the results the program produces can be considered conservative sample size estimates; if a researcher collects the sample size indicated by the computer program, he or she can be assured that precision and confidence are at the specified level, or better. Of course, in those cases where multivariate normality does apply, the results produced by the computer program should be very accurate and neither conservative nor liberal.

Finally, applied researchers should consider potential applications of their research, and explicitly consider how accurate the estimation needs to be to base an intervention or policy change on the regression coefficients they obtain. They can render specifications for precision and confidence accordingly. Also, the total cost of collecting a sample with required sample size n should be considered in selecting f and c. In our real data example, n = 138 for f = 0.15 and 0.95 . If we use f = 0.10 and 0.15 with p = 2 instead, the required sample size are 308 and 1014, respectively. It is impossible to have such sample sizes because the whole data size is 200.

In conclusion, we hope and expect that the present contribution provides an alternative to power analysis for researchers who use correlational designs that feature regression coefficients. If the goal is to attain statistical significance, power analysis makes sense; but if the goal is to obtain sample regression coefficients that are trustworthy estimators of corresponding population regression coefficients, the present APP extension is best.

Funding

The authors have no funding to report.

Acknowledgments

The authors have no additional (i.e., non-financial) support to report.

Competing Interests

The authors have declared that no competing interests exist.

Data Availability

Data is freely available at Supplementary Materials.

Supplementary Materials

For this article, a Shiny App can be found online to calculate the necessary sample sizes needed to estimate the regression coefficients β 1 (for access see Index of Supplementary Materials below).

  • App: Necessary Sample Sizes to Estimate Regression Coefficients

Index of Supplementary Materials

References

  • Cao, L., Wang, C., Wang, T., & Trafimow, D. (2021). The APP for estimating population proportion based on skew normal approximations and the Beta-Bernoulli process. Communications in Statistics-Simulation and Computation. Advance online publication. https://doi.org/10.1080/03610918.2021.2012192

  • Cohen, J. (1968). Multiple regression as a general data-analytic system. Psychological Bulletin, 70(6, Pt.1), 426-443. https://doi.org/10.1037/h0026714

  • Cohen, J. (2013). Statistical power analysis for the behavioral sciences. Academic Press.

  • Darlington, R. B., & Hayes, A. F. (2016). Regression analysis and linear models: Concepts, applications, and implementation. Guilford Publications.

  • Green, S. B. (1991). How many subjects does it take to do a regression analysis. Multivariate Behavioral Research, 26(3), 499-510. https://doi.org/10.1207/s15327906mbr2603_7

  • Kassambara, A. (2019). datarium: Data bank for statistical analysis and visualization (Version 3.1.0) [R package]. https://github.com/kassambara/datarium

  • Rencher, A. C., & Schaalje, G. B. (2008). Linear models in statistics. John Wiley & Sons.

  • Trafimow, D. (2017). Using the coefficient of confidence to make the philosophical switch from a posteriori to a priori inferential statistics. Educational and Psychological Measurement, 77(5), 831-854. https://doi.org/10.1177/0013164416667977

  • Trafimow, D. (2018). An a priori solution to the replication crisis. Philosophical Psychology, 31(8), 1188-1214. https://doi.org/10.1080/09515089.2018.1490707

  • Trafimow, D., Hyman, M. R., & Kostyk, A. (2020). The (im)precision of scholarly consumer behavior research. Journal of Business Research, 114, 93-101. https://doi.org/10.1016/j.jbusres.2020.04.008

  • Trafimow, D., & Myüz, H. A. (2019). The sampling precision of research in five major areas of psychology. Behavior Research Methods, 51(5), 2039-2058. https://doi.org/10.3758/s13428-018-1173-x

  • Trafimow, D., & Osman, M. (2022). Barriers to converting applied social psychology to bettering the human condition. Basic and Applied Social Psychology, 44(1), 1-11. https://doi.org/10.1080/01973533.2022.2051327

  • Trafimow, D., Wang, T., & Wang, C. (2019). From a sampling precision perspective, skewness is a friend and not an enemy! Educational and Psychological Measurement, 79(1), 129-150. https://doi.org/10.1177/0013164418764801

  • Viswesvaran, C. (1998). Multiple regression in behavioral research: Explanation and prediction. Personnel Psychology, 51(1), 223-226.

  • Wang, C., Wang, T., Trafimow, D., & Chen, J. (2019a). Extending A Priori Procedure to two independent samples under skew normal settings. Asian Journal of Economics and Banking, 3(2), 29-40.

  • Wang, C., Wang, T., Trafimow, D., Li, H., Hu, L., & Rodriguez, A. (2021). Extending the A Priori Procedure (APP) to address correlation coefficients. In N. N. Thach, V. Kreinovich, & N. D. Trung (Eds.), Data science for financial econometrics (pp. 141–149). Springer. https://doi.org/10.1007/978-3-030-48853-6_10

  • Wang, C., Wang, T., Trafimow, D., & Myüz, H. A. (2019b). Desired sample size for estimating the skewness under skew normal settings. In V. Kreinovich & S. Sriboonchitta (Eds.), Structural changes and their econometric modeling. TES 2019. Studies in computational intelligence (pp. 152–162). Springer. https://doi.org/10.1007/978-3-030-04263-9_11

  • Wang, C., Wang, T., Trafimow, D., & Myüz, H. A. (2019c). Necessary sample sizes for specified closeness and confidence of matched data under the skew normal setting. Communications in Statistics–Simulation and Computation, 51(5), 1-12. https://doi.org/10.1080/03610918.2019.1661473

  • Wang, C., Wang, T., Trafimow, D., & Talordphop, K. (2020). Extending the A Priori Procedure to one-way analysis of variance model with skew normal random effects. Asian Journal of Economics and Banking, 4(2), 77-90.

  • Wang, C., Wang, T., Trafimow, D., & Xu, Z. (2022). A Priori Procedure (APP) for estimating the scale parameter in gamma populations for known shape parameter. In S. Sriboonchitta, V. Kreinovich, & W. Yamaka (Eds.), Credible asset allocation, optimal transport methods, and related topics (pp. 285–298). Springer. https://doi.org/10.1007/978-3-030-04263-9_11

  • Wei, Z., Wang, T., Trafimow, D., & Talordphop, K. (2020). Extending the A Priori Procedure to normal Bayes models. International Journal of Intelligent Technologies and Applied Statistics, 13(2), 169-183. https://doi.org/10.6148/IJITAS.202006_13(2).0004

Appendix

A. Proof of Theorem 1

By Lemma 1 we know that β ^ 1 N p ( β 1 , σ 2 ( X c X c ) 1 ) so that

D x ( β ^ 1 β 1 ) N p ( 0 , σ 2 D x ( X c X c ) 1 D x )
From (4), we obtain D x ( X c X c ) 1 D x = R x x 1 / ( n 1 ) , and hence
D x ( β ^ 1 β 1 ) N p ( 0 , σ 2 n 1 R x x 1 )
Let
Z = R x x 1 / 2 D x ( β ^ 1 β 1 ) σ / n 1 and q = Z Z
Note that it is easy to verify that Z N p ( 0 , I p ) so that
Z Z = ( β ^ 1 β 1 ) D x R x x D x ( β ^ 1 β 1 ) σ 2 / ( n 1 ) = ( β ^ 1 β 1 ) S x x ( β ^ 1 β 1 ) σ 2 / ( n 1 ) χ p 2
which is equivalent to, with the norm notation
S x x 1 / 2 ( β ^ 1 β 1 ) 2 σ 2 / ( n 1 ) χ p 2
Let s 2 be the unbiased estimator of σ 2 so that ( n p 1 ) s 2 = n σ ^ 2 by Lemma 1. Note that ( n p 1 ) s 2 / σ 2 χ 2 ( n p 1 ) and β ^ 1 , s 2 are independent. From the definition of F-distribution, we obtain
10
U S x x 1 / 2 ( β ^ 1 β 1 ) 2 p s 2 / ( n 1 ) F p , n p 1
the F-distribution with numerate degrees of freedom p and denominator degrees of freedom n p 1 and the the density of U is given by
f U ( u ) = Γ ( n 1 2 ) Γ ( p 2 ) Γ ( n p 1 2 ) ( p n p 1 ) p / 2 u p / 2 1 ( 1 + p u n p 1 ) ( n 1 ) / 2 , u > 0
where Γ ( ) is the gamma function.

Now, we set up the APP for estimating β 1 , the vector of regression coefficients using its unbiased estimator β 1 ^ . For a given precision f and confidence level c,

c = P ( S x x 1 / 2 ( β ^ 1 β 1 ) p f σ ) = P ( S x x 1 / 2 ( β ^ 1 β 1 ) 2 p f 2 σ 2 ) = P ( S x x 1 / 2 ( β ^ 1 β 1 ) 2 p σ 2 / ( n 1 ) ( n 1 ) f 2 )
By strong law of large numbers, we know that s 2 is a consistent estimator of σ 2 so that for large n, the above expression can be reduced to
P ( U ( n 1 ) f 2 ) c
Therefore the required n can be obtained from (6).

B. The Density of W Given in Remark 3

The density of W, the non-central F-distribution with degrees of freedoms k 1 and k 2 and non-centralized parameter λ is given by

11
f W ( w ; k 1 , k 2 , λ ) = k 1 k 2 k 2 / 2 Γ ( 1 2 ) Γ ( k 1 1 2 ) Γ ( k 2 2 ) 2 ( k 1 + k 2 ) / 2 0 exp { 1 2 ( λ + ( k 1 w + k 2 ) u ) } u k 2 / 2 × k 1 w u k 1 w u exp ( λ 1 / 2 s ) ( k 1 w u s 2 ) ( k 1 3 ) / 2 d s d u

C. The Verification of Normality Assumptions

Now we check the assumptions of normality, homoscedasticity and influential values by Figure 6. From the histogram and QQ plot of residuals, we can see that in our example, all the points fall approximately along this reference line, so we can assume normality. There is no pattern in the scatter of the fitted values and residuals and the width of the scatter as predicted values increase is roughly the same so the assumption of homoscedasticity has been met. The residual and leverage plot highlights the top 3 most extreme points (129, 166, and 179 are marked in Fitted values of Figure 6), with a standardized residuals above 2 or below −2. However, there is no outliers that exceed 3 standard deviations. Additionally, the data do not present much influential points. That is, most of data points have a leverage statistic below 2 ( p + 1 ) / n = 6 / 138 = 0.04 .

Click to enlarge
meth.8245-f6.png
Figure 6

Histogram of Standardized Residuals, Plot of Residuals vs Fitted Values, QQ Plot of Standardized Residuals, and Plot of Residuals vs Leverage