Skip to content

Fixed correlation coefficient calculation#3

Open
deltasquare4 wants to merge 1 commit intoangusgibbs:masterfrom
deltasquare4:master
Open

Fixed correlation coefficient calculation#3
deltasquare4 wants to merge 1 commit intoangusgibbs:masterfrom
deltasquare4:master

Conversation

@deltasquare4
Copy link
Copy Markdown

Originally, I found out the issue by calculating linear regression linreg() of points parallel to x-axis.

  • Correlation coefficient r() was returning NaN if the standard deviation of y was 0 (because all y values were equal)
  • Added test for calculating linear regression with points containing same y coordinate values

Let me know if I need to do anything else to get it merged. Thanks.

* Correlation coefficient r() was returning NaN
  if the standard deviation of y was 0 (because
  all y values were equal)
* Added test for calculating linear regression
  with points containing same y coordinate values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant