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.0.tar.gz (2.9 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.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for correlation_stats_analyzer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c4c820bbdf6ce39570149e3f46a417acc9aa123674e3409fc69f934f19925337
MD5 52f47756c5fac56ebdda5894798f5f08
BLAKE2b-256 e6cc34ad5c5f1ce895282a08351facdd74d0623114d908ae5e3bfad4d53cb693

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for correlation_stats_analyzer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 458827e568207736588a2ab171b667af602a0434192fda08f37bd31a94730c17
MD5 c05f7924b4d1d4f46ee620458412462a
BLAKE2b-256 88f46b4f1ef6cd3e644cf2c049beddfc1b3193589827ee975f6c3c3f5326e210

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