linearreg_ana(A, alpha)
Performs a linear regression analysis of the samples X and Y. X is the predictor and Y is the response variable. This function prints a report including the slope of the regression line, the y-intersection, the total sum of squares (SST), the regression sum of squares (SSR), the error sum of squares (SSE), the coefficient of determination (r^2), etc.
See also linearreg linearreg_res linearreg_ci_mea
Example
X=(3, 4, 6, 6, 7, 8)
( 3 4 6 6 7 8 )
Y=(4, 5, 6, 6, 7, 8)
( 4 5 6 6 7 8 )
linearreg_ana(X,Y)
Linear Regression
Slope : 0.7499999999999996
Y intersection : 1.7500000000000024
SST (total sum of squares) : 10.0
SSR (regression sum of squares) : 9.749999999999995
SSE (error sum of squares) : 0.25000000000000533
r^2 (coefficient of determination) : 0.9749999999999993
r (linear correlation coefficient) : 0.9874208829065746
Ser (standard error of the estimate) : 0.25000000000000266