Statistical - COVARIANCE.P Function



Description

The COVARIANCE.P function returns population covariance, the average of the products of deviations for each data point pair in two data sets. Use covariance to determine the relationship between two data sets.

Syntax

COVARIANCE.P (array1, array2)

Arguments

Argument Description Required/Optional
Array1 The first cell range of integers. Required
Array2 The second cell range of integers. Required

Notes

  • Covariance is given by −

    $$Cov\left ( X,Y \right )=\frac{\sum \left ( x-\bar{x} \right )\left ( y-\bar{y} \right )}{n}$$

    Where n is the sample size and $\bar{x}$ and $\bar{y}$ are the sample means AVERAGE (array1) and AVERAGE (array2).

  • The arguments must either be numbers or be names, arrays, or references that contain numbers.

  • If an array or reference argument contains text, logical values, or empty cells, those values are ignored. However, cells with the value zero are included.

  • If array1 and array2 have different numbers of data points, COVARIANCE.P returns the #N/A error value.

  • If either array1 or array2 is empty, COVARIANCE.P returns the #DIV/0! error value.

Applicability

Excel 2010, Excel 2013, Excel 2016

Example

Covariance .P Function
advanced_excel_statistical_functions.htm
Advertisements