0

# Gaussian PDF

Unsolved###### Prob. and Stats

##### 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:

`a: 1`

<class 'int'>

` x: 2`

<class 'int'>

` c: 3`

##### Expected Output:

`0.12579440923099774`

This is a premium problem, to view more details of this problem please sign up for MLPro Premium. MLPro premium offers access to actual machine learning and data science interview questions and coding challenges commonly asked at tech companies all over the world

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

Get access to Premium only exclusive educational content available to only Premium users.

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

##### This is a premium feature.

To access this and other such features, click on upgrade below.

Input Test Case

Please enter only one test case at a timenumpy has been already imported as np (import numpy as np)