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
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
Copyright © 2021 JogjaFile Inc.
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: