array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.stats-stat-correlation.php', 1 => 'stats_stat_correlation', ), 'up' => array ( 0 => 'ref.stats.php', 1 => 'Statistic Functions', ), 'prev' => array ( 0 => 'function.stats-stat-binomial-coef.php', 1 => 'stats_stat_binomial_coef', ), 'next' => array ( 0 => 'function.stats-stat-factorial.php', 1 => 'stats_stat_factorial', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/stats/functions/stats-stat-correlation.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL stats >= 1.0.0)
stats_stat_correlation — Returns the Pearson correlation coefficient of two data sets
Returns the Pearson correlation coefficient between arr1
and arr2
.
arr1
The first array
arr2
The second array
Returns the Pearson correlation coefficient between arr1
and arr2
,
or false
on failure.