October 2018
Beginner to intermediate
676 pages
18h 30m
English
On the y axis, instead of plotting frequency, you can plot the percentage of the sum of all the entries in the grp_exp list in each bin, by specifying density=1 in plt.hist(). You can also plot approximate normal distribution using the mean and standard deviation of this data to see how well this distribution follows a normal distribution:
grp_exp = np.array([12, 15, 13, 20, 19, 20, 11, 19, 11, 12, 19, 13, 12, 10, 6, 19, 3, 1, 1, 0, 4, 4, 6, 5, 3, 7, 12, 7, 9, 8, 12, 11, 11, 18, 19, 18, 19, 3, 6, 5, 6, 9, 11, 10, 14, 14, 16, 17, 17, 19, 0, 2, 0, 3, 1, 4, 6, 6, 8, 7, 7, 6, 7, 11, 11, 10, 11, 10, 13, 13, 15, 18, 20, 19, 1, 10, 8, 16, ...
Read now
Unlock full access