-
Notifications
You must be signed in to change notification settings - Fork 10
Broken Linear regression #4
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels