Given a list of points, I need to achieve a simple linear regression on them. This part is quite easy and code examples can be found in a lot of places.
My problem is determining the regression factor (measuring how much the points fit on the line). How could I determine such a factor programmatically, using Lua?
1 Answer