https://github.com/null-none/correlation-pearson
Pearson product-moment correlation coefficient
https://github.com/null-none/correlation-pearson
Last synced: about 1 year ago
JSON representation
Pearson product-moment correlation coefficient
- Host: GitHub
- URL: https://github.com/null-none/correlation-pearson
- Owner: null-none
- Created: 2016-12-11T20:57:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-11T21:07:26.000Z (over 9 years ago)
- Last Synced: 2025-03-27T21:12:00.012Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Pearson product-moment correlation coefficient. About algorithm https://en.wikipedia.org/wiki/Pearson_product-moment_correlation_coefficient
=======
Install
=======
.. code-block:: bash
pip install correlation-pearson
=======
Example
=======
.. code-block:: python
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