Created
October 16, 2022 00:57
-
-
Save galenseilis/e49a61e74f43764ae5a71ee5e8c2287f to your computer and use it in GitHub Desktop.
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
| from scipy.stats import beta | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| a, b = 0.99, 0.5 | |
| fig, ax = plt.subplots(1, 1) | |
| x = np.linspace(0, 1, 10000) | |
| y = beta.pdf(x, a, b) | |
| ax.scatter(x, y, facecolors='none', edgecolors='k') | |
| ax.set_xlabel('x') | |
| ax.set_ylabel('dbeta(x, 0.99, 0.5)') | |
| plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment