-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Pearson correlation (r) to lineal regression #332
Comments
Hi Fredy! Sure, I think that'd be a good addition - given that it can just be another property on the object already returned by |
Are there any plans to add this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just checking if this worths a PR. Currently Lineal Regression returns m and b, but you always want to check R square attached to see how well the fit was. I know there is a R-square function but would be handy to have this one returned from the function since all formulas are already there.
Planning to push this one
![image](https://user-images.githubusercontent.com/22927931/45123661-75e5df80-b11c-11e8-840b-e57409153879.png)
which will translate to something like:
Using the same definitions you have for sumXY, SumY, SumX. I would add sumX2 and sumY2 plus the return value r to the function.
The text was updated successfully, but these errors were encountered: