Data Science, Machine Learning, Linear Models, Regression, Python.
Distribution of our Target Variable from matplotlib import pyplot as plt plt.hist(units_sold, bins = [0, 1, 2, 3, 4, 5], density = True) plt.vlines(np.mean(units_sold), ymin = 0, ymax = 0.4, linestyles = 'dashed') plt.xlabel('Units Sold') plt.ylabel('Probability') plt.title('Probability Density of