The correlation coefficient is a measure that determines the degree to which two variables' movements are associated. The most common correlation coefficient, generated by the Pearson product-moment correlation, may be used to measure the linear relationship between two variables. However, in a non-linear relationship, this correlation coefficient may not always be a suitable measure of dependence.

The range of values for the correlation coefficient is -1.0 to 1.0. In other words, the values cannot exceed 1.0 or be less than -1.0 whereby a correlation of -1.0 indicates a perfect negative correlation, and a correlation of 1.0 indicates a perfect positive correlation. Anytime the correlation coefficient, denoted as r, is greater than zero, it's a positive relationship. Conversely, anytime the value is less than zero, it's a negative relationship. A value of zero indicates that there is no relationship between the two variables.

In the financial markets, correlation coefficient is used to measure the correlation between two securities. When two stocks, for example, move in the same direction, the correlation coefficient is positive. Conversely, when two stocks move in opposite directions, the correlation coefficient is negative.

* If the correlation coefficient of two variables is zero,* it signifies that there is no linear relationship between the variables. However, this is only for a linear relationship; it is possible that the variables have a strong curvilinear relationship.

* When the value of r is close to zero,* generally between -0.1 and +0.1, the variables are said to have no linear relationship

*or a very weak*linear relationship. For example, suppose the prices of coffee and of computers are observed and found to have a correlation of +.0008; this means that there is no correlation, or relationship, between the two variables.

### Positive Correlation

A positive correlation, when the correlation coefficient (r) is greater than 0, signifies that both variables move in the same direction or are correlated. When r is +1, it signifies that the two variables being compared have a perfect positive relationship; when one variable moves higher or lower, the other variable moves in the same direction with the same magnitude.

The closer the value of r is to +1, the stronger the linear relationship. For example, suppose the value of oil prices are directly related to the prices of airplane tickets, with a correlation coefficient of +0.8. The relationship between oil prices and airfares has a very strong positive correlation since the value is close to +1. So if the price of oil decreases, airfares follow in tandem. If the price of oil increases, so does the prices of airplane tickets.

In the chart below, we compare one of the largest U.S. banks JPMorgan Chase & Co. (JPM) with the Financial Select SPDR ETF (XLF). As you can imagine J.P. Morgan should have a positive correlation to the banking industry as a whole.

We can see the correlation coefficient (bottom of the chart) is currently at .7919, which is close to signaling a strong positive correlation. A reading above .50 typically signals a strong positive correlation.

Understanding the correlation between two stocks or a stock and its industry can help investors gauge how the stock is trading relative to its peers. All types of securities, including bonds, sectors and ETFs can be compared with the correlation coefficient.

### Negative Correlation

A negative correlation occurs when the correlation coefficient (r) is less than 0 and indicates that both variables move in the opposite direction. In short, any reading between 0 and -1 means that the two securities move in opposite directions. When r is -1, the relationship is said to be perfectly negative correlated; in short, if one variable increases, the other variable decreases with the same magnitude, and vice versa. However, the degree to which two securities are negatively correlated might vary over time and are almost never exactly correlated, all the time.

For example, suppose a study is conducted to assess the relationship between outside temperature and heating bills. The study concludes that there is a negative correlation between the prices of heating bills and the outdoor temperature. The correlation coefficient is calculated to be -0.96. This strong negative correlation signifies that as the temperature decreases outside, the prices of heating bills increase and vice versa.

When it comes to investing, negative correlation doesn't necessarily mean that the securities should be avoided. The correlation coefficient can help investors diversify their portfolio by including a mix of investments that have a negative or low correlation to the stock market. In short, when reducing volatility risk in a portfolio, sometimes opposites do attract.

### The Bottom Line

The correlation coefficient can be helpful in determining the relationship between your investment and the overall market or other securities.

This type of statistic is useful in many ways in finance. For example, it can be helpful in determining how well a mutual fund is behaving compared to its benchmark index, or it can be used to determine how a mutual behaves in relation to another fund or asset class. By adding a low or negatively correlated mutual fund to an existing portfolio, diversification benefits are gained.

Do you know why correlation matters for investing? Read "4 Reasons Why Market Correlation Matters."