Re: [Matplotlib-users] regression coeffiecients

2008-10-26 Thread Oz Nahum
I'm answering to myself on the mailing list just in case it might help some in the future. As, someone pointed out the error is in the assignment operator: I wrote in the code: sum1 =+ (i-mx)*(j-my) which does not add the values but puts them. Instead I should have wrote sum1 += (i-mx)

[Matplotlib-users] regression coeffiecients

2008-10-25 Thread Oz Nahum
Hello, I'm having troubles understand something about regression coefficients. If I have two vectors: x = [1.38, 1.98, 3.18, 3.56, 4.9, 6.21, 6.44, 7.47, 8.36, 8.81] y = [8.19, 17.77, 20.12, 14.55, 20.17 ,31.22 ,28.94, 34.79, 40.26, 38.99] and I would like to find out the regression coefficient