Loading the player...

What is 'Covariance'

Covariance is a measure of the directional relationship between the returns on two risky assets. A positive covariance means that asset returns move together while a negative covariance means returns move inversely. Covariance is calculated by analyzing at-return surprises (standard deviations from expected return) or by multiplying the correlation between the two variables by the standard deviation of each variable.

BREAKING DOWN 'Covariance'

Covariance measures how the mean values of two variables move together. If stock A's return moves higher whenever stock B's return moves higher and the same relationship is found when each stock's return decreases, then these stocks are said to have a positive covariance. In finance, covariances are calculated to help diversify security holdings.

When an analyst has a set of data, a pair of x and y values, covariance can be calculated using five variables from that data. They are:

  • xi = a given x value in the data set
  • xm = the mean, or average, of the x values
  • yi = the y value in the data set that corresponds with xi
  • ym = the mean, or average, of the y values
  • n = the number of data points

Given this information, the formula for covariance is: Cov(x,y) = SUM [(xi - xm) * (yi - ym)] / (n - 1)

It's important to note that while the covariance does measure the directional relationship between two assets, it does not show the strength of the relationship between the two assets. The coefficient of correlation is a more appropriate indicator of this strength.

Covariance Applications

Covariances have significant applications in finance and modern portfolio theory. For example, in the capital asset pricing model (CAPM), which is used to calculate the expected return of an asset, the covariance between a security and the market is used in the formula for one of the model's key variables, beta. In the CAPM, beta measures the volatility, or systematic risk, of a security in comparison to the market as a whole; it's a practical measure that draws from the covariance to gauge an investor's risk exposure specific to one security.

Meanwhile, portfolio theory uses covariances to statistically reduce the overall risk of a portfolio by protecting against volatility through covariance-informed diversification. Possessing financial assets with returns that have similar covariances does not provide very much diversification; therefore, a diversified portfolio would likely contain a mix of financial assets that have varying covariances. For more on this, see How is covariance used in portfolio theory?

Example of Covariance Calculation

Assume an analyst in a company has a five-quarter data set that shows quarterly gross domestic product (GDP) growth in percentages (x) and a company's new product line growth in percentages (y). The data set may look like:

  • Q1: x = 2, y = 10
  • Q2: x = 3, y = 14
  • Q3: x = 2.7, y = 12
  • Q4: x = 3.2, y = 15
  • Q5: x = 4.1, y = 20

The average x value equals 3, and the average y value equals 14.2. To calculate the covariance, the sum of the products of the xi values minus the average x value, multiplied by the yi values minus the average y values would be divided by (n-1), as follows:

Cov(x,y) = ((2 - 3) x (10 - 14.2) + (3 - 3) x (14 - 14.2) + ... (4.1 - 3) x (20 - 14.2)) / 4 = (4.2 + 0 + 0.66 + 0.16 + 6.38) / 4 = 2.85

Having calculated a positive covariance here, the analyst can say that growth of the company's new product line has a positive relationship with quarterly GDP growth. To learn more about how covariance is calculated, see Calculating Covariance for Stocks.

RELATED TERMS
  1. Covered Interest Arbitrage

    Covered interest arbitrage is a strategy where an investor uses ...
  2. Correlation

    Correlation is a statistical measure of how two securities move ...
  3. Gas (Ethereum)

    Gas is the pricing value required to conduct a transaction or ...
  4. Forward Price

    The predetermined delivery price of a forward contract, as agreed ...
  5. Residual Standard Deviation

    The residual standard deviation is a statistical term used to ...
  6. Coskewness

    Coskewness, in statistics, measures how much three random variables ...
Related Articles
  1. Investing

    Regression Basics For Business Analysis

    This tool is easy to use and can provide valuable information on financial analysis and forecasting. Find out how.
  2. Investing

    How This New ETF Tracks Millennial Consumer Habits

    A recently launched ETF aims to track Millennial consumer habits.
  3. Financial Advisor

    Example of Applying Modern Portfolio Theory (MPS)

    Modern Portfolio Theory: brush up on key mathematical framework used in investment portfolio construction.
  4. Financial Advisor

    10 Companies With No Debt (DOX,NHTC,PAYX)

    These 10 companies have no debt, a big positive in today's economic environment. Three stand out above the rest.
  5. Investing

    The 10 Largest Holdings in the S&P 500 (AAPL,AMZN)

    What is the investing potential of each of the 10 largest companies in the S&P 500 Index?
  6. Investing

    Is Apple's Stock Over Valued Or Undervalued?

    Despite several drawbacks, the CAPM gives an overview of the level of return that investors should expect for bearing only systematic risk. Applying Apple, we get annual expected return of about ...
  7. Insurance

    Top Healthcare, Medical Equipment Stocks of 2015

    A short list of the top healthcare and medical equipment stocks of 2015.
  8. Investing

    Optimize your portfolio using normal distribution

    Normal or bell curve distribution can be used in portfolio theory to help portfolio managers maximize return and minimize risk.
  9. Investing

    Two Approaches to Building a Low-Risk Portfolio

    Building a portfolio consisting of low-risk assets is achieved primarily by using one of two principal low-volatility strategies.
  10. Investing

    Beta: Know the Risk

    Beta says something about measuring price risk in stocks, but how much does it say about fundamental risk factors too?
RELATED FAQS
  1. What Is the Formula for Calculating Beta?

    Learn about beta, how to calculate it, and how it's used as a risk measure with examples that include Apple and Tesla. Read Answer >>
  2. How can I measure portfolio variance?

    Find out more about portfolio variance, the formula to calculate portfolio variance and how to calculate the variance of ... Read Answer >>
  3. How do you calculate beta in Excel?

    Learn how to calculate the beta of an investment using Microsoft Excel. Read Answer >>
  4. How do I calculate correlation between market indicators and specific stocks?

    Discover how to calculate the correlation coefficient between market indicators and stock prices, a critical skill in technical ... Read Answer >>
  5. What is the difference between the expected return and the standard deviation of ...

    Learn about the expected return and standard deviation and the difference between the expected return and standard deviation ... Read Answer >>
Hot Definitions
  1. Portfolio

    A portfolio is a grouping of financial assets such as stocks, bonds and cash equivalents, also their mutual, exchange-traded ...
  2. Gross Profit

    Gross profit is the profit a company makes after deducting the costs of making and selling its products, or the costs of ...
  3. Diversification

    Diversification is the strategy of investing in a variety of securities in order to lower the risk involved with putting ...
  4. Intrinsic Value

    Intrinsic value is the perceived or calculated value of a company, including tangible and intangible factors, and may differ ...
  5. Current Assets

    Current assets is a balance sheet item that represents the value of all assets that can reasonably expected to be converted ...
  6. Volatility

    Volatility measures how much the price of a security, derivative, or index fluctuates.
Trading Center