November 2018
Beginner to intermediate
214 pages
5h 2m
English
What if we don't want to show the interquartile range of data, but just the full distribution? We have a similar kind of plot called a violin plot for this. We will add some extra different kinds of distributions to it that are not Gaussian.
We will include a lognormal, which is a Gaussian and logarithmic space. This is often used in astrophysics to describe a wide variety of physical phenomena. We will also include a pareto distribution, which is used frequently in economics since it describes a lot of economic systems.
First, we will take a look at a violin plot:
# Some other kinds of distributionsrands4 = np.random.lognormal(size=500, sigma=0.5)rands5 = np.random.pareto(size=500, a=5)dists ...
Read now
Unlock full access