How to create covariance matrix when correlation matrix and stddevs are is given

143 Views Asked by At

I have the correlation matrix and standard deviations are given and I want to create the covariance matrix.

I can do it programmatically but I want a linear algebraic way...

Thanks in advance

1

There are 1 best solutions below

0
On

If the elementwise or Hadamard product, which I'll write as $\circ$, is a linear algebraic operation for you, then $C=(\sigma \sigma^T) \circ \Sigma$ where $C$ is the covariance matrix, $\sigma$ is the column vector of standard deviations, and $\Sigma$ is the correlation matrix.

In Matlab syntax:

C=(sigma*sigma').*Sigma