Skip to content
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

Broken Linear regression #4

Open
ant0ine opened this issue Aug 27, 2014 · 0 comments
Open

Broken Linear regression #4

ant0ine opened this issue Aug 27, 2014 · 0 comments

Comments

@ant0ine
Copy link

ant0ine commented Aug 27, 2014

Hi,

The linear regression implementation return Nan for the following data:

var xyData = [
                { x: 0, y: 2.0},
                { x: 1, y: 2.0},
                { x: 2, y: 2.0},
            ];

Your implementation divides by the stddev, thus, not allowing it to be 0.

I think that linear regression should return a solution for any data points.

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

No branches or pull requests

1 participant