text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import numpy as np

import numpy as np # linear algebra

np.random.seed(0)
X = np.random.random(size=(20, 1))
y = 3 * X.squeeze() + 2 + np.random.randn(20)

plt.plot(X, y, 'o')