I want to do a simple linear regression directly in the database. I noticed that postgresql already has some statistical functions, which I think are for this purpose ( regr_slope(Y, X)
, regr_intercept(Y, X)
, regr_count(Y, X)
...) and would like to understand it better.
In a simple regression% with%,% with% would be equal to "b" and Y=aX+b
equal to "a"?