This page is generated by scripts/equations.py (uv run poe equations); do not edit it by hand. It lists every display equation of the tutorials once, with the label a page uses to reference it ([](#eq-cov-nd)) and the section that derives it. Each equation is written in exactly one place, and every other page links to it by its label.
Symbols keep one meaning across the tutorials. Shapes use Dx for the dimension of the data and of the latent, which a bijection keeps equal. In code gives the dimension name a notebook’s jaxtyping annotations use for the symbol (Float[ArrayLike, "sample state"]).
Symbol
Meaning
Shape
In code
x
input, a data point
RDx
state
z
latent, the Gaussianized point
RDx
latent
Dx
dimension of the data and of the latent, which a bijection keeps equal
N
state, latent
x,z
input and latent in one dimension
R
state, latent
f
the invertible map from data to latent, z=f(x); a conditional flow’s map f(x;y) is invertible in x for each context y
—
—
f′(x)
derivative of a 1-D map
R
—
Jf(x)
Jacobian of f at x, rows are outputs
RDx×Dx
—
px,pz
densities of the input and of the latent
—
—
N(z;0,I)
standard-normal density, the base of every flow here
R>0
—
I
identity matrix
RDx×Dx
—
A,b
matrix and offset of an affine map; the weight of a 1×1 convolution, and ActNorm’s per-channel location; the generator and offset of a matrix-exponential layer, z=etAx+φ(t)b; in Part 6 also a square matrix whose trace is estimated
RDx×Dx,RDx
—
M
fixed mixing matrix
RDx×Dx
—
fk
layer k of a composed map f=fK∘…∘f1
—
—
xk
intermediate state after layer k, x0=x, xK=z
RDx
—
K
number of layers in a composed map, or of reflections in a Householder product
N
—
w,w1,w2
auxiliary standard-normal draws used to build toy data
R
—
d
coordinate index, d=1,…,Dx
N
—
zd
coordinate d of z, with density pzd, mean μd and standard deviation σd
R
—
N,xn
number of samples and sample n
N,RDx
sample
F,Fd
CDF of a one-dimensional distribution, of coordinate d of the data
[0,1]
—
Φ,Φ−1
standard-normal CDF and its inverse, the probit
—
—
g(x)d=Φ−1(Fd(xd))
marginal Gaussianization, one coordinate at a time
—
—
Q,Qk
orthogonal rotation, Q⊤Q=I, of layer k
RDx×Dx
—
M
number of mixture components
N
component
wm,μm,σm
weight, mean and scale of mixture component m
R≥0,R,R>0
—
τ
quantile level, τ=F(x)
(0,1)
quantile
x(n),x⋆
bisection iterate after n steps, and the root
R
step
ε
clamp that keeps a CDF inside [ε,1−ε] before the probit
R>0
—
δ
tolerance of the round-trip test
R>0
—
μx,Σx
mean and covariance of the input
RDx,RDx×Dx
—
P(μx,Σx)
set of all densities with that mean and covariance
—
—
H[p]
differential entropy of a density, in nats
R
—
Neg[p]
negentropy, the entropy gap to the Gaussian with the same mean and covariance
R≥0
—
TC[pz]
total correlation, the sum of marginal entropies minus the joint entropy
R≥0
—
γ1,d,γ2,d
skewness and excess kurtosis of coordinate d
R
—
ED[pz]
energy distance from pz to N(0,I)
R≥0
—
m
the data after one marginal Gaussianization only
RDx
—
T
one-dimensional marginal map, T=Φ−1∘F
—
—
F^N
empirical CDF of N samples
[0,1]
—
F^,p^x
estimated CDF of one coordinate and its density, p^x=F^′
[0,1],R≥0
—
U(0,1)
uniform distribution on the unit interval
—
—
λ,λN
gap in the DKW inequality, and its 95% band at N samples
R>0
—
L,l
number of bins of a histogram or a spline, and the bin or knot index
N
bin, knot
Nl
number of samples in histogram bin l
N
—
h
width of a histogram bin, or bandwidth of a kernel
R>0
—
p^h
kernel density estimate with bandwidth h
—
—
xn
sample n of a one-dimensional dataset
R
—
BIC(M)
Bayesian information criterion of an M-component mixture
R
—
xl,zl
input and output knots of a spline
R
knot
B
half-width of the spline interval [−B,B]
R>0
—
ξ
position of x inside its spline bin
[0,1]
—
ηl,sl,ωl
slope at knot l, slope of bin l, and ηl+1+ηl−2sl
R>0,R>0,R
—
q2,q1,q0
coefficients of the quadratic that inverts a rational-quadratic spline
R
—
θ
parameters of a CDF or of a trainable layer
—
—
L(θ)
mean negative log-likelihood of the data
R
—
αm,ρm
unconstrained logit and raw scale of mixture component m
R
—
F′(x),F′′(x)
first and second derivative of a CDF F, the first being its density
R
—
an,bn
bracket around the root after n steps
R
—
x~(n+1)
Newton proposal of the safeguarded hybrid
R
—
C
constant of quadratic convergence
R>0
—
sg,x^
stop-gradient operator, and the one-step root
—
—
Nt,Nv,Nb
numbers of training rows, held-out rows and points per batch
N
train, held_out, batch
θ^
trained parameters, from the epoch with the best held-out loss
—
—
KL[p∥q]
Kullback–Leibler divergence of p from q
R≥0
—
V,Λ
principal axes (the columns of V) and the diagonal of variances along them, Σx=VΛV⊤
RDx×Dx
—
G,R
a matrix of independent standard normal entries and the upper-triangular factor of its QR factorisation
RDx×Dx
—
K,W
Picard’s whitening matrix and its orthogonal unmixing of the whitened data
RDx×Dx
—
UK,VK
left and right singular vectors of K
RDx×Dx
—
u,uk
normal vector of a Householder reflection, of reflection k
RDx
—
H(u)
Householder reflection across the hyperplane orthogonal to u, I−2uu⊤/∥u∥2
RDx×Dx
—
Q⋆
target orthogonal matrix of a fit
RDx×Dx
—
S,ψ
skew-symmetric matrix, S=−S⊤, the parameter of the Cayley map and the matrix exponential, and the angle in one of its eigenvalues ±iψ
RDx×Dx,R
—
∥⋅∥F
Frobenius norm
—
—
L0(A),L⋆(Q)
the loss a flow reports when a free matrix’s log-determinant is booked as zero, and the best mean negative log-likelihood over a per-coordinate affine map after the rotation Q
R
—
a,xˉ
per-coordinate scales of an affine map, and the sample mean
RDx
—
P
number of positions of an image, each holding a channel vector
N
—
L,U
unit lower-triangular and upper-triangular factors of A, the diagonal of U positive
RDx×Dx
—
Π
a fixed permutation matrix
RDx×Dx
—
s
ActNorm’s positive per-channel scale
RDx
—
x(n)
the n-th smallest of the N values of one coordinate (an order statistic)
R
—
F^k,d
midpoint empirical CDF of coordinate d of the state xk−1, fitted by RBIG layer k
[0,1]
marginal
ej,J
unit direction j of the J directions a projection test uses
RDx,N
directions
F^N,j,KSmax
empirical CDF of the projections ej⊤zn, and the largest Kolmogorov–Smirnov distance of a projection to N(0,1)
[0,1]
projection_ks
β
strength of the shear that bends a standard-normal cloud into a banana
R
—
xk,d
coordinate d of the state xk after RBIG layer k
R
—
Δk,Δ⋆
KL divergence removed by RBIG layer k, the summed divergences of its input’s marginals from N(0,1), and the 95% quantile of its estimate on standard-normal data
R≥0
traces, reduction_floor
us,xs
level and value of the seam above which a parametric tail replaces the empirical CDF, mirrored below 1−us
[0,1],R
q_tail, seam
G
CDF of the generalised Pareto distribution fitted to the exceedances x−xs over the seam
—
—
c,pc
a count, and the probabilities of the counts
N
counts
u
uniform noise added to a count to dequantise it, u∼U(0,1)
[0,1)
—
fθ
a flow from data to latent whose blocks have trainable parameters θ; fθ(x;y) when it reads a context
—
gaussianization_flow
κ
scale of the toy map fκ(x)=κx
R>0
scales
μz,σz
location and scale of a trainable normal base, N(μz,diag(σz2))
RDx,R>0Dx
base_dist.loc, base_dist.scale
xA,xB
the passive half of a coupling layer’s input, which it copies, and the active half, which it transforms
RDA,RDB
—
DA,DB
sizes of the passive and active halves of a coupling, DA+DB=Dx
N
—
cϕ
the conditioner of a coupling layer, a neural network with weights ϕ that maps the passive half to the transformer’s parameters, θ=cϕ(xA); a conditional coupling also reads the context, θ=cϕ(xA,y)
—
nn_width, nn_depth
Tθ
the transformer of a coupling layer, a monotone one-dimensional map with parameters θ applied to each active coordinate
—
—
μB,σB
shift and positive scale of an affine coupling’s active half, both functions of the passive half
RDB,R>0DB
—
r0,t0
positive scale and shift of the linear part of a deep-sigmoid transformer
R>0,R
base_scale, bias
rm,km,tm
positive amplitude, positive slope and shift of sigmoid unit m of a deep-sigmoid transformer
R>0,R>0,R
amplitudes, slopes, shifts
ς
the logistic sigmoid, ς(u)=1/(1+e−u)
—
—
b
the bound on a mixture-CDF coupling’s log-scales, which pass through btanh(u)
R>0
log_scale_bound
Wout,bout
weight and bias of a conditioner’s readout layer; a fresh gauss_flows coupling has Wout=0, so its parameters are bout whatever the copied half
—
—
v(xA)
output of the conditioner’s last hidden layer, the features the readout weighs
—
—
r
residual branch of a residual map y=x+r(x)
—
—
ar,ωr
amplitude and frequency of the toy residual branch r(x)=arsin(ωrx)
R
—
Lip(r)
Lipschitz constant of r; the residual map is invertible when it is below 1
R
—
vθ(t,x)
vector field of a continuous flow, a neural network with weights θ; in a latent ODE, the field of the latent state
RDx
DiffeqMLP, vector_field
t
time of a continuous flow, from the latent at t=0 to the data at t=1; a matrix-exponential layer takes it as its condition through pack_time_control
[0,1]
t_span
x(t)
state of the ODE at time t, with x(0)=z and x(1)=x
RDx
—
Jv
Jacobian ∂vθ/∂x of the vector field, whose trace is the divergence
RDx×Dx
—
ϵ,ϵi
probe of Hutchinson’s estimator, with zero mean and E[ϵϵ⊤]=I (Rademacher or standard normal)
RDx
—
Np
number of Hutchinson probes
N
num_probes, n_hutchinson_samples, probe_count
tr(A)
Hutchinson’s estimate of the trace of A from Np probes
R
—
ϵˉ12
mean of ϵi,1ϵi,2 over a 2-D FFJORD’s fixed Rademacher probes, which sets its trace error
[−1,1]
—
φ
time gate of a matrix-exponential layer, a scalar function with φ(0)=0 (TimeIdentity, TimeTanh, TimeFourier)
—
—
μ^x,Σ^x
sample mean and sample covariance (divided by N) of the training rows
RDx,RDx×Dx
—
z0,Dz
code of a latent ODE, the state of its latent ODE at t=0, and its dimension
RDz,N
code
X,Xn
observations {(ti,xi)}i=1No of one trajectory, and of training trajectory n
—
—
ti,No
observed times of one trajectory and their number
R,N
observation
decθ
decoder of a latent ODE, with generative weights θ shared with its field vθ
—
—
vϕ,h,h′,Dh
encoder’s vector field, a hidden activation (in Part 6 the encoder’s hidden state, in Part 7 the activation a conditioning layer modulates), the modulated activation, and the hidden dimension
,RDh,RDh,N
hidden
x^(t)
piecewise-linear path through one trajectory’s observations
RDx
—
σobs
fixed noise scale of a latent ODE’s observations; the noise standard deviation of an inverse problem’s observation
R>0
—
qϕ(z0∣X),μϕ,σϕ
encoder’s diagonal Gaussian posterior over the code, its mean and its standard deviations
,RDz,R>0Dz
—
ε
standard-normal draw of a reparametrised sample, z0=μϕ+σϕ⊙ε; in Part 7, the noise of an observation, ε∼N(0,σobs2I)
RDz,RDy
—
qˉ
aggregate posterior, the average of the training trajectories’ posteriors
—
—
Iq[n;z0]
mutual information between the index of a training trajectory and its code under the encoder
R≥0
—
α(t),α0,s
angle of a toy spiral, its start angle and its direction of turn (±1)
R,[0,2π),{−1,1}
—
y,y,Dy
context of a conditional flow (a one-hot label, a covariate, or the observation y=Hx+ε of an inverse problem) and its dimension; the flow learns px(x∣y)
RDy,N
condition, cond_dim, context, observation
β(y),γ(y)
shift and positive scale that a context sets by FiLM, as in Conditioner’s γ(y)⊙g(x)+β(y); for a conditional diagonal Gaussian base, its mean and standard deviations
RDx,R>0Dx
modulation(condition)
g
in Part 7, the inner bijection that Conditioner wraps between FiLM steps on its input and its output
—
—
z~
the latent standardised by a conditional base, (f(x;y)−β(y))⊘γ(y)
RDx
latent
w
standard-normal noise that generates a toy conditional family
RDx
—
pd(xd∣y)
conditional marginal density of coordinate d, the factor an elementwise conditional flow learns
—
—
χ22,Fχ22
chi-square distribution with two degrees of freedom, the law of ∥z∥2 for z∼N(0,I2), and its CDF 1−e−s/2
—
—
u~
probability integral transform of ∥z∥2, uniform on [0,1] for a calibrated two-dimensional flow
[0,1]
pit
H
linear observation operator of an inverse problem (Householder’s H(u) always carries its argument)
RDy×Dx
observation_operator
p(x∣y)
exact posterior of the state given an observation
—
—
qθ(x∣y)
amortised posterior, a conditional flow trained on simulated pairs (x,y)
—
—
μx∣y,Σx∣y
mean and covariance of the Gaussian posterior of a linear-Gaussian inverse problem
RDx,RDx×Dx
posterior_mean, posterior_cov
H[x∣y]
conditional entropy of the state given the observation, the floor of the conditional NLL
R
—
Δ
amortisation gap, Ep(y)KL[p(x∣y)∥qθ(x∣y)]
R≥0
—
a(x)
acceptance probability of the rejection sampler, the likelihood scaled to a maximum of 1