Created
October 16, 2022 15:56
-
-
Save galenseilis/51974cc364d2f1e05f0fcffd39277655 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
| 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