December 2017
Intermediate to advanced
386 pages
10h 42m
English
In order to understand the impact of the number of samples on the distribution of the output obtained, let us look at the following example:
import matplotlib.pyplot as pltplt.hist(numpy.random.standard_normal(10))plt.show()
In the preceding code, we are plotting the histogram distribution of 10 random samples obtained form standard normal distribution.
The output of the code is as follows:

We repeat the preceding code to now generate 100 random samples instead of 10:
import matplotlib.pyplot as pltplt.hist(numpy.random.standard_normal(100))plt.show()
The resulting plot looks like the following:
Note that the ...
Read now
Unlock full access