Introduction
Correlation analysis is the group of methods used to measure how strongly two variables are associated, and in which direction they change together. It is widely used in social medicine and epidemiology to describe relationships such as income and life expectancy, or body mass index and blood pressure, before any causal conclusion is considered.
Basic idea of association
Two variables are correlated when knowing the value of one gives information about the value of the other. The association may be:
- Positive: both variables tend to increase together.
- Negative: one variable tends to increase as the other decreases.
- None: no consistent pattern, with a coefficient close to zero.
Correlation measures association, not cause. It also captures only the direction and strength of the relationship, so a strong curved (non-linear) relationship can still produce a coefficient close to zero.
Pearson correlation coefficient
The Pearson correlation coefficient (r) measures the strength and direction of a linear relationship between two continuous variables measured on an interval or ratio scale. It equals the covariance of the two variables divided by the product of their standard deviations:
- r ranges from -1 to +1: +1 is a perfect positive linear relationship, -1 a perfect negative one, and 0 means no linear relationship.
- r is unitless, so it does not change when measurement units are altered.
- r is symmetric: the correlation of X with Y equals that of Y with X.
- Assumptions: paired observations, a roughly linear relationship, approximately normal distributions for valid inference, and no strong outliers that drive the result.
A commonly used rough guide to the strength of the coefficient (absolute value) is:
These cut-offs are conventions, not laws; in clinical or social data, an r of 0.3 may be important, and the description must always be read against the context and the sample size.