Machine Learning, Linear Regression, Gradient Descent, Python, Stochastic Gradient.
derivative of RSS on b0 equal to 0. # least square solution y = df.Profit.values x = df['R&D Spend'].values n = df.shape[0] # normalization y and x y_normalizer = np.sqrt(sum(y**2)) y_norm = y/y_normalizer x_normalizer = np.sqrt(sum(x**2)) x_norm = x/x_normalizer # least square solution b1 =