Introduction
Transport maps describe a complicated probability distribution as a deterministic transformation of a simpler one. This provides a common framework for sampling, density estimation, and Bayesian inference [3]. This introduction adapts that framework to the notation and workflows used in TransportMaps.jl; [5] provides a more extensive tutorial.
Reference and target distributions
Let
The notation
Here
In one dimension, an increasing transport can be written in terms of the reference and target cumulative distribution functions:
For a uniform reference on
Monotone triangular maps
TransportMaps.jl uses lower-triangular maps, whose
This structure follows the Knothe–Rosenblatt rearrangement [1, 2], which extends the one-dimensional CDF construction through successive conditional distributions. For a fixed ordering of the variables and suitable continuous positive densities, it defines an increasing triangular transport [3].
Triangularity makes the Jacobian determinant inexpensive:
To invert the map at
Polynomial parameterization and rectification
Following the map parameterization manual, write the parameterized components as
where
The multi-index set
Bayesian inference from a target density
In Bayesian inference, the target is a posterior over parameters
The evidence
Substituting
With reference quadrature nodes
Quadrature Methods describes deterministic, sparse-grid, and sampling-based approximations of this reference expectation. The optimization manual covers optimizers and optional coefficient regularization. Gradient-based methods such as the default L-BFGS use derivatives of the target log-density, including derivatives through a forward model when it appears in the likelihood. The objective need not be convex.
In the package, pass a callable log-density MapTargetDensity, then fit with optimize!(M, target, quadrature). For this direction, evaluate(M, reference_samples) produces approximate target samples. No posterior training samples are required. The Bayesian BOD example demonstrates the full workflow; [6] discusses transport-based Bayesian inference in structural health monitoring.
Learning a map from samples
When target samples
This is also maximum likelihood estimation of the normalized model density
provided
The package stores the fitted direction: for a sample-fitted map, evaluate(M, target_samples) maps to the reference and inverse(M, reference_samples) generates approximate target samples. pullback(M, x) evaluates the model density above. See Banana: Map from Samples, including optional linear standardization with LinearMap and ComposedMap.
This page was generated using Literate.jl.