For
random vectors \mathbf{X} and \mathbf{Y}, each containing
random elements whose
expected value and
variance exist, the
cross-covariance matrix of \mathbf{X} and \mathbf{Y} is defined by {{Equation box 1 where \mathbf{\mu_X} = \operatorname{E}[\mathbf{X}] and \mathbf{\mu_Y} = \operatorname{E}[\mathbf{Y}] are vectors containing the expected values of \mathbf{X} and \mathbf{Y}. The vectors \mathbf{X} and \mathbf{Y} need not have the same dimension, and either might be a scalar value. The cross-covariance matrix is the matrix whose (i,j) entry is the
covariance :\operatorname{K}_{X_i Y_j} = \operatorname{cov}[X_i, Y_j] = \operatorname{E}[(X_i - \operatorname{E}[X_i])(Y_j - \operatorname{E}[Y_j])] between the
i-th element of \mathbf{X} and the
j-th element of \mathbf{Y}. This gives the following component-wise definition of the cross-covariance matrix. : \operatorname{K}_{\mathbf{X}\mathbf{Y}}= \begin{bmatrix} \mathrm{E}[(X_1 - \operatorname{E}[X_1])(Y_1 - \operatorname{E}[Y_1])] & \mathrm{E}[(X_1 - \operatorname{E}[X_1])(Y_2 - \operatorname{E}[Y_2])] & \cdots & \mathrm{E}[(X_1 - \operatorname{E}[X_1])(Y_n - \operatorname{E}[Y_n])] \\ \\ \mathrm{E}[(X_2 - \operatorname{E}[X_2])(Y_1 - \operatorname{E}[Y_1])] & \mathrm{E}[(X_2 - \operatorname{E}[X_2])(Y_2 - \operatorname{E}[Y_2])] & \cdots & \mathrm{E}[(X_2 - \operatorname{E}[X_2])(Y_n - \operatorname{E}[Y_n])] \\ \\ \vdots & \vdots & \ddots & \vdots \\ \\ \mathrm{E}[(X_m - \operatorname{E}[X_m])(Y_1 - \operatorname{E}[Y_1])] & \mathrm{E}[(X_m - \operatorname{E}[X_m])(Y_2 - \operatorname{E}[Y_2])] & \cdots & \mathrm{E}[(X_m - \operatorname{E}[X_m])(Y_n - \operatorname{E}[Y_n])] \end{bmatrix} ==Example==