10
$\begingroup$

I'm generating random multivariate normal data using the rmultnorm() function in R, which allows users to specify a vector of $k$ population means and a $k \times k$ variance-covariance matrix.

Given $\newcommand{\Var}{\mathrm{Var}}\Var(X)$, and $\Var(Y)$, what are the boundaries for the values of $\newcommand{\Cov}{\mathrm{Cov}}\Cov(X, Y)$ I can select for the variance-covariance matrix?

Does it make sense to use the property:

\begin{align}\Var(X) + \Var(Y) = \Var(X+Y) - 2\Cov(X,Y)\end{align}

and the Pearson correlation coefficient equation:

\begin{align}-1 \leq \frac{\Cov(X,Y)}{\sqrt{\Var(X)\Var(Y)}} \leq 1 \end{align}

to set upper/lower bounds on $\Cov(X,Y)$?

$\endgroup$
1
  • 2
    $\begingroup$ Multiply your second inequality by the denominator. Those are your bounds if you only have two variables. If you have k>2, you need the covariance matrix to be positive definite to generate like that (unless it's written especially cleverly, in which case it can be positive semidefinite). There are a variety of ways to get a positive semidefinite matrix; one common way is via working with its choleski decomposition. $\endgroup$
    – Glen_b
    Dec 8, 2012 at 0:43

2 Answers 2

10
$\begingroup$

For a single covariance you only need the bottom equation. The bounds are that the covariance cannot be greater than the product of the standard deviations (and cannot be less than the negative of the same value). However for a covariance matrix of more than 2 terms there is an additional limit, the matrix has to be positive semi-definite (or positive definite in some cases). This eliminates cases like X and Y are strongly positively correlated and X and Z are strongly possitively correlated, but Y and Z are strongly negatively correlated (this does not work in the real world, but could still fit the pairwise bounds). One way to check this is that if all the eigen values are positive then it is postive definite and if the eigen values are all non-negative then it is positive semi-definite.

$\endgroup$
1
  • $\begingroup$ Cool, thanks Greg - I'll run the eigen() function to make sure my variance-covariance matrices don't violate the positive-definite limit. $\endgroup$
    – RobertF
    Dec 7, 2012 at 22:17
4
$\begingroup$

In the multivariate case, you can use what is called the multivariate Cauchy-Schwarz inequality: $$ \newcommand{\Var}{Var} \newcommand{\Cov}{Cov} \Var(z) \ge \Cov(z,y) \Var(y)^{-1} \Cov(y,z) $$ Where here the inequality sign must be interpreted in the sense of the partial order on the cone of positive-definite matrices: $A \le B$ means that $B-A$ is positive definite.

$\endgroup$
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.