Skip to main content

A simple tool to compute and interpret Pearson correlation coefficients.

Project description

correlation_stats_analyzer

A lightweight Python package to compute and interpret the strength and direction of correlation between two numerical datasets using the Pearson Correlation Coefficient.


Features

  • Compute the Pearson correlation coefficient between two numeric lists.
  • Interpret the result in terms of strength and direction (e.g., "Strong Positive").
  • Zero dependencies – works with standard Python only.
  • Designed for data science beginners, educators, and small-scale analysis scripts.

Installation

pip install correlation_stats_analyzer

Usage Example

import correlation_stats_analyzer as csa

x = [10, 20, 30, 40, 50]
y = [12, 22, 29, 41, 52]

r = csa.correlation_r(x, y)

strength, direction = csa.interpret_r(r)

print(f"Pearson r: {r:.4f}")
print(f"Strength: {strength}, Direction: {direction}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

correlation_stats_analyzer-0.1.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

correlation_stats_analyzer-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file correlation_stats_analyzer-0.1.1.tar.gz.

File metadata

File hashes

Hashes for correlation_stats_analyzer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f317c7a97b6cbc5012887d2273f25cf9e01e2220e07191aa89e3a148602ce402
MD5 f17d88863c481ee8ecbd110e7bc6d63a
BLAKE2b-256 648dd0653452f6f2317bf73e53e3c2d1dbd886c9971c182eb021c9a332f0a4e0

See more details on using hashes here.

File details

Details for the file correlation_stats_analyzer-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for correlation_stats_analyzer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6966549205fd9955b8ada4a40def0d1b34449b2cced976482ee11c86a5244107
MD5 89489ca2dc31fbf3f5ee5ffeccac8692
BLAKE2b-256 0b274451701597936a023ede29d1840fe20da08a260c06ce598047cf55c1d3ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page