title: numpy multivarient regression with linalg.lstsq
body: <p>I am trying to solve for m1,m2,m3,m4 in the set of equations such that:</p>
  
  <pre><code>y=(m1*x1)+(m2*x2)+(m3*x3)+(m4*x4)
  </code></pre>
  
  <p>Where:</p>
  
  <pre><code>x1=[x11,x12,x13...]
  x2=[x21,x22,x23...]
  x3=[x31,x32,x33...]
  x4=[x41,x42,x43...]
  
  y=[y1,y2,y3,y4,...]
  </code></pre>
  
  <p>I have been trying to do:</p>
  
  <pre><code>m=numpy.linalg.lstsq(A,y)[0]
  </code></pre>
  
  <p>Where:</p>
  
  <pre><code>A = [[x11,x21,x31,x41],[x12,x22,x32,x42],.....]
  </code></pre>
  
  <p>But my results are not matching a similar analysis done in Mat-lab.</p>
  
  <p>Any suggestions or issues you might see would be very helpful!</p>
  
  <p>Thanks.</p>