Skip to content

Instantly share code, notes, and snippets.

@galenseilis
Created October 16, 2022 15:56
Show Gist options
  • Select an option

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

Select an option

Save galenseilis/51974cc364d2f1e05f0fcffd39277655 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import describe
if __name__ == '__main__':
x = np.random.normal(2, 3, size=10**4)
z = x + x
q = 2 * x
plt.hist(x, bins=100, alpha=0.1)
plt.hist(z, bins=100, alpha=0.1)
plt.hist(q, bins=100, alpha=0.1)
plt.show()
print('x', describe(x))
print('z', describe(z))
print('q', describe(q))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment