Pearson correlation coefficient

Revision as of 12:49, 20 August 2026 by WikiSysopIG (talk | contribs) (Created page with "'''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 <math>r</math> for a sample and <math>\rho</math> for a population. Its value ranges from −1 to +1: <math> -1\leq r\leq1 </math> A value close to +1 indicates a strong positive...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 r for a sample and ρ for a population.

Its value ranges from −1 to +1:

−1≤r≤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 n paired observations, the Pearson correlation coefficient is:

rXY=∑i=1n(xi−x¯)(yi−y¯)∑i=1n(xi−x¯)2∑i=1n(yi−y¯)2

where:

  • xi = observation i of variable X;
  • yi = observation i of variable Y;
  • x¯ = sample mean of X;
  • y¯ = sample mean of Y;
  • n = number of paired observations.

Covariance formulation

The Pearson correlation coefficient can also be expressed using covariance and standard deviations:

ρXY=Cov⁡(X,Y)σXσY

For sample data:

rXY=sXYsXsY

where:

  • sXY = sample covariance;
  • sX = sample standard deviation of X;
  • sY = sample standard deviation of Y.

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.

rXY>0

A negative Pearson correlation indicates that one variable tends to increase when the other decreases.

rXY<0

A value near zero indicates little or no linear association:

rXY≈0

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:

rXY=1

A Pearson correlation of −1 represents a perfect negative linear relationship:

rXY=−1

A perfect positive relationship can be represented as:

Y=a+bX,b>0

A perfect negative relationship can be represented as:

Y=a+bX,b<0

Zero correlation

A Pearson correlation of zero indicates that there is no linear correlation between the variables:

rXY=0

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:

ρij=Cov⁡(Ri,Rj)σiσj

where:

  • Ri = return of asset i;
  • Rj = return of asset j;
  • σi = standard deviation of asset i's returns;
  • σj = standard deviation of asset j'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:

σp2=w12σ12+w22σ22+2w1w2σ1σ2ρ12

where:

  • w1,w2 = portfolio weights;
  • σ1,σ2 = standard deviations of the assets;
  • ρ12 = Pearson correlation between the asset returns;
  • σp2 = 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:

Y=α+βX+ϵ

The correlation coefficient measures the strength and direction of the linear association between X and Y, 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:

R2=r2

where R2 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:

Correlation≠Causation

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.

See also