regression-intercept

Returns the y-intercept of the regression line. This is computed as follows: AVG(numeric_expression1) - REGR_SLOPE(numeric_expression1, numeric_expression2) * AVG(numeric_expression2)

Note: Supported only in dynamic query mode.

Syntax

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

Example

regression-intercept ( Cost ,  Margin  for report)

Result

The y-intercept of the regression line for Cost and Margin.

Result data

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