PHPackages                             kaydansky/correlation-coefficient - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. kaydansky/correlation-coefficient

ActiveLibrary

kaydansky/correlation-coefficient
=================================

A numerical measure of some type of correlation, meaning a statistical relationship between two variables.

v1.0(6y ago)42.9k↓100%MITPHPPHP &gt;=7.4.0

Since Jan 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kaydansky/correlation-coefficient)[ Packagist](https://packagist.org/packages/kaydansky/correlation-coefficient)[ Docs](https://github.com/kaydansky/correlation-coefficient)[ RSS](/packages/kaydansky-correlation-coefficient/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Correlation Coefficient Calculation
===================================

[](#correlation-coefficient-calculation)

A **correlation coefficient** is a numerical measure of some type of correlation, meaning a statistical relationship between two variables.

A statistic used to show how the scores from one measure relate to scores on a second measure for the same group of individuals. A high value (approaching +1.00) is a strong direct relationship, a low negative value (approaching -1.00) is a strong inverse relationship, and values near 0.00 indicate little, if any, relationship.

[Learn more](https://en.wikipedia.org/wiki/Correlation_coefficient)

Features
--------

[](#features)

Two types of correlation coefficient are implemented currently:

- [Pearson](https://en.wikipedia.org/wiki/Pearson_correlation_coefficient)
- [Spearman](https://en.wikipedia.org/wiki/Spearman%27s_rank_correlation_coefficient)

Unlimited instance number of every type's object.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4.0

Installation
------------

[](#installation)

```
$ composer require kaydansky/correlation-coefficient

```

Basic Usage
-----------

[](#basic-usage)

```
