Intro
To make the plotting is simple (not that painful), in that post I will make few plots with different distributions.
First importing the libraries. I will use the matplotlib for plotting the data. SciPy one of the core libraries for data science calculations:
To make printing comfortable a made the printing function for Mean, Variance, Skew, Kurt:
import numpy as np # we will use it for generation the arrays
from scipy.stats import bernoulli, binom, poisson, norm, uniform, beta
import matplotlib.pyplot as plt
To make printing comfortable a made the printing function for Mean, Variance, Skew, Kurt:
def print_mvsk(*args):
t = args[0]
mean, var, skew, kurt, = float(t[0]),float(t[1]),float(t[2]),float(t[3])
sd = np.sqrt(var)
print(f'mean:{mean:.4f}\tvar:{var:.4f}\tskew:{skew:.4f}\nsd:{sd:.4f}\tkurt:{kurt:.4f}')