(PECL stats >= 1.0.0)
stats_covariance — Computes the covariance of two data sets
$a, array $b): float
Returns the covariance of a and b.
aThe first array
bThe second array
Returns the covariance of a and b,
or false on failure.