CorrelationCoefficient 命令

CorrelationCoefficient( <List of x-coordinates>, <List of y-coordinates> )

使用给定的 x - 和 y -坐标。

CorrelationCoefficient({1, 3, 2, 1, 5, 2}, {1, 6, 4, 3, 3, 2}) 得出 0.36 .

CorrelationCoefficient( <List of Points> )

使用给定点的坐标计算积矩相关系数。

CorrelationCoefficient({(1, 1), (3, 6), (2, 4), (1, 3), (5, 3), (2, 2)}) 得出 0.36 .