daugaard/example-linear-regression

Doesn't work with only one independent variable

mb52089 opened this issue · 3 comments

This gem doesn't seem to work with examples that have only one independent variable. Is that by design?

Can you provide an example?
If you have one independent variable to predict a dependent variable with a linear relationship wouldn't you just have a simple ratio to calculate?

Arrr yes that is correct, it still needs to be 2 dimensional array.