-
-
Save antiface/f8d6a31762fb2acce91bf1cb5e065cff 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