regression-sxy

Returns the following computation after eliminating NULL pairs: REGR_COUNT(numeric_expression1, numeric_expression2) * COVAR_POP(numeric_expression1, numeric_expression2)

Note: Supported only in dynamic query mode.

Syntax

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

Example

regression-sxy ( Cost ,  Margin  for report)

Result

The sxy computation of the regression line for Cost and Margin.

Result data

Cost Margin regression-sxy (Cost, Margin for report)
4 0.33 0.16192
5 0.28 0.16192
9.22 0.23 0.16192
15.93 0.28 0.16192
34.97 0.3 0.16192