Working With Data Guide 2 of 8 · tap to switch
Probability Distributions (Normal, Binomial & CLT)
The recurring shapes behind real-world data: bell curves, click counts, arrival rates, waiting times, and the Central Limit Theorem.
Every time you step onto a London train platform, check website clicks, or look at house prices, the numbers do not appear at random. They follow recognizable shapes called probability distributions.
Think of your morning commute. Most days take right around 32 minutes. A few lucky days with green lights take 24 minutes; a few rough rainy days stretch past 44 minutes. Because dozens of tiny independent delays add together, your commute naturally forms the famous Normal (Gaussian) bell curve.
Every Normal bell curve is defined by just two everyday numbers: its center (the average, or mean, written with the Greek letter μ) and its spread (the standard deviation, shortened to SD and written with the Greek letter σ, which measures how far a typical day wanders from the average). Once you know those two numbers, the famous 68-95-99.7 rule gives you an instant mental map of the whole curve: 68% of values fall within ±1 standard deviation (±1σ), 95% fall within ±2 standard deviations (±2σ), and 99.7% fall within ±3 standard deviations (±3σ). Anything beyond 3 standard deviations is a rare 1-in-370 surprise.
Adjust the average commute time, spread, and late-meeting cutoff below, and click the 68-95-99.7 bands to read exact late-arrival probabilities right off the curve.
Notice how widening the spread flattens the peak and pushes more area into the red late-arrival tail, even when your average commute does not change by a single minute. That is why knowing only the average can fool you: two routes with the same 32-minute average behave very differently if one has a 3-minute spread and the other has a 10-minute spread.
Beyond the bell curve: three shapes you meet every week
A common rookie mistake in machine learning is assuming every column is a symmetric bell curve. In reality, three other classic families govern huge parts of business and science:
- Binomial (fixed tries, yes/no outcomes): Counting how many yes/no wins happen out of a fixed number of tries (for example, how many of 20 subscribers click your email).
- Poisson (event counts in a window): Counting independent events arriving in a fixed hour or square kilometer with no strict ceiling (such as helpline calls arriving per hour).
- Exponential (waiting time between events): Measuring waiting time until the next random arrival (minutes waiting for a randomly spaced bus).
Switch between all three below and slide their controls to feel how each real-world process shapes its probability curve.
Why the bell curve shows up everywhere: the Central Limit Theorem
Wait: if dice rolls are completely flat and online shop orders are wildly lopsided, why do statisticians keep drawing bell curves?
Because of the Central Limit Theorem (CLT): even when individual measurements look flat or wildly lopsided, taking the average of a batch lets lucky highs cancel out unlucky lows. As your batch gets bigger, the distribution of those batch averages rapidly turns into a tight Normal bell curve. Better still, the wobble shrinks at a clean pace: averaging 4x as many samples cuts your wobble in half (and 16x as many cuts it to a quarter).
Pick Lopsided Skewed World or Flat 6-Sided Die below, then step from 1 draw up to 30 draws and watch the bell curve assemble itself out of pure asymmetry.
In math shorthand, that “4x more samples cuts wobble in half” pattern is written as , where is the number of draws in each batch. That is why A/B tests, election polls, and ranges of plausible accuracy (called confidence intervals) work so reliably: even if individual customer spends are wildly skewed, the average spend across 500 visitors behaves cleanly like a Normal bell curve.
Fixing heavy right skew with a single Log Transform
Money, social media likes, and city populations rarely add small equal increments. They grow by multipliers (10% raises, viral reposts), creating Log-Normal right-skewed shapes where 90% of rows pile up on the left while a handful of huge spikes stretch the scale tenfold.
A base-10 logarithm simply counts how many times you multiply by 10 (£10 becomes 1, £100 becomes 2, £1,000 becomes 3), turning huge 10x jumps into equal calm steps! And because the logarithm of zero is undefined, adding 1 first (log(1 + x)) handles zero-value (£0) rows safely without crashing.
Switch between Raw £ Spend (Right-Skewed) and After Log Scale (Symmetric Bell) below to see why applying a logarithm is one of the highest-impact data-prep moves in tabular machine learning.
See exact PDFs/PMFs, the Central Limit Theorem & power transformsThesis / Reference
1. Normal (Gaussian) PDF:
2. Discrete & Waiting-Time Families:
- Binomial ( independent Bernoulli() trials): , mean , variance .
- Poisson (arrival rate ): , where mean equals variance ().
- Exponential (memoryless inter-arrival time with rate ): for , satisfying .
3. Lindeberg-Lévy Central Limit Theorem: Let be i.i.d. random variables with finite mean and finite variance . Then the standardized sample mean converges in distribution to a standard Normal:
4. Power Transforms for Skewed Features: For non-negative skewed features containing zeros, (np.log1p) avoids . When data spans negative and positive values or requires an optimal exponent, Box-Cox () and Yeo-Johnson (any real ) estimate the power parameter via maximum likelihood strictly on the Training Set.
See distributions & log1p transform in PythonOptional Code
import numpy as np
from scipy import stats
# 1. Exact tail probability: P(commute > 40 min) when mean=32, sd=6
late_prob = 1 - stats.norm.cdf(40, loc=32, scale=6)
print(f"Chance of taking > 40 min: {late_prob:.1%}")
# 2. Safe log transform for skewed positive/zero money features
orders = np.array([12, 18, 24, 35, 60, 140, 460, 1100])
orders_log = np.log1p(orders)
print("Raw skew:", round(stats.skew(orders), 2), "| Log skew:", round(stats.skew(orders_log), 2))What to carry into real datasets
- Match the distribution to the story: Continuous symmetric noise looks Normal; fixed-trial counts are Binomial; arrival counts per hour are Poisson; waiting times are Exponential.
- Four times the samples cuts wobble in half: Because the spread of sample averages shrinks at
1/√n, halving your uncertainty takes 4x as many samples. - Log-transform heavy right tails before linear or distance models: Whenever a money or traffic column spans huge multiples (like £10 to £1,000), apply a logarithm, adding 1 first if zeros exist.
- Watch for corrupted values hiding in the tails: Next up in Missing Data & Outliers, we tackle blank spreadsheet cells, entry typos, and real extreme signals.
Quick Intuition Check
Four quick real-world scenarios. No scores, just test your intuition.
Battery life for a phone model follows a Normal curve with mean 14 hours and standard deviation 1.5 hours. Roughly 95% of phones last between which two values?
A café wants to model how many customers walk through the door each hour (average 9/hour, no fixed ceiling). Which distribution fits naturally?
Individual website order values are heavily right-skewed. If you repeatedly take random batches of 50 orders and plot each batch's average, what shape appears?
When using a logarithm to compress a heavily right-skewed revenue column that includes £0 rows, you should add 1 before taking the logarithm so zero-value rows do not crash.
Common Questions
What is a probability distribution in plain English?
What is the 68-95-99.7 rule for the Normal distribution?
What is the difference between Binomial and Poisson distributions?
Why is the Central Limit Theorem so important in statistics and machine learning?
Why do data scientists apply log transforms to skewed features like prices or incomes?
Related Visual Guides
Descriptive Statistics
How to read any dataset in minutes: data types, mean vs. median, standard deviation, IQR box plots, and why averages alone can mislead.
Missing Data and Outliers
How to handle blank spreadsheet cells, catch outliers without falling for the Z-score masking trap, and tell typos apart from real signal.
LLM Temperature, Top-K & Top-P Sampling
See how next-token prediction turns logits into fluent prose, why Temperature reshapes probabilities, why Top-P beats Top-K, and why hallucinations happen.
Written & illustrated by Muhammad Aashir Irshad · Updated December 2026 · Free open-access reference
Cite this guide in a paper, thesis, or course (BibTeX & APA)
@misc{irshad2026probabilitydistributions,
author = {Irshad, Muhammad Aashir},
title = {Probability Distributions (Normal, Binomial & CLT): Interactive Visual Guide},
howpublished = {SeeingML},
year = {2026},
month = {dec},
url = {https://seeingml.com/learn/probability-distributions/},
note = {Interactive visual guide}
} Irshad, M. A. (2026). Probability Distributions (Normal, Binomial & CLT): Interactive Visual Guide. SeeingML. https://seeingml.com/learn/probability-distributions/