How to Use the COVAR Function in Excel

The COVAR function is a statistical tool used in both Excel and Google Sheets to compute the covariance between two sets of values. Covariance gauges the extent to which two variables fluctuate in unison. If the covariance is positive, it indicates that the variables generally move in the same direction, whereas a negative covariance suggests that they move in opposite directions.

Syntax:

The syntax for the COVAR function is consistent across both Excel and Google Sheets:

=COVAR(array1, array2)

Parameters:

  • array1: The first set of values.
  • array2: The second set of values. It is crucial that both arrays contain an identical count of data points.

Examples:

To illustrate the use of the COVAR function, consider the following two data sets:

X 5 10 15 20 25
Y 3 7 12 18 22

In this example, we seek to determine the covariance between sets X and Y:

=COVAR(B2:B6, C2:C6)

Here, B2:B6 denotes array1 (X values), and C2:C6 indicates array2 (Y values).

The resulting calculation will reveal the degree to which these datasets vary together.

Use case:

The COVAR function is especially useful in financial analysis to evaluate the relationship between the returns of different securities. If two assets have a positive covariance, they are likely to move in the same direction, which may indicate a lack of diversification. Conversely, a negative covariance between assets suggests a diversification benefit.

By utilizing the COVAR function to determine covariance, investors and analysts can gain insights into the risk characteristics of their portfolios, enabling them to make more strategic decisions regarding asset diversification.

More information: https://support.microsoft.com/en-us/office/covar-function-50479552-2c03-4daf-bd71-a5ab88b2db03

Other functions
Returns the beta cumulative distribution function
Returns the inverse of the cumulative distribution function for a specified beta distribution
Returns the individual term binomial distribution probability
Returns the one-tailed probability of the chi-squared distribution
Returns the inverse of the one-tailed probability of the chi-squared distribution
Returns the test for independence
Returns the confidence interval for a population mean
Returns the smallest value for which the cumulative binomial distribution is less than or equal to a criterion value
Returns the exponential distribution
Returns the F probability distribution
Rounds a number down, toward zero
Returns the result of an F-test
Returns the gamma distribution
Returns the inverse of the gamma cumulative distribution
Returns the hypergeometric distribution
Returns the inverse of the lognormal cumulative distribution
Returns the cumulative lognormal distribution
Returns the most common value in a data set
Returns the negative binomial distribution
Returns the inverse of the normal cumulative distribution
Returns the normal cumulative distribution
Returns the standard normal cumulative distribution
Returns the inverse of the standard normal cumulative distribution
Returns the k-th percentile of values in a range
Returns the percentage rank of a value in a data set
Returns the Poisson distribution
Returns the quartile of a data set
Returns the rank of a number in a list of numbers
Estimates standard deviation based on a sample
Calculates standard deviation based on the entire population
Returns the Student's t-distribution
Returns the inverse of the Student's t-distribution
Returns the probability associated with a Student's t-test
Estimates variance based on a sample
Calculates variance based on the entire population
Calculates variance based on the entire population, including numbers, text, and logical values
Returns the one-tailed probability-value of a z-test