PEF: Two-Sample Covariance Test by Yu, Li and Xue (2022)
Description
Given two sets of data matrices X and Y, where X is an n1 rows and p cols matrix and Y is an n2 rows and p cols matrix,, we conduct hypothesis testing of the covariance matrix between two samples. The null hypothesis is:
$$H_0 : \Sigma_1 = \Sigma_2$$
\(\Sigma_1\) and \(\Sigma_2\) are the sample covariance matrices of X and Y respectively. This test method is based on the test method proposed by Yu, Li and Xue (2022). When the pval value is less than the significance coefficient (generally 0.05), the null hypothesis is rejected.
Usage
PEF(X,Y)
Value
stat
a test statistic value.
pval
a test p_value.
Arguments
X
A matrix of n1 by p
Y
A matrix of n2 by p
References
Yu, X., Li, D., and Xue, L. (2022). Fisher's combined probability test for high-dimensional covariance matrices. Journal of the American Statistical Association, (in press):1-14.