Why Correct the Raw Statistic?
Box’s M compares several group covariance matrices with their pooled estimate. Its raw statistic is a log-determinant contrast, and under the null hypothesis it has an asymptotic chi-square distribution. In finite samples, however, the raw statistic tends to have a mean slightly larger than the degrees of freedom of that limiting distribution. The finite-sample correction reduces this discrepancy.
The correction depends on two features of the design: the number of variables, and each group’s residual degrees of freedom. It changes the scale used for chi-square calibration; it does not change the covariance matrices or turn the corrected statistic into a new likelihood ratio.
Raw Box’s M and Its Reference Distribution
Suppose there are \(g\) independent groups, with \(n_i\) observations in group \(i\), and \(p\) measured variables. Under multivariate normal sampling, the null hypothesis is that all groups have the same covariance matrix. Let \(S_i\) be the usual unbiased sample covariance matrix for group \(i\), and define
where \(N=\sum_i n_i\). Assume \(n_i>p\) so that each \(S_i\) is nonsingular with probability one under a nonsingular multivariate normal model. The pooled matrix \(S_p\) is then also nonsingular.
For fixed \(p\) and \(g\), as the group sizes grow under the null hypothesis,
The dimension \(p(p+1)/2\) is the number of distinct entries in a symmetric covariance matrix. The null imposes equality across \(g\) covariance matrices, leaving \(g-1\) sets of covariance restrictions. This gives the degrees of freedom \(d\). The chi-square reference is asymptotic, not an exact finite-sample distribution.
Deriving the Finite-Sample Factor
The standard Box correction is a Bartlett-type adjustment: it rescales \(M\) to reduce its leading finite-sample bias relative to a chi-square variable with mean \(d\). A convenient derivation uses the exact expectation of the log determinant of a Wishart matrix under the null.
Under the null, write \(W_i=a_iS_i\). For independent multivariate normal samples, \(W_i\) has a Wishart distribution with covariance \(\Sigma\) and \(a_i\) degrees of freedom, and \(W=\sum_i W_i\) has a Wishart distribution with covariance \(\Sigma\) and \(\nu\) degrees of freedom. For an integer \(m>p-1\), if \(W_m\sim W_p(\Sigma,m)\), then
where \(\psi\) is the digamma function. Define
Since \(S_p=W/\nu\), linearity of expectation gives the exact null expectation
To obtain its first finite-sample term, use the digamma expansion \(\psi(x)=\log x-\frac{1}{2x}-\frac{1}{12x^2}+O(x^{-4})\) as \(x\) grows. Expanding each term in \(h(m)\) in powers of \(1/m\) gives
For clarity, the coefficient of \(m^{-2}\) comes from summing \(1/6-j^2/2\) over \(j=1,\ldots,p\); using \(\sum_{j=1}^{p}j^2=p(p+1)(2p+1)/6\) yields the displayed expression. Substituting this expansion into the exact expectation gives the following result.
To see the leading terms directly, the \(1/m\) term in \(h(m)\) contributes \((g-1)p(p+1)/2=d\). The \(1/m^2\) term contributes the displayed group-size expression. Dividing its coefficient by \(d\) shows that the relative first-order inflation is
Thus the correction factor is one minus this relative inflation. Multiplying \(M\) by that factor cancels the leading excess in its null mean. In particular, the resulting statistic is calibrated against the same asymptotic chi-square degrees of freedom; the correction does not change \(d\).
This derivation explains the correction’s first-order purpose, not an exact distributional identity. The chi-square calibration, corrected or uncorrected, remains an approximation. The corrected statistic is not itself a likelihood-ratio statistic arising from a new pair of hypotheses. Indeed, its associated exponential, \(\exp(-CM/2)=\Lambda_B^C\), is simply a power of the raw determinant ratio.
Worked Calculations
Worked Example: Three Univariate Groups
Suppose \(g=3\), \(p=1\), and the group sizes are \(8,10,12\). An analysis gives raw \(M=4.20\). Calculate the corrected statistic and its reference degrees of freedom.
The residual degrees of freedom are \(a_1=7\), \(a_2=9\), \(a_3=11\), and \(\nu=27\). The chi-square degrees of freedom are \(d=(3-1)1(1+1)/2=2\).
For \(p=1\) and \(g=3\), the coefficient is \[ A=\frac{2+3-1}{6(1+1)(3-1)}=\frac{4}{24}=\frac{1}{6}. \] The size term and correction are
The corrected statistic is compared with \(\chi^2_2\), not with a chi-square distribution having a newly adjusted degree of freedom.
Worked Example: How Dimension Changes the Correction
Consider three groups with sizes \(12,15,18\), so \(a_i=11,14,17\) and \(\nu=42\). Compare the correction coefficient for \(p=1\) and \(p=2\). The common size term is
For \(p=1\) and \(g=3\), \(A=1/6\), so \(C=1-S/6=0.9671080554\ldots\), with \(d=2\). For \(p=2\) and \(g=3\),
With the same group sizes, the dimension-two correction is larger because its coefficient \(A\) is larger. The degrees of freedom also increase, from 2 to 6, because each covariance matrix has three distinct entries when \(p=2\).
Worked Example: Correcting a Raw Log-Determinant Contrast
Use the same group sizes and \(p=2\). Suppose the observed covariance matrices are \(S_1=I_2\), \(S_2=0.35I_2\), and \(S_3=I_2\), where \(I_2\) is the \(2\times2\) identity matrix. Their pooled covariance is
Because \(|cI_2|=c^2\), the raw statistic is
From the previous calculation, \(C=0.9287341205\ldots\). Therefore \(M_{\mathrm{corr}}=C M\approx0.9287341205(8.882475)=8.249457\), while the reference degrees of freedom remain \(d=6\). The raw statistic is the log-ratio contrast; the corrected value is that contrast rescaled for chi-square calibration.
What the Correction Does—and Does Not Do
The factor \(C\) depends only on the design \((g,p,n_1,\ldots,n_g)\), not on the observed covariance matrices. For a fixed number of groups and variables, the size term shrinks as each \(n_i\) grows, so \(C\) approaches one. A larger dimension generally increases the coefficient \(A\), reflecting the larger finite-sample effect of estimating more covariance entries.
A common mistake is to multiply \(M\) by \(C\) and then treat the result as an exact chi-square statistic, or to change its degrees of freedom because its numerical value is smaller. Neither step is justified. The correction is a first-order improvement to an approximation: use \(CM\) with \(d=(g-1)p(p+1)/2\), and retain the usual caveat that the approximation may be inadequate in small samples.
Another mistake is to confuse the raw and corrected statistics. The raw determinant ratio corresponds to \(M=-2\log\Lambda_B\); \(CM\) is a calibration adjustment. It is not the unmodified log likelihood ratio, and the value \(\exp(-CM/2)\) should not be reported as if it were the original likelihood ratio.
Check Your Understanding
Use the definitions and derivation above to answer these questions.
- For \(g=4\) groups and \(p=3\) variables, what are the degrees of freedom of the chi-square reference distribution?
- Which group-size quantities enter the correction factor, and why does the factor approach one as sample sizes increase?
- In the expectation derivation, what contribution produces the leading term \(d\), and what contribution produces the first finite-sample term?
- If \(M=12\) and \(C=0.90\), what statistic is compared with the chi-square reference, and does its degrees of freedom change?
- Why is \(\exp(-CM/2)\) not the raw Box determinant ratio?