import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as stats
import math
mu = 0
variance = 1
sigma = math.sqrt(variance)
x = np.linspace(mu - 3 * sigma, mu + 3 * sigma, 100)
plt.plot(x, stats.norm.pdf(x, mu, sigma))
plt.show()
import numpy as np
import matplotlib.pyplot as plt
def get_normal(n):
mu,sigma = 10,1
s = np.random.normal(mu, sigma, n)
plt.hist(s, density=True)
plt.show()
get_normal(100)
sns.histplot(x, stat='density')