Financial Toolbox    
corr2cov

Convert standard deviation and correlation to covariance

Syntax

Arguments

ExpSigma
Vector of length n with the standard deviations of each process. n is the number of random processes.
ExpCorrC
(Optional) n-by-n correlation coefficient matrix. If ExpCorrC is not specified, the processes are assumed to be uncorrelated, and the identity matrix is used.

Description

corr2cov converts standard deviation and correlation to covariance.

ExpCovariance is an n-by-n covariance matrix, where n is the number of processes.

Examples

Expected results:

See Also

corrcoef, cov, cov2corr, ewstats, std


  cftimes cov2corr