CalcWorldHub
Free online calculator · no signup

Box M covariance equality test calculator

Compare covariance matrices across independent multivariate groups with Box’s M and its first-order chi-square correction.

4,000 tools
Box M covariance equality test calculator — Observation rows, Variables per observation, Matching integer group labels and calculation method
Box M covariance equality test calculator: inputs and calculation method.

How to use this calculator

Compare covariance matrices across independent multivariate groups with Box’s M and its first-order chi-square correction.

  1. Enter Observation rows, Variables per observation, Matching integer group labels. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Box M covariance equality test explained

Box M uncorrected statistic2.0898
Box M uncorrected statistic: 2.08982729 in the worked scenario.

A numerical walkthrough

Observation rows = 1,2,2,1,3,4,4,2,5,5,6,3,2,1,3,3,4,2,5,6,6,4,7,7; Variables per observation = 2; Matching integer group labels = 0,0,0,0,0,0,1,1,1,1,1,1.

  • Box M uncorrected statistic: 2.08982729
  • Corrected chi-square approximation: 1.63703138
  • Approximate p-value: 0.65102265
  • Degrees of freedom: 3

Twelve two-variable rows split into two groups of six. The test compares their covariance structure after centering within each group, rather than comparing their mean vectors.

The model behind the numbers

M=N ln|Spool|−Σ(ni−1)ln|Si|, N=Σ(ni−1); χ²≈(1−c)M; df=(g−1)p(p+1)/2.

Pool within-group sample covariance matrices weighted by their residual degrees of freedom. The correction is c=[(2p²+3p−1)/(6(p+1)(g−1))][Σ1/(ni−1)−1/N]. Determinants are evaluated through positive-definite factorization.

What to enter

x — Observation rows
Complete observations flattened row by row. For repeated measures each row is one subject; otherwise each row is one independent multivariate observation. Use comma-separated values in the stated order.
p — Variables per observation
Measured variables per complete observation row; the group label is separate and not counted as a variable. Enter a whole number.
g — Matching integer group labels
One nonnegative integer independent-group label per complete observation row. Use comma-separated values in the stated order.

Interpreting the result

Multivariate-normal independent groups, each with more observations than variables and nonsingular covariance. Box’s test is sensitive to nonnormality. The chi-square approximation can be poor in small samples; no second-order or F approximation is used.

Reading the outputs

The main M statistic is uncorrected. The labeled chi-square and p-value use the stated correction; the test has three degrees of freedom for two groups of two variables.

Frequently asked questions

Does this test equal means?

No. Group means are centered out; covariance equality is the target.

Can a singular covariance be used?

No. Its log determinant is not finite.

Does significance prove unequal variances alone?

The departure may involve variances, covariances, or both, and nonnormality can also affect calibration.

How do I use the Box M covariance equality test calculator?

Enter Observation rows, Variables per observation, Matching integer group labels. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Box M covariance equality test?

Observation rows = 1,2,2,1,3,4,4,2,5,5,6,3,2,1,3,3,4,2,5,6,6,4,7,7; Variables per observation = 2; Matching integer group labels = 0,0,0,0,0,0,1,1,1,1,1,1. Box M uncorrected statistic: 2.08982729 Corrected chi-square approximation: 1.63703138 Approximate p-value: 0.65102265 Degrees of freedom: 3 Twelve two-variable rows split into two groups of six. The test compares their covariance structure after centering within each group, rather than comparing their mean vectors.