The alternating chain at the end of Week 4 preserves its target yet refuses to mix. Its problem becomes transparent when we follow what the transition does to functions of the state. That change of viewpoint introduces this week's larger theme: functions themselves can be vectors, and transformations of functions can be studied with the geometry of Week 1.
Finite coordinates never raised a convergence question. Infinite coordinates do. We develop completeness, Fourier expansions and compact operators to distinguish a meaningful limit from an infinite formal expression.
Route through this chapter
- Convergence behaviour of MCMC
- Linear functional analysis: Hilbert spaces, exemplified by the scale of Sobolev spaces; linear operators between them, exemplified by integral operators
Convergence behaviour of MCMC
Recall in MCMC we generate a sequence of random states in , with the goal that
The MH scheme gives a recipe for generating from using an accept-reject comparison against the target density . How good are such approximations?
The full answer to this question is highly technical! In brief, one must examine the Markov operator / transition operator / Koopman operator , which is a linear op. that acts on functions to produce new functions via
Assume is invariant and work on . Conditional Jensen and invariance give , so is a contraction. Constants satisfy . Detailed balance makes self-adjoint.
On the mean-zero subspace , assume the absolute spectral gap condition
In a finite reversible chain this bounds every nonconstant eigenvalue in modulus. In infinite dimension it must control the whole spectrum, including continuous spectrum. The alternating two-state chain has eigenvalue and no absolute gap.
The spectral gap controls the constant in the MCMC error estimate. Consider, for some integrand , the MCMC quadrature error
Expectation against both the initial state and the transition mechanism giving
For a stationary chain and , we have
Insert this into Week 4's covariance sum and sum the geometric series:
This also implies the source's weaker . Nonstationary initialisation requires a separate bias/control argument; the same formula is not asserted for arbitrary initial laws. A small gap makes many transitions worth much less than the same number of independent samples.
For a two-state chain the nonconstant eigenvalue can be followed exactly. Watch the law relax from a point mass to equilibrium. A slow eigenmode keeps memory of the starting state long after the fast chain has mixed.
Probability of state 0
Current two-state laws
Time=0.000, eigenvalues 0.50 (teal) and 0.92 (amber)
Integer times are genuine chain iterates. Between them the curves interpolate the exponential relaxation. The smaller absolute gap relaxes more slowly.
Play once, pause, or scrub to inspect an intermediate state.
Linear functional analysis
Hilbert spaces (of functions)
A norm on a vector space over or is a function s.t.
- for all
- for all ,
- for all
A space equipped with a norm is called a normed space.
If every sequence in that is Cauchy w.r.t. is also convergent, then is called a Banach space. (Completeness!)
E.g.
A norm supplies distance but need not supply angles or perpendicular projection. An inner product adds that geometry; completeness ensures that successive approximations converge inside the space.
An inner product on is a function s.t.
- for all , with equality if and only if
- for all
- for all ,
Every inner product induces a norm via
An inner product space that is complete (every Cauchy seq. converges) is called a Hilbert space.
E.g. is a Hilbert space with respect to the usual Euclidean dot product.
Another e.g. The space of square-summable sequences
(each term ) is a Hilbert space w.r.t. the inner product
This is basically Euclidean space except with (countably!) infinitely many coordinates.
In a Hilbert space , elements/vectors are called orthogonal if , often denoted . They are orthonormal if both and .
A complete orthonormal basis (CONB) for is a collection of vectors , indexed by , s.t.
We will focus only on the case that is (finite or) countable, in which case is a CONB if they are mutually orthonormal and every admits an expansion
for suitable coefficients , in the sense that
In fact, the coefficients in have to be
Furthermore, Parseval's identity states that
So a Hilbert space with a choice of CONB is (up to isometric isomorphism) just the space of square-summable coefficient sequences.
Another e.g. The space of square-integrable functions:
Elements of are measurable functions identified when equal almost everywhere. Otherwise a function supported at a single point would have norm zero without being the zero vector. Consequently at a specified point is not defined for a general element. This matters when we introduce point observations and RKHSs in Week 6.
This has a famous CONB given by the Fourier basis functions indexed by :
In this setting, Parseval tells us that is exactly the sum of squares of the sequence of Fourier coefficients of , where
An infinite expansion needs more than small individual coefficients. Compare the coefficient size with the squared tail remaining after truncation.
The coefficients go to zero like 1/n, while norm error is of order 1/√N. Differentiation multiplies Fourier coefficients by n; square summability can then disappear. This motivates a norm that measures smoothness.
Build the square wave from successive odd Fourier modes. Notice that the broad shape settles before the sharp edges do. The remaining overshoot is a warning to specify the sense in which an infinite series converges.
The next frequency
Partial Fourier reconstruction
Completed odd modes: 1; the next coefficient grows continuously
Away from a jump the sum settles towards ±1. Watch near zero: finer oscillations do not remove the persistent Gibbs overshoot.
Play once, pause, or scrub to inspect an intermediate state.
Sobolev spaces
Parseval tells us that is square integrable if its Fourier coeff. seq. satisfies .
Take a smooth periodic , so . Integration by parts gives
The boundary term vanishes because of periodicity. All Fourier-defined Sobolev spaces below are periodic spaces, denoted ; they are not the unrestricted interval Sobolev spaces.
This observation motivates us to define the Sobolev space of weakly differentiable functions (with square-integrable weak deriv.) by
The weighted coefficient condition requires the weak derivative to lie in .
We can take this idea further:
For negative , interpret elements as periodic distributions, obtained by completion, rather than necessarily ordinary functions. This definition allows non-integer or negative smoothness just by examining weighted summability of Fourier coefficients.
The Sobolev embedding theorem on the periodic -dimensional domain states
For this requires . The inequality is strict: the endpoint is not included. A weighted coefficient condition has become a statement about ordinary derivatives of the continuous representative.
Linear operators between Hilbert spaces
Consider two Hilbert spaces and and linear map .
The kernel and range are
The map is called a bounded linear operator if its operator norm
is finite.
NB there are many practical examples of unbounded operators, e.g. differential operators. The space of bounded linear operators is Banach in operator norm. In general this norm does not come from an inner product (there are exceptions, such as scalar-valued operators).
Every bounded op. has a bounded adjoint operator characterized by
is the analogue of the conjugate transpose of a rectangular matrix.
If and then is said to be self-adjoint. Just as in the matrix case, we call self-adjoint and positive semi-definite (SPSD) if and
and SPD if also
Given and , we define the rank-one operator / outer product / tensor product by
As a special case, if has , then is the orthogonal projection operator onto the line spanned by .
We write for the Hilbert space generated by all linear combinations of operators of this form, with inner product given by
Over real spaces this is the Hilbert tensor product . Over complex spaces our operator convention is conjugate-linear in , so the precise identification is . The reversed first inner product above follows directly by computing the Hilbert–Schmidt inner product; it corrects the source convention.
An infinite-dimensional SPD operator need not have a bounded inverse: is strictly positive, but . Strict positivity is different from a uniform bound with . Regularisation will restore such a bound.
Compact operators
Bounded operators are certainly better than unbounded ones, but it is often necessary to consider yet more special classes of operators.
Theorem For a bounded op. , the following are equivalent, and if one (and hence all) holds, then is a compact operator:
-
(compactness) whenever in is a bounded sequence, the image sequence in has at least one convergent subsequence.
-
(compactness again) the image under of any bounded set in is relatively compact in : its closure is compact.
-
(finite-rank approximation) there exists a sequence of operators , each having finite rank (i.e. finite-dimensional range), such that
- (singular value decomposition) there exist orthonormal sequences in and in and a decreasing null sequence in s.t. has the SVD
in the sense that
(Equivalently: .)
Basic example of a non-compact bounded operator: the identity op. on an infinite-dimensional space, for which for all , so , and for all .
What compactness buys and costs
Truncating after singular modes leaves operator error (with zero beyond finite rank). Thus compactness says that every fixed accuracy admits a finite-dimensional approximation. But recovering the discarded small modes requires division by numbers tending to zero. The same property that makes forward approximation convenient makes inversion unstable.
Exercise. For , compute the norm error of the -mode truncation and the norm of its pseudoinverse. Explain why one decreases while the other increases. Week 6 asks which spectral decay rates support kernels and pointwise prediction.