TX Sheet Control

COVARIANCE.S Function

Function

Return the sample covariance of two data sets. The sample covariance is the sum of the products of the deviations of each pair of values from their means, divided by the number of pairs minus 1. known_y and known_x are ranges or arrays with the same number of values; a pair that contains text or a logical value is ignored. Sets of different size return #N/A, and a single pair returns #DIV/0!.

Syntax

COVARIANCE.S(known_y, known_x, x)

Category: Statistics. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=COVARIANCE.S({1,2,3},{2,4,6})

The formula returns 2.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also