Covariance𒅌 is a statistical measurement of the relationship between two variables; in finance, covariance usually measures the relationship between the returns of two assets.
What Is Covariance?
Covariance is a statistical tool that measures the directional relationship between the returns on two assets. A positive covariance means asset returns move together, while a negative covariance means they move inversely. Covariance is calculated by 𓂃analyzing standard de♔viations from the expected return or multiplying the correlation between the two random variables by the standard deviation of each variable.
Key Takeaways
- Covariance is calculates the relationship between two random variables.
- When two stocks tend to move together, they are seen as having a positive covariance; when they move inversely, the covariance is negative.
- Covariance is different from the correlation coefficient, a measure of the strength of a correlative relationship.
- Covariance is an important tool in modern portfolio theory (MPT) for determining what securities to put in a 澳洲幸运5官方开奖结果体彩网:portfolio.
- Risk and 澳洲幸运5官方开奖结果体彩网:volatility can be reduced in a portfolio by pairing assets that have a negative covariance.
:max_bytes(150000):strip_icc()/Covariance_Final_4198606-4966d054fe4a4d30b72bcf77c1db21cd.jpg)
Paige McLaughlin / Investopedia
Understanding Covariance
Covariance evaluates how the mean values of two random variables move together. For example, 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, these stocks are said to have positive covariance. In finance, covariances are caꦺlculated to help diversify security holdings.
Formula for Covariance
When an analyst has price information from a selected stock or fund, 澳洲幸运5官方开奖结果体彩网:covariance can be calculated using the following formula:
Covariance=∑Sample Size−1(Retabc−Avgabc)×(Retxyz−Avgxyz)where:Retabc=Day’s return for ABC stockAvgabc=ABC’s average return over🧸 the periodRetxyz=Day’s return for XYZ stockAvgxyz=XYZ’s average ᩚᩚᩚᩚᩚᩚᩚℱᩚᩚ𒀱ᩚᩚᩚ;return over the periodSample Size=Number of days sampled
Types of Covariance
The covariance equation is used to determine the direction of the relationship between two variables—in other words, whether they teღnd to move in the same or opposite directions. A positive or negative covarianceꦗ value determines this relationship.
Positive Covariance
A positive covariance between two variables indicates that these variables tend to be higher or lower at the same time. In other words, a positive covariance between stock one and two is where stock one is higher than average at the same ജpoiꦿnts that stock two is higher than average, and vice versa. When charted on a two-dimensional graph, the data points will tend to slope upward.
Negative Covariance
When the calculated covariance is less than negative, this indicates that the two variables have an inverse relationship. In other words, a stock one value lower than average tends to be paired with a stock two value greater than average, and vice versa.
Applications of Covariance
Covariances have significant applications in finance and 澳洲幸运5官方开奖结果体彩网:modern portfolio theory (MPT). For example, in the 澳洲幸运5官方开奖结果体彩网: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 compared 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, 澳洲幸运5官方开奖结果体彩网:portfolio theory uses covariances to statistically reduce the overall risk of a portfolio by protecting against volatility through co🌺variance-informed diversification.
Tip
Possessing 澳洲幸运5官方开奖结果体彩网:financial assets with returns that h🌃ave similar covariances does not provide very much diversification. Therefore, a diversified portfolio would likely contain a mix of financial assets that have varying covariances.
Covariance vs. Variance
Covariance is related to variance, a statistical measure for the spread of points in a data set. Both 澳洲幸运5官方开奖结果体彩网:variance and covariance measure how data points are distributed around a calculated mean. However, variance measures the spread of data along a single axis, while covariance examines the directional relationship betw✨een two variables.
In a financial context, covariance is used to examine how different investments perform in relation to one another. A positive covariance indicates that two assets tend to perform well at the same time, while a negative covariance indicates that they tend to move in opposite directions. Investors might seek investments with a negative covariance to help them 澳洲幸运5官方开奖结果体彩网:diversify their holdings.
Covariance vs. Correlation
Covariance is also distinct from 澳洲幸运5官方开奖结果体彩网:correlation, another statistical metric often used to measure the relationship between two variables. While covariance measures the direction of a relationship between two variables, correlation measures the strength of that relationship. This is usually expressওed through a correlation coefficient, which can range from -1 to +1.
Important
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 澳洲幸运5官方开奖结果体彩网:coefficient of correlation is a more appropriate indicator of this 𒆙strength.
A correlation is considered strong if the correlation coefficient has a value close to +1 (positive correlation) or -1 (negative correlation). A coefficient that is close to zero indicates that there is only a weak relationship between the two variables.
Example of Covariance Calculation
The capital sigma symbol (Σ) signifies the summation of all of the calculations. So, you need to calculate for each day and add the results. For example, to calculate the covariance between two stocks, assume you have the stock prices fo൩r a period of four days and use the formula:
Covariance=∑Sample Size−1(Retabc−Avgabc)×(Retxyz−Avgxyz)
Day | ABC | XYZ |
---|---|---|
1 | 1.2% | 3.1% |
2 | 1.8% | 4.2% |
3 | 2.2% | 5.0% |
4 | 1.5% | 4.2% |
You would find the Day 1 averag𝔉e return for ABC (1.675%) and XYZ (4.125%), subtract tꦬhem from the corresponding term, and multiply them. Do this for each day:
Day 1=(1.2%−1.675%)×(3.1%−4.125%)=0.487
Day 2=(1.8%−1.675%)∗(4.2%−4.125%)=0.009
Day 3=(2.2%−1.675%)∗(5.0%−4.125%)=0.459
Day 4=(1.5%−1.675%)∗(4.2%−4.125%)=−0.013
澳洲𝓰幸运5ꦫ官方开奖结果体彩网:Add each day’s result to the previous result:
0.487+0.009+0.459−0.013=0.943
Your 🌳sample size is four, so subtract one from four and di🌌vide the previous result by it:
30.943=.314
This sample has a covariance of 0.314, a positive number, suggesting that the two stocks are similar in returns.
What Does a Covariance of 0 Mean?
A covariance of zero indicates that therꩵe is no clear directional relationship between the variables being measured. In other words, a hi🤡gh value for one stock is equally likely to be paired with a high or low value for the other.
What Is Covariance vs. Variance?
Covariance and variance are used to measure the distribution of points in a data set. However, variance is typically used in data sets with only one variable and indicates how closely those data points are clustered around the average. Covariance measures the direction of the relationship between two variables. A positive covariance means that both variables tend to be high or low at the same time. A negative covariance means that when one variaꦬble is high, the other tends to be low.
What Is the Difference Between Covariance and Correlation?
Covariance measures the direction of a relationship between two variables, while correlation measures the strength of that relationship. Both correlation and covariance are positive when the variables move in the same direction and negative when they move in opposite directions. However, a correlation coefficient must always range from -1 to +1, with extreme values indicating a strong relationship.
How Is a Covariance Calculated?
For a set of data points with two variables, the covariance is measured by taking the difference between each variable and their respective means. These differences are then multiplied and averaged across ℱall of the data points. In mathematical notation, this is expressed as:
Covariance = Σ [ ( Returnabc - Averageabc ) * ( Returnxyz - Averagexyz ) ] ÷ [ Sample Size - 1 ]
The Bottom Line
Covariance is an important statistical metric for comparing the relationships between multiple varia𓆉bles. In investing, covariance is used to identify assets that can help diversify a portfolio.
Related Articles
:max_bytes(150000):strip_icc()/Portfolio-investment_sketch_final-a6dfa21251534c5e857987a89ac61212.png)
:max_bytes(150000):strip_icc()/GettyImages-1911598564-a17f792fe9cb4f34a662d2872162cd58.jpg)
:max_bytes(150000):strip_icc()/14_Allocating_For_The_Long_Run-a6e59f936f9e46ba8d4547fc4bf67beb.jpg)
:max_bytes(150000):strip_icc()/GettyImages-1554414506-c25441c8246f49b2b7073a2083e8faff.jpg)
:max_bytes(150000):strip_icc()/portfoliomanagement_final_definition_0819-8aeba5bb85224330888eeae6d2ffe1b4.jpg)
:max_bytes(150000):strip_icc()/risk-management-4189908-FINAL-2-976ae194e01848618ca94941ab9d2395.jpg)
:max_bytes(150000):strip_icc()/11_How_To_Rebalance_Your_Portfolio-3c76f832e62649aeb14d0dd1434e3e1d.jpg)
:max_bytes(150000):strip_icc()/6_TheRoleoftheSP500inaDiversifiedPortfolio_final1-d21f81d10d264a67a3e5f7342f174efd.png)
:max_bytes(150000):strip_icc()/assetmanagement-93468a062b964a6fa198afe0bfa543d6.jpg)
:max_bytes(150000):strip_icc()/longterminvestments.asp-final-351e853ae8a44d2ea9197632266905e5.png)
:max_bytes(150000):strip_icc()/8_Dollar-CostAveragingintotheSP500DoesItReallyWork_final-7681c5ea48f84ad88278757b15f83ebd.png)
:max_bytes(150000):strip_icc()/GettyImages-160519027-9bc7b5b9500346eda384937f12423c93.jpg)
:max_bytes(150000):strip_icc()/TermDefinitions_TimeWeightedReturn_4-3-db1574d27e9e4975aa3b0e797384013a.jpg)
:max_bytes(150000):strip_icc()/INV_Spot_Bitcoin_ETF_GettyImages-1403384080-6cd708eb9a28449db2b17233ac239532.jpg)
:max_bytes(150000):strip_icc()/diversification.asp-FINAL-b2f2cb15557b4223a653c1389389bc92.png)
:max_bytes(150000):strip_icc()/Term-Definitions_aum-resized-dd226f8a432c4db79cbae22a79ae3571.jpg)