| Financial Toolbox | Search  Help Desk |
| corr2cov | Examples See Also |
Convert standard deviation and correlation to covariance.
Syntax
ExpCovariance = corr2cov(ExpSigma, ExpCorrC)
Arguments
Description
corr2cov
converts standard deviation and correlation to covariance.
ExpCovariance is an N-by-N covariance matrix, where N is the number of processes.
ExpCov(i,j) = ExpCorrC(i,j)*(ExpSigma(i)*ExpSigma(j)
Example
ExpSigma = [0.5 2.0];
ExpCorrC = [1.0 -0.5
-0.5 1.0];
[ExpCovariance] = corr2cov(ExpSigma, ExpCorrC)
Expected results:
ExpCovariance =
0.25 -0.5
-0.5 4.0
See Also
corrcoef, cov, cov2corr, ewstats, std