|
|
The Excel COVAR Function
Covariance
The covariance is a statistical measurement of the strength of the correlation between two sets of variables, and is calculated by the following equation: where x and y are the sample means (averages) of the two sets of values, and n is the sample size. Further information can be found on the Wikipedia Covariance page COVAR and COVARIANCE.P
In Excel 2010, the COVAR function has been replaced by the COVARIANCE.P function, which has improved accuracy. Although it has been replaced, the Covar function is still available in Excel 2010 (stored in the list of compatibility functions), to allow compatibility with earlier versions of Excel. Basic DescriptionThe Excel COVAR function calculates the covariance of two supplied sets of values. The format of the function is :
COVAR( array1, array2 )
Where array1 and array2 are two arrays of numeric values. Note that the Covar function ignores text values and logical values that are supplied as part of an array.
Covar Function ExampleColumns A and B of the spreadsheet on the right contain two sets of values. The Covariance of the values in columns A and B of the spreadsheet can be calculated using the Excel Covar function, as follows:
=COVAR( A2:A9, B2:B9 )
This gives the result 16.633125, which indicates a positive correlation between the two sets of values. Further examples of the Excel Covar function can be found on the Microsoft Office website. Trouble ShootingIf you get an error from the Excel Covar Function, this is likely to be one of the following: Common Errors
|
||||||||||||||||||||||||||||||||||||||
|
|
Copyright © 2008-2011 ExcelFunctions.net |