Export (0) Print
Expand All
Expand Minimize

WorksheetFunction.Covariance_P Method (Excel)

Returns population covariance, the average of the products of deviations for each data point pair.

Version Added: Excel 2010

expression .Covariance_P(Arg1, Arg2)

expression A variable that represents a WorksheetFunction object.

Parameters

Name

Required/Optional

Data Type

Description

Arg1

Required

Variant

The first cell range of integers.

Arg2

Required

Variant

The second cell range of integers.

Return Value

Double

Use Covariance_P to determine the relationship between two data sets. For example, you can examine whether greater income accompanies greater levels of education:

  • 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 Arg1 and Arg2 have different numbers of data points, Covariance_P generates an error.

  • If either Arg1 or Arg2 is empty, Covariance_P generates an error.

  • The covariance is: Ff837133.awfcovar_ZA06051128(en-us,office.14).gifwhere x and y are the sample means AVERAGE(array1) and AVERAGE(array2), and n is the sample size.

Show:
© 2015 Microsoft