covariance_p
Population covariance.
Syntax
Section titled “Syntax”v = covariance_p(array1, array2)Description
Section titled “Description”Returns the population covariance — uses n denominator instead of n-1. Equivalent to Excel’s COVARIANCE.P.
Example
Section titled “Example”covariance_p([1 2 3 4], [4 3 2 1]) % -1.25See also
Section titled “See also”covariance_s— Sample covariance.pearson— Pearson product-moment correlation coefficient.