Home/Learn/Math for AI/Probability Distributions & the Normal Distribution

Probability Distributions & the Normal Distribution

Intermediate
Probability & Statistics

A distribution describes how likely each value is; the normal (bell curve) is the default model of natural variation and shows up in weight initialization, noise, and the Central Limit Theorem.

Overview

A probability distribution is the full picture of an uncertain quantity — every possible value and how likely it is. You will meet a handful repeatedly: the Bernoulli/Binomial for yes-no events, the categorical for multi-class outcomes (exactly what a softmax layer outputs), the uniform for "equally likely", and above all the normal (Gaussian) distribution, the bell curve defined by a mean and a standard deviation. The normal is everywhere because of the Central Limit Theorem: sums of many independent random effects tend toward a bell curve, so it is a natural model for noise and measurement error. Practically, neural-net weights are initialized from carefully scaled normals, dropout and augmentation inject noise, and generative models learn to map simple normal noise into complex data. Recognising which distribution fits a situation is a core modelling skill.

The normal distribution: mean and spread

A Gaussian is fully described by its mean (center) and standard deviation (width). Sampling from it is one call — the same call used to initialize network weights.

Normal(mean, std): the 68–95–99.7 rule
import numpy as np
rng = np.random.default_rng(0)

samples = rng.normal(loc=0.0, scale=1.0, size=10000)   # mean 0, std 1
print(round(samples.mean(), 3), round(samples.std(), 3))  # ~0 ~1

# ~68% of a normal lies within 1 std, ~95% within 2 std:
within1 = np.mean(np.abs(samples) < 1)
print(round(within1, 3))    # ~0.68

Central Limit Theorem: why bell curves are everywhere

Average many samples from ANY distribution and the averages form a bell curve. This is why the normal is the default model for aggregated noise.

CLT: averages tend toward a normal, whatever the source
import numpy as np
rng = np.random.default_rng(0)

# Start from a very non-normal (uniform) distribution:
means = [rng.uniform(0, 1, size=30).mean() for _ in range(5000)]
means = np.array(means)
print(round(means.mean(), 3))   # ~0.5
print(round(means.std(), 3))    # small -> tight bell around 0.5

Key Points to Remember

  • 1A distribution lists every possible value and its probability
  • 2Softmax outputs a categorical distribution over classes
  • 3The normal is set by mean & std; 68/95/99.7% within 1/2/3 std
  • 4Central Limit Theorem: sums/averages of many effects → normal; models noise & weight init

Interview Questions

Sign in to ask Aria
1

What two parameters define a normal distribution, and what is the 68–95–99.7 rule?

EasyInfosys
2

State the Central Limit Theorem and give an ML consequence of it.

HardGoogle
3

What kind of distribution does a softmax layer produce?

MediumAmazon

Ask Aria about Probability Distributions & the Normal Distribution

Your personal AI tutor — ask anything about this concept

Revision Status

Personal Notes

Sign in to save personal notes for this topic.

Discussion

Sign in to join the discussion.

Loading discussion…