PillaiTrace

PillaiTrace[m1, m2]
gives Pillai's trace for the matrices and .

DetailsDetails

  • PillaiTrace[m1, m2] gives Pillai's trace between and .
  • Pillai's trace is a measure of linear dependence based on partitions of the pooled covariance matrix.
  • Pillai's trace is computed as Tr[TemplateBox[{{(, {Sigma, _, {(, 11, )}}, )}}, Inverse].Sigma_(12).TemplateBox[{{(, {Sigma, _, {(, 22, )}}, )}}, Inverse].Sigma_(21)] where is the covariance matrix of the pooled sample, which can be partitioned into where and correspond to the covariance matrices of the individual datasets.
  • The arguments and can be any real-valued matrices or vectors of equal length.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Compute Pillai's trace for two matrices:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Pillai's trace for two vectors:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Pillai's trace for a matrix and a vector:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »