Linear regression in NumPy
n.estner at gmx.de
Sat Mar 18 00:45:58 CET 2006
I still don't get it...
My data looks like this:
x = [0,1,2,3]
y = [1,3,5,7]
The expected output would be something like (2, 1), as y[i] = x[i]*2+1
(An image sometimes says more than 1000 words, so to make myself clear:
this is what I want to do:
So, how am I to fill these matrices?
(As a matter of fact, I already wrote the whole thing in Python in
about 9 lines of code, but I'm pretty sure this should have been
possible using NumPy)
More information about the Python-list