Skip to content

null-none/correlation-pearson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Pearson product-moment correlation coefficient. About algorithm https://en.wikipedia.org/wiki/Pearson_product-moment_correlation_coefficient

Install

pip install correlation-pearson

Example

from correlation_pearson.code import CorrelationPearson

dmitry = [1, 2, 3, 5, 7, 8]

joseph = [1, 3, 4, 5, 7, 9]

correlation = CorrelationPearson()

print correlation.result(dmitry, joseph)

0.981460802132

About

Pearson product-moment correlation coefficient

Resources

Stars

Watchers

Forks

Languages