0

# Gaussian PDF

Unsolved
###### Prob. and Stats

Difficulty: 2 | Problem written by junaid
##### Problem reported in interviews at

The probability of a given value can easily be estimated with the Gaussian distribution with the mean and the standard deviation as distribution parameters.

The equation that is used to calculate the PDF of a Gaussian distribution is listed below:

$$f(x)= exp(-(\frac{(a-x)^{2}}{ (2 ^{} c^{2} )}))^{}( \frac{1} { (sqrt(2 ^{}\pi) ^{} c)})$$

Given a (input value), x (mean), and c (standard deviation), calculate the Gaussian distribution with the help of PDF.

##### Sample Input:
<class 'int'>
a: 1
<class 'int'>
 x: 2
<class 'int'>
 c: 3

##### Expected Output:
<class 'float'>
0.12579440923099774

MLPro Premium also allows you to access all our high quality MCQs which are not available on the free tier.

Not able to solve a problem? MLPro premium brings you access to solutions for all problems available on MLPro

Have an issue, the MLPro support team is available 24X7 to Premium users.