Skip to content

Instantly share code, notes, and snippets.

@galenseilis
Created October 16, 2022 00:57
Show Gist options
  • Select an option

  • Save galenseilis/e49a61e74f43764ae5a71ee5e8c2287f to your computer and use it in GitHub Desktop.

Select an option

Save galenseilis/e49a61e74f43764ae5a71ee5e8c2287f to your computer and use it in GitHub Desktop.
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