Linear Regression, Data Science, Modeling, Ordinary Least Square, Regression.
quick example in code for single linear regression…. import numpy as np def ssq(x, y, beta): return np.sum((y - x * beta)**2) x = np.array([4,3,2]) y = np.array([3,2.2,1]) betas = np.arange(-2, 2, 0.05) errors = [ssq(x, y, b) for b in betas] In the above code, we create two vectors then try lots of