title: getting residue of linear regression
body: <p>if a Best Fit calculation routine finds Slope, intercept of linear regression of x and y, how to find residue?.</p>
  <pre><code> - for (i=0;i&lt;n;i++)
         y_fit[i]=Slope*x[i]+Intercept; 
     
     residue = sum of all (y[i]-y_fit[i])*(y[i]-y_fit[i])?.
  </code></pre>