Last active
April 26, 2020 22:02
-
-
Save arunnayan/705de3f76e200057b6d0984992326098 to your computer and use it in GitHub Desktop.
This file contains 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 math | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import scipy.stats | |
mean = 0 | |
variance = 1 | |
sigma = math.sqrt(variance) | |
x = np.linspace(mean - 3*sigma, mean + 3*sigma, 100) | |
plt.plot(x, scipy.stats.norm.pdf(x, mean, sigma)) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment