Jump to content

Glossary

From BCI2000 Wiki

A glossary of general terms

r2 (Coefficient of Determination)

The coefficient of determination, or r2 value, is a statistical measure computed over a pair of sample distributions, giving a measure of how strongly the means of the two distributions differ. In a BCI context, the coefficient of determination is computed over signals that have been measured under two different task conditions, and represents the fraction of the total signal variance that is accounted for ("determined by") by the task condition.

Computation

The coefficient of determination is in fact the squared correlation coefficient for a single bivariate distribution constructed from two sets of univariate data as follows:

  • There are n1 values xi(1) measured under condition 1, and n2 values xi(2) measured under condition 2.
  • From these two data sets, a single, two-dimensional data set is constructed, consisting of points (x,y) by assigning the measured value to x, and setting y=+1 if the value has been measured under condition 1, and y=1 for condition 2. The actual label values assigned to y do not matter, as long as they are distinct, but choosing +1 and -1 simplifies further computation.
  • For any two-dimensional data set of points (x,y), the squared correlation coefficient is:

r2=cov(x,y)2var(x)var(y).

In the special case of the distribution defined above, defining

sk:=ixi(k), qk:=ixi(k)2,

we have

cov(x,y)=s1s2n1+n2(s1+s2)(n1n2)(n1+n2)2=2s1n2s2n1(n1+n2)2,

var(x)=q1+q2n1+n2(s1+s2)2(n1+n2)2,

var(y)=1(n1n2)2(n1+n2)2=4n1n2(n1+n2)2,

r2=1n1n2(s1n2s2n1)2(n1+n2)(q1+q2)(s1+s2)2=s12/n1+s22/n2Gq1+q2G

where we have introduced G:=(s1+s2)2n1+n2 to arrive at the last expression, which is useful for efficient computation of r2.

Significance Test

For small numbers of trials (<30 per label), determination coefficients can become rather large even if there is no significant effect. To assess significance under the (robust) assumption of Gaussianity, determination coefficients may be converted into t-values according to

t2=(n1+n22)r21r2.

Such a t-value may be used in a one-tailed t-test against the "no correlation" null hypothesis.

Sensorimotor Rhythm (SMR)

A general term referring to idling activity from the sensory and motor cortices. The mu rhythm is the most prominent SMR activity.