Given mean and variance of a Gaussian (normal) random variable, how to compute its probability density function (PDF).

enter image description here

import numpy as np
import scipy.stats as stats

x = np.linspace(0.3, 1.75, 1000)y = stats.norm.pdf(x, 1.075, 0.2) #the equation above☝☝☝

plt.plot(x, y)
plt.show()

Comments

Popular posts from this blog

Maxpooling vs minpooling vs average pooling

Generative AI - Prompting with purpose: The RACE framework for data analysis

Best Practices for Storing and Loading JSON Objects from a Large SQL Server Table Using .NET Core