Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

robotomize/correlation-rank-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pearson correlation rank

In statistics, the Pearson correlation coefficient (PCC, pronounced /ˈpɪərsən/), also referred to as the Pearson's r, Pearson product-moment correlation coefficient (PPMCC) or bivariate correlation, is a measure of the linear correlation between two variables X and Y. It has a value between +1 and −1, where 1 is total positive linear correlation, 0 is no linear correlation, and −1 is total negative linear correlation. It is widely used in the sciences. It was developed by Karl Pearson from a related idea introduced by Francis Galton in the 1880s.

Pic1

Description

This is my implementation of the package to calculate the Pearson correlation coefficient.

Requirements

  • composer
  • = php7.0

Install

composer require robotomize/correlation-rank

or

git clone https://github.com/robotomize/correlation-rank-php.git 

Use

For a sample

The first value is the correlation coefficient and the second coefficient of determination.

Sample using correlation-rank

php example
0.7949559026877182
0.6319548872180449

About

This is a simple implementation of the package to calculate correlation coefficient

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages