ID EN
#Statistical

COVARIANCE.S

Excel Functions

Get the sample covariance between paired data

Syntax

EXCEL
=COVARIANCE.S(array1, array2)

Arguments

Parameter Description
array1 The first set of data values.
array2 The second set of data values.

Return Value

A number representing the covariance

Details

The COVARIANCE.S function calculates the sample covariance between two data sets. It measures the degree to which two variables vary together, providing insight into their linear relationship. The return value from the function is a single number that can be positive, negative, or zero, depending on the relationship between the variables. Unlike correlation, covariance is not standardized and depends on the units of measurement. In this example, we'll examine the relationship between temperature (°F) and ice cream sales ($) from a sample of 5 days. As temperature increases, ice cream sales tend to increase as well, demonstrating positive covariance. The positive result indicates that temperature and ice cream sales have a positive relationship in this sample. As one increases, the other in

Examples

Example #1 - Positive Sample Covariance
EXCEL
=COVARIANCE.S(B5:B9,C5:C9) // returns positive sample covariance
Example #2 - Negative Sample Covariance
EXCEL
=COVARIANCE.S(B5:B9,C5:C9) // returns negative sample covariance
Example #3 - Zero Sample Covariance
EXCEL
=COVARIANCE.S(B5:B14,C5:C14) // returns value close to zero

See Also

COVAR COVARIANCE.P CORREL