cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Apoc.math.regr calculations

Hello Neo4j knowledgable community,

I have a question regarding one of the apoc math functions, namely apoc.math.regr I have been using it to compute the linear regression estimators (slope, intercept) and the goodness-of-fit measure (R-squared). However, I noticed there is a huge difference between what is resultant out of this function and what is computed manually and using other tools adopting the least square approach. Therefore, I would appreciate your advice in figuring out/understanding what is used in the computation using the apoc regr function

1 REPLY 1

I think we just use apache.commons.math there, feel free to have a look at the source

and the tests.