Skip to content

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 distributionSupportBasis family
 Hermite-based bases
  Legendre polynomials
Shifted Legendre polynomials

This compatibility is enforced by the map constructor.

Basis functions define the expansion of . To turn that expansion into a monotone map, see Rectifier Functions in the map parameterization manual.

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   and  .

Orthonormal polynomial bases are useful because projections are stable and truncated expansions give the best approximation under the chosen reference measure. In the Gaussian case, Hermite polynomials are the natural choice in the Wiener-Askey scheme [9].

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.

julia
basis = HermiteBasis()
Standard Hermite BasisStandard Hermite Basis

If we zoom out, we can see that the tails grow quickly for large : Standard Hermite BasisStandard Hermite Basis

Linearized Hermite Basis ​

Linearized Hermite polynomials (edge-linearized basis) were introduced in [4] to control growth for large by replacing the polynomial with a tangent line outside data-dependent bounds :

The bounds are chosen here as the 0.01 and 0.99 quantiles of the reference. The normalization follows [4]:   for   and   .

julia
basis = LinearizedHermiteBasis(Normal(), 4, 1)
println("Linearization bounds: ", basis.linearizationbounds)
Linearization bounds: [-2.326347874040846, 2.326347874040846]
Linearized Hermite BasisLinearized Hermite Basis

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:

julia
basis = GaussianWeightedHermiteBasis()
Gaussian Weighted Hermite BasisGaussian Weighted Hermite Basis

Note

In order to preserve some extrapolation properties, the weights are only applied to polynomials of degree  , as noted in [5].

Edge-Controlled Hermite Basis: Cubic Spline Weight ​

A cubic spline weight smoothly damps the polynomials outside a radius [5]. Here, is based on 0.01 and 0.99 quantiles .

julia
basis = CubicSplineHermiteBasis(Normal())
Cubic Spline Weighted Hermite BasisCubic Spline Weighted Hermite Basis

Uniform[-1, 1] Reference ​

For a uniform reference on  , the matching family is Legendre. The Legendre polynomials are orthogonal with respect to the uniform measure on   and satisfy

with   and  .

Use this basis with Uniform(-1, 1).

julia
basis = LegendreBasis()
Legendre BasisLegendre Basis

Uniform[0, 1] Reference ​

For a uniform reference on , the matching family is shifted Legendre. These polynomials are obtained from Legendre polynomials via

Use this basis with Uniform(0, 1).

julia
basis = ShiftedLegendreBasis()
Shifted Legendre BasisShifted Legendre Basis

This page was generated using Literate.jl.