Pearson correlation coefficient
Pearson correlation coefficient is a statistical measure of the strength and direction of the linear relationship between two variables. It is commonly used in statistics, economics, finance, and other quantitative fields.
The Pearson correlation coefficient is commonly denoted by for a sample and for a population.
Its value ranges from −1 to +1:
A value close to +1 indicates a strong positive linear relationship, a value close to −1 indicates a strong negative linear relationship, and a value close to 0 indicates a weak or absent linear relationship.
Formula
For a sample of paired observations, the Pearson correlation coefficient is:
where:
- = observation of variable ;
- = observation of variable ;
- = sample mean of ;
- = sample mean of ;
- = number of paired observations.
Covariance formulation
The Pearson correlation coefficient can also be expressed using covariance and standard deviations:
For sample data:
where:
- = sample covariance;
- = sample standard deviation of ;
- = sample standard deviation of .
This standardization makes correlation dimensionless and restricts its value to the interval from −1 to +1.
Interpretation
A positive Pearson correlation indicates that the two variables tend to increase or decrease together.
A negative Pearson correlation indicates that one variable tends to increase when the other decreases.
A value near zero indicates little or no linear association:
The sign indicates the direction of the linear relationship, while the absolute value indicates its strength.
Perfect correlation
A Pearson correlation of +1 represents a perfect positive linear relationship:
A Pearson correlation of −1 represents a perfect negative linear relationship:
A perfect positive relationship can be represented as:
A perfect negative relationship can be represented as:
Zero correlation
A Pearson correlation of zero indicates that there is no linear correlation between the variables:
However, zero Pearson correlation does not necessarily imply that the variables are independent. A nonlinear relationship may exist even when the Pearson correlation is zero.
Pearson correlation in finance
In finance, the Pearson correlation coefficient is commonly used to measure the relationship between the returns of two assets.
For two asset returns, it can be written as:
where:
- = return of asset ;
- = return of asset ;
- = standard deviation of asset 's returns;
- = standard deviation of asset 's returns.
Correlation is an important input in portfolio risk analysis because the correlation between assets affects the volatility of a combined portfolio.
Portfolio application
For a two-asset portfolio, portfolio variance can be expressed as:
where:
- = portfolio weights;
- = standard deviations of the assets;
- = Pearson correlation between the asset returns;
- = portfolio variance.
A lower correlation between assets can provide greater potential diversification benefits, subject to the assets' weights and individual volatilities.
Correlation and regression
The Pearson correlation coefficient is closely related to linear regression.
A simple linear regression can be represented as:
The correlation coefficient measures the strength and direction of the linear association between and , whereas regression additionally estimates the relationship between the variables through parameters such as the slope and intercept.
For a simple linear regression, the coefficient of determination is related to Pearson correlation by:
where represents the proportion of variation in the dependent variable explained by the linear model in the simple-regression setting.
Correlation does not imply causation
A Pearson correlation measures statistical association and does not establish a causal relationship.
A high correlation between two variables may arise because:
- one variable influences the other;
- both variables are influenced by another factor;
- the relationship is coincidental;
- the variables share a common trend.
Therefore:
Limitations
The Pearson correlation coefficient has several limitations:
- it measures linear association;
- it can be sensitive to outliers;
- it does not establish causation;
- historical correlations may change over time;
- it may be misleading when variables have strong nonlinear relationships;
- correlation does not measure the magnitude of individual price or return movements.
In financial markets, correlations can also change significantly during periods of market stress.