WLJS LogoWLJS Notebook

CorrelationDistance

CorrelationDistance[u, v] gives the correlation coefficient distance between vectors u and v.

Examples

Compute correlation distance:

CorrelationDistance[{1, 2, 3}, {4, 5, 6}]
(* 0 *)

Uncorrelated vectors:

CorrelationDistance[{1, 0, -1}, {1, 2, 1}]
(* 1 *)

Please visit the official Wolfram Language Reference for more details.

On this page