QuantomLab

Correlation Coefficient

The correlation coefficient helps you understand how two variables move together. It replaces intuition with a clear statistical signal — positive, negative, or none.

In short: the correlation coefficient measures the strength and direction of the relationship between two variables. On this page: definition, formula, examples, interpretation, common mistakes, real-world use cases and access to a correlation calculator.
Definition Formula Example Interpretation Use cases FAQ

What is the correlation coefficient?

The correlation coefficient measures how strongly two variables are related. It answers a simple but essential question: when one variable changes, does the other tend to change as well?

Correlation is widely used in statistics, finance, data analysis, psychology and economics. It helps identify patterns, relationships and dependencies between variables.

Correlation range:
• +1 → perfect positive relationship
• 0 → no linear relationship
• −1 → perfect negative relationship

Correlation coefficient formula (Pearson)

r = Σ[(x − x̄)(y − ȳ)] / √[Σ(x − x̄)² · Σ(y − ȳ)²]
Where:
• x and y are the variables
• x̄ and ȳ are their means
• r is the correlation coefficient

Simple example

Imagine studying time and exam scores. If students who study more consistently score higher, the correlation will be positive.

Study hours ↑ → Exam scores ↑
Correlation coefficient: r ≈ +0.7

If one increases while the other decreases, correlation becomes negative.

How to interpret correlation correctly

Correlation does not mean causation

Two variables may move together without one causing the other. Correlation highlights relationships, not explanations.

Magnitude matters

Key idea: correlation measures association, not certainty.

Use cases for correlation

Correlation is used whenever you want to understand how variables relate: market prices, user behavior, financial metrics, scientific measurements.

→ Calculate correlation coefficient
Common applications:
• Finance: asset relationships, diversification
• Data analysis: feature relationships
• Science: variable dependency testing
• Psychology: behavioral trends

FAQ – Correlation coefficient

What does a correlation of 0 mean?

It means there is no linear relationship between the variables.

Can correlation be negative?

Yes. A negative correlation means variables move in opposite directions.

Which correlation should I use?

Pearson for linear relationships, Spearman for ranked or non-linear data.

Correlation is a diagnostic tool — not a verdict. Used correctly, it helps you see patterns clearly and avoid misleading intuition.