title: Understanding numpy's lstsq
body: <p>I understand the idea of the sum of least square solutions. The parameters of the solution reflect the coefficients that minimize the squared error. But I am having trouble understanding the <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.lstsq.html" rel="nofollow noreferrer"><code>lstsq</code></a> function available from <code>numpy.linalg</code>. For example, I tried the following:</p>
  
  <pre><code>m1 = np.asarray([[1,2],[3,4],[5,6],[7,8]])
  
  m2 = np.asarray([[9,10],[11,12],[13,14],[15,16]])
  
  
  solution = np.linalg.lstsq(m1, m2)[0]
  </code></pre>
  
  <p>The value of <code>solution</code> is:</p>
  
  <pre><code>array([[-7., -8.],
     [ 8.,  9.]])
  </code></pre>
  
  <p>What does this output mean? I cannot visualize/understand this result.</p>