Target distribution
A target distribution is the probability distribution that a sampling procedure is intended to generate, explore, or approximate.
Machine Learning Algorithms in Depth
A target distribution is the probability distribution from which a sampling method aims to generate samples.
- How it is used
- Defines what Metropolis–Hastings samples should follow and which distribution governs an importance-sampling expectation.
- How deep it goes
- Derives an MH correction through detailed balance and defines importance weights as p(x)/q(x), then implements both algorithms.
- Examples
- Uses a two-dimensional Gaussian mixture for MH and an unnormalized Chi-shaped target for an importance-sampling expectation.
- What you can do after
- Build it from scratch as an MH target density or use it with proposal-density weights to estimate an expectation.
Read how Machine Learning Algorithms in Depth explains target distribution →
Fabulous Adventures in Data Structures and Algorithms
A target distribution is the probability distribution that a sampling procedure is intended to reproduce.
- How it is used
- Guides sampling procedures toward reproducing a chosen probability distribution.
- How deep it goes
- Treats targets operationally through quantile inversion, rejection acceptance, and Metropolis chains.
- Examples
- Uses standard uniform, continuous uniform, normal, and posterior distributions as sampling contexts.
- What you can do after
- Apply it via quantile functions, rejection sampling, or the Metropolis algorithm to generate samples from a desired distribution.
Read how Fabulous Adventures in Data Structures and Algorithms explains target distribution →
Also covered in
- Grokking BayesIn early access (MEAP)
What to know first
- probability densityA probability density is a nonnegative function describing the distribution of a continuous random variable, with probabilities over intervals or regions given by integrating the function.
- probability distributionA probability distribution is a mathematical specification assigning probabilities or probability densities to the possible values or outcomes of a random variable.
Related concepts
- markov chain monte carloused by · Markov chain Monte Carlo is a family of sampling algorithms that uses a Markov chain to generate samples from a target probability distribution.
- metropolis-hastings samplingproduced by · Metropolis-Hastings sampling is a Markov chain Monte Carlo method that proposes candidate states and accepts or rejects them with probabilities chosen to preserve a target distribution.
- approximate distributionaddressed by · An approximate posterior distribution is a tractable probability distribution chosen or optimized to approximate a target posterior distribution over unknown quantities.
- inverse cumulative density functionproduced by · An inverse cumulative distribution function maps a cumulative probability to the corresponding value of a random variable.
- proposal distributionconfigured by · A proposal distribution is a probability distribution from which a sampling or inference algorithm generates candidate states or samples.
- rejection samplingproduced by · Rejection sampling is a method that generates candidate samples and accepts those meeting a specified criterion while discarding the others.
Questions about target distribution
What is target distribution?
A target distribution is the probability distribution that a sampling procedure is intended to generate, explore, or approximate.
Which Manning books explain target distribution?
Machine Learning Algorithms in Depth and Fabulous Adventures in Data Structures and Algorithms.
What should I know before learning target distribution?
Manning books that teach target distribution usually introduce probability density and probability distribution first.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

