array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.stats-stat-correlation.php', 1 => 'stats_stat_correlation', 2 => 'Returns the Pearson correlation coefficient of two data sets', ), 'up' => array ( 0 => 'ref.stats.php', 1 => 'Statistic Функції', ), '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', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

stats_stat_correlation

(PECL stats >= 1.0.0)

stats_stat_correlationReturns the Pearson correlation coefficient of two data sets

Опис

function stats_stat_correlation(array $arr1, array $arr2): float

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.