Machine Learning, Data Science, Deep Learning, Artificial Intelligence, Regression.
equation, of degree 1, for example y = 2𝑥 + 3. x = np.arange(-5.0, 5.0, 0.1) #You can adjust the slope and intercept to verify the changes in the graph. y = 2*(x) + 3 y_noise = 2 * np.random.normal(size=x.size) ydata = y + y_noise plt.figure(figsize=(8,6)) plt.plot(x, ydata, 'bo') plt.plot(x,y,