Probability, Data Science, Python, Python Programming, Statistics.
standard deviation would be 1. Image by Author Code: import math SQRT_TWO_PI = math.sqrt(2 * math.pi) def normal_pdf(x: float, mu: float = 0, sigma: float = 1) -> float: return (math.exp(-(x-mu) ** 2 / 2 / sigma ** 2) / (SQRT_TWO_PI * sigma)) # plot xs = [x / 10.0 for x in range(-50, 50)]