Basis Functions
In TransportMaps.jl, the basis must match the reference distribution used by the map. The reference should have the same support as the target distribution. If supports do not match, consider an isoprobabilistic transformation before constructing the map.
Supported reference-basis pairings are:
| Reference distribution | Support | Basis family |
|---|---|---|
| Hermite-based bases | ||
| Legendre polynomials | ||
| Shifted Legendre polynomials |
This compatibility is enforced by the map constructor.
Basis functions define the expansion of
Standard Normal Reference
Often, a standard normal reference with the probability density function
is chosen when the reference measure should have an infinite support. In this case, a probabilistic Hermite polynomial basis is a natural choice since they are orthogonal with respect to this density and satisfy the three-term recurrence
with
Orthonormal polynomial bases are useful because projections are stable and truncated expansions give the best
We also support edge-controlled Hermite variants that improve tail behavior while keeping the Gaussian reference [4], [5]:
Probabilistic Hermite basis
Linearized Hermite basis
Gaussian-weighted Hermite basis
Cubic-spline-weighted Hermite basis
Probabilistic Hermite Basis
We first visualize the standard probabilistic Hermite basis.
Construct the basis with HermiteBasis.
basis = HermiteBasis()If we zoom out, we can see that the tails grow quickly for large
Linearized Hermite Basis
Linearized Hermite polynomials (edge-linearized basis) were introduced in [4] to control growth for large
The bounds are chosen here as the 0.01 and 0.99 quantiles of the reference. The normalization follows [4]:
basis = LinearizedHermiteBasis(Normal(), 4, 1)
println("Linearization bounds: ", basis.linearizationbounds)Linearization bounds: [-2.326347874040846, 2.326347874040846]Edge-Controlled (Weighted) Hermite Basis: Gaussian Weight
Edge control modifies each Hermite polynomial with a decaying weight to reduce growth in the tails [5]. Using a Gaussian weight gives:
basis = GaussianWeightedHermiteBasis()Note
In order to preserve some extrapolation properties, the weights are only applied to polynomials of degree
Edge-Controlled Hermite Basis: Cubic Spline Weight
A cubic spline weight smoothly damps the polynomials outside a radius
basis = CubicSplineHermiteBasis(Normal())Uniform[-1, 1] Reference
For a uniform reference on
with
Use this basis with Uniform(-1, 1).
basis = LegendreBasis()Uniform[0, 1] Reference
For a uniform reference on
Use this basis with Uniform(0, 1).
basis = ShiftedLegendreBasis()This page was generated using Literate.jl.