Notes

Probability Distribution

A lot of what we call “uncertainty” in data can be described in a structured way: some outcomes happen often, some rarely, and many fall somewhere in between. A probability distribution is the tool that turns that intuition into something you can calculate with.

What it is

A probability distribution describes how probability is spread across the possible values of a random variable (a quantity whose value isn’t known in advance, like tomorrow’s temperature or a customer’s purchase amount). It answers questions like: “How likely is each outcome?” and “How concentrated or spread out are the outcomes?”

Discrete vs. continuous

There are two common flavors:

  • Discrete distributions: outcomes are countable (0, 1, 2, …). Example: number of defective items in a batch. Probabilities come from a probability mass function (PMF).
  • Continuous distributions: outcomes lie on a continuum (like any real number in a range). Example: house prices or blood pressure. Probabilities come from a probability density function (PDF), and probabilities are for ranges (e.g., between $300k and $320k), not exact points.

How it shows up in real data

Exam scores might look roughly Normal (bell-shaped), daily sales counts might be Poisson, and the chance a user clicks an ad is often modeled with a Bernoulli distribution (click/no click). Key summaries like the mean and variance describe a distribution’s center and spread.

Why it matters in AI/ML

Many ML methods are built on distribution assumptions:

  • Naive Bayes uses class-conditional distributions to compute probabilities.
  • Linear regression often assumes Normally distributed errors to justify uncertainty estimates.
  • Maximum likelihood and cross-entropy loss come from fitting predicted distributions to observed data.

Probability Distribution is a mathematical description of how likelihood is assigned across the possible values of a random variable, either as a probability mass function (discrete) or a probability density function (continuous). It underpins statistical inference and many ML methods by defining uncertainty, enabling likelihood-based training, and supporting Bayesian reasoning. Example: linear regression often assumes Gaussian-distributed errors to derive a tractable loss and confidence intervals.

Imagine a jar of mixed candies: you don’t know which one you’ll grab, but you might know there are more red ones than blue ones. A probability distribution is like a neat description of those chances—how likely each possible outcome is.

In statistics, a probability distribution tells you how “random” results are spread out, like the chances of rolling each number on a die or the likelihood of different heights in a population. In AI and machine learning, models often use probability distributions to handle uncertainty—making predictions with confidence levels instead of pretending they’re always 100% sure.