Skip to main content

List.Covariance

Returns the covariance between the two lists of numbers.

Syntax

List.Covariance(
numberList1 as list,
numberList2 as list
) as number

Remarks

Returns the covariance between two lists, numberList1 and numberList2. numberList1 and numberList2 must contain the same number of number values.

Examples

Example #1

Calculate the covariance between two lists.

List.Covariance({1, 2, 3}, {1, 2, 3})

Result:

0.66666666666666607

Category

List.Numerics