def Residuals(xs, ys, inter, slope):
 xs = np.asarray(xs)
 ys = np.asarray(ys)
 res = (ys - (inter + (slope * xs)))
 return res

def Residuals ( xs , ys , inter , slope ) : xs = np . asarray ( xs ) ys = np . asarray ( ys ) res = ( ys - ( inter + ( slope * xs ) ) ) return res
computes residuals for a linear fit with parameters inter and slope .