Skip to main content

NTCOV2COR

Converts covariance matrix to standard deviation vector and correlation matrix

Syntax

NTCOV2COR(
covariance_matrix,
calc_stdev_vector
)

Parameters

  • Covariance matrix is a covariance matrix.
  • Calc stdev vector is a logical value that determines standard deviations of each variables are computed or not.

Example

  • The example may be easier to understand if you copy it to a blank worksheet
How to copy an example
  1. Create a blank workbook or worksheet.

  2. Select the example in the Help topic.

    Note  Do not select the row or column headers.

    Selecting an example from Help

    Selecting an example from Help

  3. Press CTRL+C.

  4. In the worksheet, select cell A1, and press CTRL+V.

  5. To switch between viewing the results and viewing the formulas that return the results, press CTRL+` (grave accent), or on the Tools menu, point to Formula Auditing, and then click Formula Auditing Mode.

ABCD
1DataDataDataDescription
20.92.1-0.65cov. matrix
32.10.591.2cov. matrix
4-0.651.21.1cov. matrix
5FormulaDescription (Result)
6=NTCOV2COR(A2:C4,FALSE)Correlation matrix for the terms above (3 x 3 array)

Note The formula in the example must be entered as an array formula. After copying the example to a blank worksheet, select the range A6:C8 starting with the formula cell. Press F2, and then press CTRL+SHIFT+ENTER.

Example2. standard deviation vector and correlation matrix

ABCD
1DataDataDataDescription
20.92.1-0.65cov. matrix
32.10.591.2cov. matrix
4-0.651.21.1cov. matrix
5FormulaDescription (Result)
6=NTCOV2COR(A2:C4,TRUE)Standard deviation vector (A6:C6) and correlation matrix (A7:C9) for the terms above

Note The formula in the example must be entered as an array formula. After copying the example to a blank worksheet, select the range A6:C9 starting with the formula cell. Press F2, and then press CTRL+SHIFT+ENTER.

See also