Linear regression in NumPy
nikie
n.estner at gmx.de
Fri Mar 17 18:45:58 EST 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:
http://www.statistics4u.info/fundstat_eng/cc_regression.html)
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
mailing list