<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=128.9.216.52</id>
	<title>formulasearchengine - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=128.9.216.52"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/wiki/Special:Contributions/128.9.216.52"/>
	<updated>2026-09-07T13:11:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.47.0-wmf.7</generator>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Quantifier_rank&amp;diff=27840</id>
		<title>Quantifier rank</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Quantifier_rank&amp;diff=27840"/>
		<updated>2013-10-03T17:47:59Z</updated>

		<summary type="html">&lt;p&gt;128.9.216.52: /* Examples */  Quantified variables shouldn&amp;#039;t be subscript. Fixed.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Common spatial pattern&#039;&#039;&#039; (&#039;&#039;&#039;CSP&#039;&#039;&#039;) is a mathematical procedure used in [[signal processing]] for separating a [[Multivariate analysis|multivariate]] signal into [[Additive function|additive]] subcomponents which have maximum differences in [[variance]] between two [[Window function|window]]s.&amp;lt;ref&amp;gt;Zoltan J. Koles, Michael S. Lazaret and Steven Z. Zhou, [http://www.springerlink.com/content/l378x271583v34p7/ &amp;quot;Spatial patterns underlying population differences in the background EEG&amp;quot;], Brain topography, Vol. 2 (4) pp. 275-284, 1990&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\mathbf{X}_1&amp;lt;/math&amp;gt; of [[dimension]] &amp;lt;math&amp;gt;(n,t_1)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathbf{X}_2&amp;lt;/math&amp;gt; of dimension &amp;lt;math&amp;gt;(n,t_2)&amp;lt;/math&amp;gt; be two windows of a multivariate [[Signal (electrical engineering)|signal]], where &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is the number of signals and &amp;lt;math&amp;gt;t_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t_2&amp;lt;/math&amp;gt; are the respective number of samples.&lt;br /&gt;
&lt;br /&gt;
The CSP algorithm determines the component &amp;lt;math&amp;gt;\mathbf{w}^T&amp;lt;/math&amp;gt; such that the ratio of variance (or second-order [[Moment (mathematics)|moment]]) is maximized between the two windows:&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{w}={\arg \max}_\mathbf{w} \frac{||\mathbf{wX}_1||^2}{||\mathbf{wX}_2||^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The solution is given by computing the two [[covariance matrix|covariance matrices]]:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{R}_1=\frac{\mathbf{X}_1\mathbf{X}_1^T}{t_1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{R}_2=\frac{\mathbf{X}_2\mathbf{X}_2^T}{t_2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, the simultaneous [[Matrix diagonalization|diagonalization]] of those two [[Matrix (mathematics)|matrices]] is realized. We find the matrix of [[eigenvector]] &amp;lt;math&amp;gt;\mathbf{P}=\begin{bmatrix} \mathbf{p}_1 &amp;amp; \cdots &amp;amp; \mathbf{p}_n \end{bmatrix}&amp;lt;/math&amp;gt; and the diagonal matrix &amp;lt;math&amp;gt;\mathbf{D}&amp;lt;/math&amp;gt; of eigenvalues &amp;lt;math&amp;gt;\{\lambda_1, \cdots , \lambda_n \}&amp;lt;/math&amp;gt; sorted by decreasing order such that:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{P}^{-1} \mathbf{R}_1 \mathbf{P} = \mathbf{D}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{P}^{-1} \mathbf{R}_2 \mathbf{P} = \mathbf{I}_n&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
with &amp;lt;math&amp;gt;\mathbf{I}_n&amp;lt;/math&amp;gt; the [[identity matrix]].&lt;br /&gt;
&lt;br /&gt;
This is equivalent to diagonalize the matrix &amp;lt;math&amp;gt;\mathbf{R}_2^{-1} \mathbf{R}_1&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{R}_2^{-1} \mathbf{R}_1=\mathbf{PDP}^{-1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{w}^T&amp;lt;/math&amp;gt; will correspond the first column of &amp;lt;math&amp;gt;\mathbf{P}&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{w}=\mathbf{p}_1^T&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion ==&lt;br /&gt;
&lt;br /&gt;
=== Relation between variance ratio and eigenvalue ===&lt;br /&gt;
&lt;br /&gt;
The eigenvectors composing &amp;lt;math&amp;gt;\mathbf{P}&amp;lt;/math&amp;gt; are components with variance ratio between the two windows equal to their corresponding eigenvalue:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathbf{\lambda}_i=\frac{||\mathbf{p}_i^T\mathbf{X}_1||^2}{||\mathbf{p}_i^T\mathbf{X}_2||^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Other components ===&lt;br /&gt;
&lt;br /&gt;
The [[vector subspace|vectorial subspace]] &amp;lt;math&amp;gt;E_i&amp;lt;/math&amp;gt; generated by the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt; first eigenvectors &amp;lt;math&amp;gt;\begin{bmatrix} \mathbf{p}_1 &amp;amp; \cdots &amp;amp; \mathbf{p}_i \end{bmatrix}&amp;lt;/math&amp;gt; will be the subspace maximizing the variance ratio of all components belonging to it:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;E_i={\arg \max}_{E} \begin{pmatrix}\min_{p \in E} \frac{||\mathbf{p^TX}_1||^2}{||\mathbf{p^TX}_2||^2}\end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On the same way, the vectorial subpsace &amp;lt;math&amp;gt;F_j&amp;lt;/math&amp;gt; generated by the &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt; last eigenvectors &amp;lt;math&amp;gt;\begin{bmatrix} \mathbf{p}_{n-j+1} &amp;amp; \cdots &amp;amp; \mathbf{p}_n \end{bmatrix}&amp;lt;/math&amp;gt; will be the subspace minimizing the variance ratio of all components belonging to it:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;F_j={\arg \min}_{F} \begin{pmatrix}\max_{p \in F} \frac{||\mathbf{p^TX}_1||^2}{||\mathbf{p^TX}_2||^2}\end{pmatrix}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Variance or second-order moment ===&lt;br /&gt;
&lt;br /&gt;
You can apply the CSP after a [[mean]] subtraction (a.k.a. &amp;quot;mean centering&amp;quot;) on signals in order to realize a variance ratio optimization. Otherwize the CSP optimize the ratio of second-order moment.&lt;br /&gt;
&lt;br /&gt;
=== Choice of windows X&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; and X&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
The standard use consists on choosing the windows to correspond to two periods of time with different activation of sources (e.g. during rest and during a specific task).&lt;br /&gt;
&lt;br /&gt;
It is also possible to choose the two windows to correspond to two different frequency bands in order to find components with specific frequency pattern.&amp;lt;ref name=&amp;quot;boudet&amp;quot;&amp;gt;Boudet, S., [http://www.theses.fr/2008LIL10156 &amp;quot;Filtrage d&#039;artefacts par analyse multicomposantes de l&#039;électroencephalogramme de patients épileptiques.&amp;quot;], PhD. Thesis: Unviversité de Lille 1, 07/2008&amp;lt;/ref&amp;gt; Those frequency bands can be on temporal or on frequential basis. Since the matrix &amp;lt;math&amp;gt;\mathbf{P}&amp;lt;/math&amp;gt; depends only of the covariance matrices, the same results can be obtained if the processing is applied on the [[Fourier transform]] of the signals.&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
This method can be applied to several multivariate signal but it seems that most works on it concern [[electroencephalography|electroencephalographic]] signals. &lt;br /&gt;
&lt;br /&gt;
Particularly, the method is mostly used on [[brain–computer interface]] in order to retrieve the component signal which best transduce the cerebral activity for a specific task (e.g. hand movement).&amp;lt;ref name=&amp;quot;bci&amp;quot;&amp;gt;G. Pfurtscheller, C. Gugeret and H. Ramoser [http://www.springerlink.com/content/164875w6w5211303/ &amp;quot;EEG-based brain-computer interface using subject-specific spatial filters&amp;quot;], Engineering applications of bio-inspired artificial neural networks, Lecture Notes in Computer Science, 1999, Vol. 1607/1999, pp. 248-254&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It can also be used to separate artifacts from electroencephalographics signals.&amp;lt;ref name=&amp;quot;boudet&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Blind signal separation]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Signal processing]]&lt;/div&gt;</summary>
		<author><name>128.9.216.52</name></author>
	</entry>
</feed>