1
I wish to make a simple linear regression directly in the database. I noticed that postgresql already has some statistical functions, which seems to me to be for this purpose (regr_slope(Y, X)
, regr_intercept(Y, X)
, regr_count(Y, X)
...) and I’d like to understand that better.
In a simple regression Y=aX+b
, regr_intercept(Y, X)
would equal "b" and regr_slope(Y, X)
equal to "the"?