1. Home
  2. Functions
  3. Statistical
  4. COVARIANCE.S

COVARIANCE.S function

Returns the sample covariance of two sets of numbers.

Syntax

=COVARIANCE.S(array1, array2)

Arguments

ArgumentRequiredDescription
array1RequiredThe first set of values
array2RequiredThe second set of values

How to use COVARIANCE.S

COVARIANCE.S takes 2 required arguments. Type =COVARIANCE.S( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=COVARIANCE.S({2,4,8}, {5,11,12})Result 9.666666667

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.