This section describes how to make box plots and outliers within the data and how to customize the appearance of plots.
Statistics with boxes and violins
Making box plots to show the interquartile ranges and the outliers
We will begin by importing the data. Start by generating normal Gaussian distributions with a couple of different properties, as follows:
# Generate some Normal distributions with different properties
rands1 = np.random.normal(size=500)
rands2 = np.random.normal(scale=2, size=500)
rands3 = np.random.normal(loc=1, scale=0.5, size=500)
gaussians = (rands1, rands2, rands3)
- Make some box plots out of this data. Hence, by making a box plot of Gaussians, we can comment to suppress the output. Here, we can see that...