| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Financial Toolbox |
| Contents | Index |
| Learn more about Financial Toolbox |
[ExpSigma, ExpCorrC] = cov2corr(ExpCovariance)
ExpCovariance | n-by-n covariance matrix; for example, from cov or ewstats. n is the number of random processes. |
[ExpSigma, ExpCorrC] = cov2corr(ExpCovariance) converts covariance to standard deviations and correlation coefficients.
ExpSigma is a 1-by-n vector with the standard deviation of each process.
ExpCorrC is an n-by-n matrix of correlation coefficients.
ExpSigma(i) = sqrt(ExpCovariance(i,i)) ExpCorrC(i,j) = ExpCovariance(i,j)/(ExpSigma(i)*ExpSigma(j))
ExpCovariance = [0.25 -0.5
-0.5 4.0];
[ExpSigma, ExpCorrC] = cov2corr(ExpCovariance)
Expected results:
ExpSigma =
0.5000 2.0000
ExpCorrC =
1.0000 -0.5000
-0.5000 1.0000
corr2cov, corrcoef, cov, ewstats, std
![]() | cov | cpncount | ![]() |
View demos and recorded presentations led by industry experts.
Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |