This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from scipy.stats import bernoulli | |
| from scipy.stats import rv_discrete | |
| def plot_histogram(sample, theoretical_min=None, theoretical_max=None, title="Histogram"): | |
| if not theoretical_min: | |
| theoretical_min = np.min(sample) |