DEV Community

Cover image for Gaussian Distribution
Ashwin Sharma P
Ashwin Sharma P

Posted on • Originally published at aiwithash.data.blog

2 2

Gaussian Distribution

It is a type of continuous probability distribution for a random variable. It is also called as Normal distribution.

The general form of its probability density function is;

Alt Text

Here the parameter µ is the mean or expectation of the distribution and σ is the standard deviation.

When the mean becomes 0 and variance becomes 1 in a Gaussian distribution, it becomes a Standard Normal Distribution.

Gaussian distribution follows a bell-shaped curve and hence generally known as a bell curve.

Alt Text

Let us consider a random variable 'X' such that 'X' belongs to Gaussian distribution.

X∈G(µ,σ)

The mean is given as
Alt Text
The variance is given as
Alt Text
The Standard deviation σ=√variance

Now we look onto the empirical formula in Gaussian distribution.

• The first empirical formula is given as

P(µ-σ≤X≤µ+σ)≈68%.

i.e.,68% of the total distribution will be present in the first standard deviation range.

• The second empirical formula is given as

P(µ-2σ≤X≤µ+2σ)≈95%.

This means that 95% of the total distribution will be present in the second standard deviation range.

• The third empirical formula is given as

P(µ-3σ≤X≤µ+3σ)≈99.7%.

This means that 99.7% of the total distribution will be present in the third standard deviation range.

Now we look onto what is called as log-normal distribution.

Log-Normal Distribution

Consider a random variable ‘X’ such that it has the datapoints

X={x1,x2,x3,…..,xn)}

Then ln(X)={ln(x1),ln(x2),ln(x3),…..,ln(xn)}

We say that this random variable 'X' belongs to log-normal distribution if ln(X) is normally distributed and follows the Gaussian distribution.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay