covariance-samp

Returns the sample covariance of a set of number pairs.

Note: Supported only in dynamic query mode.

Syntax

covariance-samp ( numeric_expression1 ,  numeric_expression2 )
covariance-samp ( numeric_expression1 ,  numeric_expression2 for 
[ all|any ] expression { , expression } )
covariance-samp ( numeric_expression1 ,  numeric_expression2 for 
report )

Example

covariance-samp ( Cost ,  Margin  for report)

Result

The sample covariance between Cost and Margin.

Result data

Cost Margin covariance-samp (Cost, Margin for report)
4 0.33 0.04048
5 0.28 0.04048
9.22 0.23 0.04048
15.93 0.28 0.04048
34.97 0.3 0.04048