0

# Lognormal Distribution

Unsolved
###### Prob. and Stats

Difficulty: 1 | Problem written by Junaid Ahmed
##### Problem reported in interviews at

A lognormal distribution is the continuous probability distribution of a variable having a random state whose logarithm is normally distributed.

The equation of lognormal distribution is:

$$f(x) = \frac{1}{2}[1+erf(\frac{\ln x - M}{S\sqrt{2}})]$$

whereas erf is the Gauss error function

M is the mean

S is the standard deviation

x is the data points

Input

datapoints: x

m: mean (M)

std: standard deviation (S)

Output

A normal distribution value.

##### Sample Input:
<class 'int'>
x: 20
<class 'float'>
m: 1.344
<class 'float'>
std: 2.0985

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

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.

##### 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 time
numpy has been already imported as np (import numpy as np)