# measuring Statistical Dependence with Hilbert-Schmidt Norm

Jump to: navigation, search

"Hilbert-Schmist Norm of the Cross-Covariance operator" is proposed as an independence criterion in reproducing kernel Hilbert spaces (RKHSs). The measure is refereed to as Hilbert-Schmidt Independence Criterion, or HSIC. An empirical estimate of this measure is introduced which may be well used in many practical application such as independent Component Analysis (ICA), Maximum Variance Unfolding (MVU), feature extraction, feature selection, ... .

## Introduction

In this article <ref> Gretton, A., Bousquet, O., Smola, A. J., and Schölkopf, B., Measuring Statistical Dependence with Hilbert-Schmidt Norms, Proceedings Algorithmic Learning Theory, S. Jain and W.-S. Lee (Eds.), 2005.</ref>, a criterion is introduced which is used to measure the dependence between two multivariate random variables. More specifically, we are looking for an appropriate function of two random variables whose output is zero if the involving random variables are independent and achieves a high value if they are statistically dependent. If instead of "independence" we were looking for "uncorrelation" the situation would be much easier to handle. Because "correlation" of two random variables involves only expected values, as opposed to concept of independence between two random variables. However, fortunately, based on the following theorem we still can effectively tackle the problem of independence between two random variables:

Theorem: Two random variables $\,\!x$ and $\,\!y$ are independent if and only if any bounded continuous function of the two random variables are uncorrelated. (have zero covariance).

For example, for random variables $\,\!x$ and $\,\!y$ to be independent, all pairs $(x,y),\, (x^2,y),\,(x,e^y), \,(\sin(x),\log(y)),\, ...$ have to be uncorrelated. That is why we need to deal with functions of random variables when examining the independence property. and That is why Hilbert spaces and concepts from "Functional Analysis" are involved in this article (Of course, no one likes to torture him/herself by using complicated mathematical expressions ;)).

## How the rest of this note is organized

In the following, we first give an introductory note on the concepts from functional analysis and Hilbert spaces required in this paper. (No prior knowledge of these concepts is assumed here). Then we introduce the independence measure, namely, Hilbert-Schmidt Independence Criterion and explain why we expect it to work properly. Thirdly, we introduce an statistics which may be used to estimate the HSIC and discuss its convergence behavior. Finally, through some examples, we demonstrate how this criterion may be effectively employed to solve many well-known problems.

## Simple introduction to Reproducing Kernel Hilbert Spaces

### Basic concepts

Let $\mathcal{F}$ denote the set containing all real-valued functions defined on domain $\,\!\mathcal{X}$. By real-valued, we mean the output of these functions is always a real number. (Note that this definition makes good sense considering the methodology mentioned in the introduction section.) We may note that this space is linear, as for any $f,g\in\mathcal{F}$ and $a,b\in\mathbb{R}$, $\,\!af+bg$ will be a member of $\mathcal{F}$, as well. On the other hand, we may define the concept of real-valued inner product between the elements of $\mathcal{F}$. The simplest way to do that probably is the familiar:
$\langle a,b\rangle=\int_{}^{}{f(t)g(t)dt}$
However, other definitions for the inner product is also possible. The only required conditions are that:
1. $\langle f,f\rangle\geq0,\,\forall\, f\in\mathcal{F}$ with $\langle f,f\rangle=0$ iff $\,\!f=0$.
2. $\langle f,g\rangle=\langle g,f\rangle,\, \forall \,f,g\in \mathcal{F}$.
3. $\langle af+bg,h\rangle=a\langle f,h\rangle+b\langle g,h\rangle,\,\forall\,f,g,h\in\mathcal{F}$ and all real $\,\!a$ and $\,\!b$.

Endowed with the concept of inner product, the set $\mathcal{F}$ here is, in fact, a Hilbert space. (In general, a Hilbert space is a (complete) linear space endowed with an inner product defined on the elements with the above properties. However, in this article we only deal with those Hilbert spaces whose elements are real-valued functions on $\mathcal{X}$.)
A mapping from the Hilbert space to real numbers $L:\mathcal{F}\rightarrow \mathbb{R}$ is called a functional. A functional is called linear if the underlying mapping is linear, i.e.:
$\,\!L(af+bg)=aL(f)+bL(g)$
for all $\,\!f$ and $\,\!g$ in $\mathcal{F}$ and all real $\,\!a$ and $\,\!b$. A simple (and yet very important) example of a functional is a function which gets an element of $\mathcal{F}$ (which is a real-valued function on $\mathcal{X}$) as input and returns its value at a specific fixed point $\,\!x$. This functional is called Dirac evaluation functional and is denoted by $\delta_x:\mathcal{F} \rightarrow \mathbb{R}$. Thus we have $\,\!\delta_x(f)=f(x)$. It can be easily seen that $\,\!\delta_x$ is a linear functional.
There is theorem on linear functionals named "Riesz representation Theorem" which plays a key role in functional analysis:
Theorem (Riesz representation): If $\,\!L$ is a bounded linear functional on a Hilbert space $\mathcal{F}$, then there exists a unique element $\,\!h_f$ in $\mathcal{F}$ such that $L(f)=\langle f,h_f\rangle$ for all $\,\!f$ in $\mathcal{F}$.
As mentioned above, $\,\!\delta_x$ is linear functional and thus according to Riesz theorem there is an element of $\mathcal{F}$, denoted by $\,\!k_x$ such that:
$\delta_x(f)=f(x)=\langle f,k_x\rangle$ for all $f\in\mathcal{F}$.
For example, for the inner product defined in the integral form above, $k_x$ would be simply a delta Dirac function which peaks at point $x$.

### Reproducing Kernel Hilbert Spaces (RKHS)

Reproducing Kernel Hilbert Spaces are a subtype of Hilbert spaces introduced above. A Hilbert space is a RKHS if for all $x\in \mathcal{X}$, the corresponding Dirac evaluation operator $\delta_x:\mathcal{F} \rightarrow \mathbb{R}$ is a continuous linear functional. Based on this, Reproducing Kernel Hilbert Spaces, in fact, represent a family of Hilbert spaces with smooth real-valued functions as their elements.
To every RKHS we may assign a symmetric positive definite function $k:\,\mathcal{X}\times\mathcal{X}\rightarrow\mathbb{R}$, named kernel. Using the Dirac evaluation functional, the kernel function is defined as:
$\,\!k(x,y):=k_x(y)$
It is not hard to see that:
$k(x,y)=k_x(y)=\langle k_x,k_y\rangle$
It may be shown that there is a unique correspondence between a RKHS and its kernel. In other words, given a Hilbert space, its kernel function would be identified uniquely; and inversely, if $\,\!k$ is symmetric positive definite function of the form $k:\mathcal{X}\times \mathcal{X}\rightarrow \mathbb{R}$, then there is a unique Hilbert space of functions on $\mathcal{X}$ for which $\,\!k$ is a reproducing kernel.
The elements of the RKHSs we consider here are always the same, i.e., the smooth real-valued functions on a set $\mathcal{X}$. However, they may have different inner products defined and thus different types of kernels.

## The independence measure

Now we turn our attention back to the the problem of measuring independence between two (generally multivariate) random variables $\,\!x$ and $\,\!y$. Induced by the idea described in the introduction section, we define RKHS $\mathcal{F}$ from $\mathcal{X}$ to $\mathbb{R}$ containing all continuous bounded real-valued functions of $\,\!x$, and RKHS $\mathcal{G}$ from $\mathcal{Y}$ to $\mathbb{R}$ containing all continuous bounded real-valued functions of $\,\!y$. Here, $\mathcal{X}$ and $\mathcal{Y}$ denotes the support (set of possible values) of random variables $\,\!x$ and $\,\!y$ respectively. As mentioned before, we are particularly interested in the cross-covariance between elements of $\mathcal{F}$ and $\mathcal{G}$:
$\text{cov}(f(x),g(y))=\mathbf{E}_{x,y}[f(x)g(y)]-\mathbf{E}_{x}[f(x)]\mathbf{E}_{y}[g(y)]$
In functional Analysis, an operator is a name given to a mapping which maps elements from one Hilbert space to elements of the other one. It may be shown that there exist a unique operator $\,\!C_{x,y}:\mathcal{G}\rightarrow \mathcal{F}$ mapping elements of $\mathcal{G}$ to elements of $\mathcal{F}$ such that:
$\langle f,C_{x,y}(g)\rangle_{\mathcal{F}}=\text{cov}(f,g)$
for all $f\in \mathcal{F}$ and $g\in \mathcal{G}$. This operator is called Cross-covariance operator.
We may define the concept of norm for an operator. For example, consider an operator in the form of a matrix $C_{m\times n}$ mapping vectors of size $n\times 1$ in $\mathbb{R}^n$ to vectors of size $m\times 1$ in $\mathbb{R}^m$. Then the Frobenius norm of this matrix may be defined as the norm of the corresponding operator.
There are different norms defined for operators. One of them is called Hilbert-Schmidt (HS) norm and is defined as follows:
$\|C\|^2_{HS}:=\sum_{i,j}\langle Cv_i,u_j \rangle^2_{\mathcal{F}}$
where $\,\!u_j$ and $\,\!v_i$ are orthogonal bases of $\mathcal{F}$ and $\mathcal{G}$, respectively. It is easy to see that the Frobenius norm on matrices may be considered a spacial case of this norm.

Now, we are in a position to define our measure for dependence of two random variables. The measure is the "Hilbert-Schmidt norm of the cross-covariance operator":
$\text{HSIC}(p_{xy},\mathcal{F},\mathcal{G}):=\|C_{xy}\|^2_{HS}$
We may note that if $\|C_{xy}\|^2_{HS}$ is zero, then the value of $\langle f,C_{x,y}(g)\rangle$, i.e., $\,\!\text{cov}(f,g)$, will be always zero for any $f\in\ \mathcal{F}$ and $g\in \mathcal{G}$ and thus based on the theorem given in the introduction section, the random variables $\,\!x$ and $\,\!y$ will be independent. We will return to this important fact again in the section "Independence test using HSIC" below.

## HSIC advantages

HSIC has several advantages: First, Compared to the other measures, it is more straightforward and extra regularization terms are not needed. Second, as the sample size increases, any existing dependence with high probability will be detected. This is not true in the case of any other kernel dependence test and happens just for the covariance constraints. Third, the finite sample bias of the estimate is negligible and has the order of $m^{-1}$. This is not always true for the other kernel dependence tests. Last, It has been shown in an ICA experiment that this new independence test is better than the others competing with the best of the ICA methods.

## HSIC in terms of kernels

To compute HSIC we need to express it in terms of kernel functions. It can be shown that this can be achieved via the following identity:
$\text{HSIC}(p_{xy},\mathcal{F},\mathcal{G})=\mathbf{E}_{x,x',y,y'}[k(x,x')l(y,y')]+\mathbf{E}_{x,x'}[k(x,x')]\mathbf{E}_{y,y'}[l(y,y')]-2\mathbf{E}_{x,y}[\mathbf{E}_{x'}[k(x,x')]\mathbf{E}_{y'}[l(y,y')]]$

Because the data is random, the kernels are random so we use expected values.
Following is the proof of this theorem. However, the reader may escape this proof and keep track of the rest of the article without losing the main idea of HSIC.

### Proof

First we need to introduce some concepts:

#### Mean

Mean elements of $\mathcal{F}$ and $\mathcal{G}$ are defined as those elements of these spaces for which:

$\langle\mu_x,f \rangle_{\mathcal{F}}=\mathbf{E}_x[\langle\phi(x),f \rangle_{\mathcal{F}}]=\mathbf{E}_x[f(x)]$
$\langle\mu_y,g \rangle_{\mathcal{G}}=\mathbf{E}_y[\langle\psi(y),g \rangle_{\mathcal{G}}]=\mathbf{E}_y[g(x)]$
Note that according to Reisz representation theorem this means always uniquely exists. One may simply show that $\|\mu_x\|^2_{\mathcal{F}}$ can be calculated by applying expectation twice as follows:
$\|\mu_x\|^2_{\mathcal{F}}=\mathbf{E}_{x,x'}[\langle \phi(x),\phi(x')\rangle_{\mathcal{F}}]=\mathbf{E}_{x,x'}[k(x,x')]$

#### Tensor Product Operator

We may employ any $f\in \mathcal{F}$ and $g\in \mathcal{G}$ to define a tensor product operator $f\otimes g:\mathcal{G}\rightarrow\mathcal{F}$ as follows:
$(f\otimes g)h:=f\langle g,h\rangle_{\mathcal{G}} \quad$ for all $h\in\mathcal{G}$

#### Hilbert-Schmidt operators

A Hilbert-Schmidt (HS) operator is a linear operator $C:\mathcal{G}\rightarrow\mathcal{F}$ if its HS norm exists. We may define an inner product between two HS operator as follows:
$\langle C,D\rangle_{HS}:=\sum_{i,j}{\langle Cv_i,u_i\rangle_{\mathcal{F}}\langle Dv_i,u_i\rangle_{\mathcal{F}}}$
We may simply proof the following lemma for inner product of two tensor product operators:
Lemma: For any $f_1,f_2\in \mathcal{F}$ and $g_1,g_2 \in \mathcal{G}$ the following equation holds:
$\langle f_1\otimes g_1,f_2\otimes g_2\rangle_{HS}=\langle f_1,f_2\rangle_F\langle g_1,g_2\rangle_G$

Using this lemma, one can simply show the norm of $f\otimes g$ equals
$\|f\otimes g\|^2_{HS}=\|f\|^2_{\mathcal{F}}\; \|g\|^2_{\mathcal{G}}$

#### Cross-covariance Operator

The cross-covariance operator, introduced above, may be equivalently expressed as follows:
$C_{xy}:=\underbrace{\mathbf{E}_{x,y}[\phi(x)\otimes\psi(y)]}_{:=\tilde{C}_{xy}}-\underbrace{\mu_x\otimes\mu_y}_{:=M_{xy}}$
This expression comes from the linearity of expectation. Auxiliary variables $\tilde{C}_{xy}$ and $\,\!M_{xy}$ will be used as the basis of our measure of dependence.

#### Body of the proof

Expanding $\,\!C_{xy}$ using the above formula, we have:
$\|C_{xy}\|^2_{HS}=\langle \tilde{C}_{xy}-M_{xy},\tilde{C}_{xy}-M_{xy}\rangle_{HS}=\mathbf{E}_{x,y,x',y'}[\langle \phi(x)\otimes\psi(y),\phi(x')\otimes\psi(y')\rangle_{HS}]$
$-2\mathbf{E}_{x,y}[\langle \mu_x\otimes\mu_y,\phi(x')\otimes\psi(y')\rangle_{HS}]+\langle \mu_x\otimes\mu_y,\mu_x\otimes\mu_y\rangle_{HS}$
applying the above lemma and using definitions of $\,\!\mu_x$ and $\,\!\mu_y$ and the fact that $\langle \phi(x)\phi(x')\rangle_F=k(x,x')$, we arrive at the kernel representation of HSIC.

## Independence Test using HSIC

In the previous section, we saw that if two RKHS (containing all continuous real-valued functions on $\mathcal{X}$) are given along with an inner product defined on their elements, we may use their corresponding kernels to evaluate the HSIC. In particular, if the HSIC obtained from kernel representation equals zero we may make sure that the underlying random variables are independent. In this section, we address another question: If two kernel functions are already given, can we use the HSIC given in terms of kernel functions to decide weather the underlying random variables are independent.
The answer to this question is not hard. As we mentioned in the "Basic concepts" sections each kernel of the form $\mathcal{X}\times \mathcal{X} \rightarrow \mathbb{R}$ has a one-to-one correspondense with a RKHS. Based on this all we need from the applied kernel is that the RKHS corresponding to it must contain (almost) all continuous real-valued functions on $\mathcal{X}$. That is, in fact, the concept of a universal kernel. For more details see this<ref> A. Gretton, A. Smola, O. Bousquet, R. Herbrich, A. Belitski, M. Augath, Y. Murayama, J. Pauls, B. Sch¨olkopf, and N. Logothetis, Kernel constrained covariance for dependence measurement, AISTATS, vol. 10, 2005.</ref>. Now we present a theorem indicating this fact via an exact mathematical framework:

Theorem: Denote by $\mathcal{F}$, $\mathcal{G}$ RKHSs with universal kernels $\,\!k$, $\,\!l$ on the compact domains $\mathcal{X}$ and $\mathcal{Y}$ respectively. We assume without loss of generality that $\|f\|_{\infty}\leq 1$ and $\|g\|_{\infty}\leq 1$ for all $f \in \mathcal{F}$ and $g \in \mathcal{G}$. Then $\|C_{xy}\|_{HS} =0$ if and only if $\,\!x$ and $\,\!y$ are independent.

## Empirical Criterion

### Definition (Empirical HSIC)

Let $Z:=\{(x_1,y_1),\cdots,(x_m,y_m)\}\subseteq \mathcal{X}\times\mathcal{Y}$ be a series of $\,\!m$ independent observations drawn from $p_{x\,\!y}$. An estimator of HSIC, is given by
$\text{HSIC}(Z,\mathcal{F},\mathcal{G}):=(m-1)^{-2}\textbf{tr}(KHLH)$
where $H, K, L\in\mathbb{R}^{m\times m}, K_{ij}:=k(x_i,x_j), L_{ij}:=l(y_i,y_j) \,\, \text{and} \, \, H_{ij}:=\delta_{ij}-m^{-1}$.
Based on this result, to maximize the dependence between two kernels we need to increase the value of the empirical estimate, i.e., $\,\!\textbf{tr}(KHLH)$. We will see some applications of this formulation in the application section.
It is interesting to note that if one of the kernels $\,\!K$ or $\,\!L$ is already centered, say $\,L$, then $\,HLH=L$ and thus we may simply use the objective function $\,\!\textbf{tr}(KL)$ which no longer includes the centering matrix $\,H$. Similarly, if $\,HKH=K$ we may rewrite $\,\text{Tr}[KHLH]=\text{Tr}[HKHL]$ and arrive at the same result.

## Bias of Estimator

It may bee shown that the bias of the above empirical estimation is of the order $\,\!O(m^{-1})$:
Theorem: Let $\mathbf{E}_Z$ denote the expectation taken over $\,\!m$ independent copies $\,\!(x_i,y_i)$ drawn from $p_{\,\!xy}$. Then
$\text{HSIC}(p_{xy},\mathcal{F},\mathcal{G})=\mathbf{E}_Z[\text{HSIC}(Z,\mathcal{F},\mathcal{G})]+O(m^{-1})$.

## Bound on Empirical HSIC

Theorem: Assume that $\,\!k$ and $\,\!l$ are bounded almost everywhere by 1, and are non-negative. Then for $\,\!m\gt 1$ and all $\,\!\delta\gt 0$, with probablity at least $\,\!1-\delta$, for all $\,\!p_{xy}$ :
$|\text{HSIC}(p_{xy},\mathcal{F},\mathcal{G})-\text{HSIC}(Z,\mathcal{F},\mathcal{G})|\leq\sqrt{\frac{log(6/\delta)}{\alpha^2m}}+\frac{C}{m}$
where $\,\!\alpha\gt 0.24$ and $\,\!C$ are constants.

## Efficient computation in HSIC

Computational cost is a factor in choosing HSIC. Using a low rank decomposition of the Gram matrices via an incomplete Choleskey decomposition results a cost saving according to the following lemma:
Lemma 2 (Efficinet approximation to HSIC): Let $K\approx AA^T \, and \, L \approx BB^T, \, where \, A\in R^{m*d_f} \, and \, B\in R^{m*d_g}$. then we may approximate $tr(HKHL) \, in \, o(m({d_f}^2+{d_g}^2))$ time.

## Applications

### Colored Maximum Variance Unfolding (Colored MVU)

In the original version of the MVU, a kernel $\,K$ is learned via maximizing $\,\text{Tr}[K]$ subject to some constraints. Now assume we have some similarity/dissimilarity relationships between data points stored in matrix $B$. We may modify the original form of MVU by maximizing $\,\text{Tr}[KB]$ instead of $\,\text{Tr}[K]$ subject to the same constraints. In this way, while keeping the pairwise distances between data points (as in the original form of MVU) we simultaneously maximize the dependence between the learned kernel $\,\!K$ and kernel $\,\!B$ storing our side information. Note that, in this formulation, we centeralize matrix $\,\!K$ via one of the consraines in the problem and thus can exclude matrix $\,\!H$ in empirical estimation of HSIC.

### Principle Components Analysis (PCA)

As known, in the PCA formulation $X\approx WH$, matrix $\,\!H$ may be thought of as a low dimentional representation of $\,\!X$. The objective function in PCA may be written as follows:
$\max_H \,\text{Tr}[HX^TXH^T]=\text{Tr}[(X^TX)(H^TH)]\,\,$ subject to $\,HH^T=I$.
As marked in the right side of the equation above, this expression may be interpreted as finding matrix $\,\!H$ such that the linear kernel obtained from that has maximum dependence with the kernel obtained from the original data matrix $\,\!X$. Note that here we again assume that the data matrix $\,\!X$ is already centralized and thus we do not need to include matrix $\,\!H$ in our HSIC estimate.

### Non-negative matrix factorization (NMF)

NMF with orthognal constraint on H may be expressed as $\,\! \max_{H\gt =0} Tr((X^{T}X)(H^{T}H))$

## Related work

One of the methods to find dependence between functions in RKHS, as proposed by Gretton et al ,the constarined covariance (COCO) was to use the largest singular value of the cross-covariance operator, which behaves identically to the correlation operator at independence and no regularization is required.
In this paper, the concept of COCO is extended by using the entire spectrum of the cross-covariance operator to determine when all its singular values are zero, rather than looking only at the largest singular value.

### More detiled explanation

The above theorem shows that correlation can be used to study independence. In other words, for two random variables $X \,$ and $Y \,$, the functional correlation operator (the word functional here refers to the fact that the correlation is computed between a function of X and a function of Y, instead of between X and Y) sheds light on whether $X \,$ and $Y \,$ are independent (or how independent they are). Similarly, the functional cross-covariance operator also gives us information about the degree of dependence between $X \,$ and $Y \,$.

Below are some examples of how the functional correlation operator and the functional cross-covariance operator used as a statistics to test independence. For easier reading we will omit the word functional in the following examples; readers should keep in mind that the operators indeed act on functions of the random variables.

#### Kernel Canonical Correlation(KCC)

In this approach, a regularized correlation operator is derived from the covariance operator of $X \,$, the covariance operator of $Y \,$ and the cross-covariance operator between $X \,$ and $Y \,$.

#### Constrained Covariance (COCO)

In this approach, the largest singular value of the cross-covariance operator is used to test independence. Compared to KCC, this method has the advantage that no regularization is needed.

#### This paper (HSIC)

The paper is indeed an extension of COCO, in the sense that the paper looks at the entire spectrum of the cross-covariance operator to determine whether all its singular values are zero, instead of looking at only the largest singular value, which is what COCO does. It is thus intuitively obvious that a more robust indication of independence than COCO can be obtained. More specifically, the measure of independence is the sum of the squared singular values of the cross-covariance operator(its squared Hilbert-Schmidt norm), which the authors termed HSIC(Hilbert Schmidt Independence Criterion).

## Kernel Canonical Correlation Analysis (CCA)

In Classical CCA linear mapping $a^{T}X$ and $b^{T}Y$ are obtained, respectively for random variables $X$ and $Y$, such that the linear projections have maximum correlation.
Kernel CCA extends this method to estimate functions $f\in \mathcal{F}$ and $g\in \mathcal{G}$ such that the correlation of $f(X)$ and $g(Y)$ is maximized.
to find $f$ and $g$ the following optimization problem must be solved:

$max_{(f \in \mathcal{F} , g \in \mathcal{G})(f \neq 0 , g \neq 0)} \frac{Cov(f(x),g(Y))}{(Var(f(X))_{1/2} (Var(g(y))_{1/2}}$

For finite independent sample ${(X_{1},Y_{1}),(X_{2},Y_{2}),...,(X_{n},Y_{n})}$ estimators for functions $f$ and $g$ can be obtained by optimizing the empirical version of the optimization problem:

$max_{(f \in \mathcal{F} , g \in \mathcal{G})(f \neq 0 , g \neq 0)} \frac{\widehat{Cov}(f(x),g(Y))}{(\widehat{Var}(f(X)+\epsilon_{n}||f||_{\mathcal{F}}^{2})_{1/2} (\widehat{Var}(g(y)+\epsilon_{n}||g||_{\mathcal{G}}^{2})_{1/2}}$

for which:

$\widehat{Cov}(f(x),g(Y))= \frac {1}{n} \sum_{i=1}^{n} \left( f(X_{i})- \sum_{j=1}^{n}f(X_{j}) \right) \left( g(Y_{i})- \sum_{j=1}^{n}g(Y_{j}) \right)$
$\widehat{Var}(f(X))= \frac {1}{n} \sum_{i=1}^{n} \left( f(X_{i})- \sum_{j=1}^{n}f(X_{j}) \right)^{2}$ $\widehat{Var}(g(Y))= \frac {1}{n} \sum_{i=1}^{n} \left( g(Y_{i})- \sum_{j=1}^{n}g(Y_{j}) \right)^{2}$

## Representation of Kernel CCA by Cross-Covariance Operator

Optimization problem for kernel CCA can be formulated using Cross-Covariance Operator for $(X,Y)$

$Sup_{(f \in \mathcal{F} , g \in \mathcal{G})} \langle g,\Sigma_{XY} f \rangle_{\mathcal{G}}$ subject to $\langle f,\Sigma_{XX} f \rangle_{\mathcal{F}}=1$ and $\langle g,\Sigma_{YY} g \rangle_{\mathcal{G}}=1$

Solution of this problem is the eigenfunction of the largest eigenvalue of the following eigenproblem

$\Sigma_{YX} f = \rho_{1} \Sigma_{YY} g$

$\Sigma_{YX} g = \rho_{1} \Sigma_{XX} f$

<references/>