Correlation

Measure the strength and direction of a linear relationship.

Definition

Correlation analysis quantifies the relationship between two continuous variables. Pearson's correlation measures a linear relationship, while Spearman's is suitable for ordinal or non-normal data.

When to use it

Requirements

What StatsLab computes

Worked example

Context : Relationship between hours of sleep and attention score in 60 students.

Result : r = 0.54, 95% CI [0.33; 0.70], p < 0.001

Interpretation : Moderate to strong positive correlation. The more students sleep, the better their attention score. The relationship is statistically significant.

Run this analysis