Probability Distribution

A probability distribution assigns probabilities to possible outcomes. In machine learning, data, labels, latent variables, model outputs, noise, and deployment environments are often described as distributions.

For a discrete variable:

For a continuous variable:

Joint, Marginal, and Conditional

Joint distribution:

Marginal distribution:

Conditional distribution:

The product rule factorizes a joint distribution:

For a sequence , the chain rule is:

This is the probability factorization behind autoregressive modeling.

Independence

Two variables are independent when:

Conditional independence is:

Many modeling assumptions are independence assumptions: IID datasets, factorized likelihoods, naive Bayes models, token factorization choices, and some loss decompositions.

Distribution Over Structured Objects

Distributions can be defined over vectors, sequences, graphs, coordinates, or sets:

where may be a class set, sequence vocabulary, molecule graph space, coordinate space, or action space. The output space determines whether probabilities are easy to normalize or require approximation.

Model vs Data Distribution

Machine learning often compares the data distribution and a model distribution:

Evaluation asks whether performance under a held-out or deployment distribution supports the intended claim.

Shift

Distribution shift can be written as:

The shift may be in , , label availability, metadata, source mixture, or task definition.

Checks

  • What random variable does the distribution describe?
  • Is the distribution over inputs, labels, latents, outputs, or noise?
  • Is the model estimating , , , or a score?
  • Is the variable discrete, continuous, structured, or mixed?
  • Does the training distribution match the deployment distribution?
  • Is the factorization assumption explicit?
  • Are independence assumptions valid for the example unit and split unit?
  • Is the distribution normalized, implicit, energy-based, or only sampled from?
  • Which distribution is used for training, validation, test, and deployment?