Distributions with scipy.stats

In this article, several distributions are implented with scipy.stats.

In [1]:
import numpy as np
from scipy import stats
import matplotlib.pyplot as plt

Binomial

In [2]:
n = 10
p = 0.3

rv = stats.binom(n=n, p=p)

fig, ax = plt.subplots()
# x = np.arange(11)
x = np …

more ...