ES98A · Course contents

Week 7: Random functions in full: covariance operators, stochastic processes, and KL expansions

Choose a function by choosing its coefficients. Week 5 made this a deterministic construction; now let the coefficients vary randomly. How fast must their amplitudes decay for a draw to be an actual vector in the desired space?

This question links three views of the same uncertainty: random coefficients, a covariance operator and a covariance kernel. Parseval will turn function-space variance into a sum of scalar variances. The sum is the key difference between a finite random vector and an infinite random function.

Route through this chapter

Random elements of Hilbert spaces

Throughout the Hilbert-valued discussion, take HH separable and random elements strongly measurable. Gaussian process and gPC examples below are real unless explicitly labelled complex. Given a Hilbert space HH (e.g. a Hilbert space of real-valued functions on a set XX), an HH-valued random variable is just a (measurable) function u:Ω→Hu:\Omega\to H defined on a probability space (Ω,F,P)(\Omega,\mathcal{F},\mathbb{P}).

Some obvious questions:

  1. What are the right notions of mean and variance for uu?
  2. How do we build/sample such HH-valued random variables?

Mean elements

Observe that, for an Rn\mathbb{R}^n-valued random variable u:Ω→Rnu:\Omega\to\mathbb{R}^n, the mean element mu∈Rnm_u\in\mathbb{R}^n can be defined as the vector of means of the nn components, and also equivalently

E[u]=mu  ⟺  E[u−mu]=0  ⟺  for all ℓ∈Rn, E[⟨ℓ, u−mu⟩]=0,\mathbb{E}[u]=m_u \iff \mathbb{E}[u-m_u]=0 \iff \text{for all }\ell\in\mathbb{R}^n,\ \mathbb{E}[\langle \ell,\,u-m_u\rangle]=0,

where ⟨ℓ, u−mu⟩\langle \ell,\,u-m_u\rangle is a real r.v.

Inspired by this, we say that mu∈Hm_u\in H is the (weak) expected value / mean of u:Ω→Hu:\Omega\to H, and write E[u]=mu\mathbb{E}[u]=m_u, if

for all ℓ∈H,E[⟨ℓ, u−mu⟩H]=0.\text{for all }\ell\in H,\quad \mathbb{E}[\langle \ell,\,u-m_u\rangle_H]=0.

(Note) cf. the strong/Bochner integral, in which we really do perform vector-valued integration.

Covariance operators

The mean is well-defined if E[∣u∣H]<∞\mathbb{E}[|u|_H]<\infty.

If E[∣u∣H2]<∞\mathbb{E}[|u|_H^2]<\infty, then we can go further and define the covariance operator Cov[u]\mathrm{Cov}[u], or CuC_u, of u:Ω→Hu:\Omega\to H as the linear operator from HH to itself given by

⟨h, Cuk⟩H:=E[⟨h, u−mu⟩H ⟨u−mu, k⟩H],for each h,k∈H.\langle h,\,C_u k\rangle_H := \mathbb{E}\big[\langle h,\,u-m_u\rangle_H\ \langle u-m_u,\,k\rangle_H\big], \quad\text{for each }h,k\in H.

Note, though, that

⟨h, u−mu⟩H ⟨u−mu, k⟩H=⟨h, ⟨u−mu, k⟩H(u−mu)⟩H,\langle h,\,u-m_u\rangle_H\ \langle u-m_u,\,k\rangle_H = \langle h,\ \langle u-m_u,\,k\rangle_H (u-m_u)\rangle_H,

and so (weakly)

Cu=E[(u−mu)⊗(u−mu)].C_u=\mathbb{E}\big[(u-m_u)\otimes(u-m_u)\big].

Similarly, we can define the cross-covariance operator of two random variables. Let u:Ω→H1u:\Omega\to H_1, v:Ω→H2v:\Omega\to H_2 be random variables, i.e. (u,v)(u,v) takes values in H1⊕H2H_1\oplus H_2. The cross-covariance operator of uu and vv, denoted Cov[u,v]\mathrm{Cov}[u,v] or CuvC_{uv}, is an operator from H2H_2 into H1H_1 given by

⟨h, Cuvk⟩H1:=E[⟨h, u−mu⟩H1 ⟨v−mv, k⟩H2],\langle h,\,C_{uv} k\rangle_{H_1} := \mathbb{E}\big[\langle h,\,u-m_u\rangle_{H_1}\ \langle v-m_v,\,k\rangle_{H_2}\big],

for k∈H2k\in H_2, h∈H1h\in H_1.

Note that CuC_u above is just CuuC_{uu}. Just as before,

Cuv=E[(v−mv)⊗(u−mu)].C_{uv}=\mathbb{E}\big[(v-m_v)\otimes(u-m_u)\big].

Sazonov's theorem (structure of covariance operators)

Theorem (Sazonov). Let u:Ω→Hu:\Omega\to H take values in a separable Hilbert space (one admitting a finite or countable complete orthonormal basis), have finite second moment E[∣u∣H2]\mathbb{E}[|u|_H^2], mean mu∈Hm_u\in H and covariance operator Cu:H→HC_u:H\to H. Then CuC_u is SPSD and trace class, and

tr Cu=E[∣u−mu∣H2]<∞.\mathrm{tr}\,C_u=\mathbb{E}\big[|u-m_u|_H^2\big]<\infty.

Proof (sketch pieces). To see that CuC_u is self-adjoint, consider any h,k∈Hh,k\in H:

⟨h, Cuk⟩=E[⟨h, u−mu⟩ ⟨u−mu, k⟩]=E[⟨k, u−mu⟩ ⟨u−mu, h⟩]‾=⟨k, Cuh⟩‾,\langle h,\,C_u k\rangle = \mathbb{E}\big[\langle h,\,u-m_u\rangle\ \langle u-m_u,\,k\rangle\big] = \overline{\mathbb{E}\big[\langle k,\,u-m_u\rangle\ \langle u-m_u,\,h\rangle\big]} = \overline{\langle k,\,C_u h\rangle},

i.e. Cu=Cu∗C_u=C_u^*.

(Exercise) Show that Cuv=Cvu∗C_{uv}=C_{vu}^*.

For positivity, let h∈Hh\in H. Then

⟨h, Cuh⟩=E[⟨h, u−mu⟩ ⟨u−mu, h⟩]=E[∣⟨h, u−mu⟩∣2]≥0.\langle h,\,C_u h\rangle = \mathbb{E}\big[\langle h,\,u-m_u\rangle\ \langle u-m_u,\,h\rangle\big] = \mathbb{E}\big[|\langle h,\,u-m_u\rangle|^2\big]\ge 0.

(Exercise) CuC_u is strictly positive iff no nonzero hh has ⟨h,u−mu⟩=0\langle h,u-m_u\rangle=0 almost surely; equivalently the centred law is not supported on a proper closed linear subspace, or the original law on a proper closed affine hyperplane. Centring matters: a constant nonzero random vector has zero covariance. Strict positivity still does not imply a bounded inverse.

To see that CuC_u has finite trace, let (ψn)n∈N(\psi_n)_{n\in\mathbb{N}} be any CONB of HH. Then

tr Cu=∑n∈N⟨ψn, Cuψn⟩=∑n∈NE[∣⟨ψn, u−mu⟩∣2]=E[∑n∈N∣⟨ψn, u−mu⟩∣2]\mathrm{tr}\,C_u = \sum_{n\in\mathbb{N}} \langle \psi_n,\,C_u\psi_n\rangle = \sum_{n\in\mathbb{N}}\mathbb{E}\big[|\langle \psi_n,\,u-m_u\rangle|^2\big] = \mathbb{E}\Big[\sum_{n\in\mathbb{N}}|\langle \psi_n,\,u-m_u\rangle|^2\Big]

(Tonelli for the nonnegative series)

=E[∣u−mu∣2]= \mathbb{E}\big[|u-m_u|^2\big]

(Parseval)

≤2∣mu∣2+2E[∣u∣2]<∞.\le 2|m_u|^2 + 2\mathbb{E}\big[|u|^2\big]<\infty.

□\square

An important consequence of Sazonov's theorem is that a finite-variance random vector uu with values in an infinite-dimensional HH can never have identity covariance.

Randomised basis expansions

Fix a CONB (ψn)n∈N(\psi_n)_{n\in\mathbb{N}} of a (real) Hilbert space HH, e.g. a space of functions on some set XX. We propose to define a random element uu of HH via

u:=∑n∈Nξnψn,u := \sum_{n\in\mathbb{N}} \xi_n \psi_n,

where the ξn\xi_n, n∈Nn\in\mathbb{N}, are R\mathbb{R}-valued random variables.

Question: What conditions need to be imposed on the ξn\xi_n to ensure that u∈Hu\in H a.s.?

The key tool here is Kolmogorov's two-series theorem from last week's handout.

Theorem. Let (ψn)n(\psi_n)_n be a CONB of HH. Fix a deterministic sequence (σn)n(\sigma_n)_n with σn∈R\sigma_n\in\mathbb{R}, and set

u:=∑n∈Nσnξnψn,withξn∼N(0,1) i.i.d.u := \sum_{n\in\mathbb{N}} \sigma_n \xi_n \psi_n, \quad\text{with}\quad \xi_n\sim\mathcal{N}(0,1)\ \text{i.i.d.}

If ∑nσn2<∞\sum_n \sigma_n^2<\infty, then u∈Hu\in H a.s. Moreover E[u]=mu=0\mathbb{E}[u]=m_u=0, and Cov[u]=Cu=Σ2\mathrm{Cov}[u]=C_u=\Sigma^2, where Σ2\Sigma^2 is the diagonal operator ψn↦∣σn∣2ψn\psi_n\mapsto |\sigma_n|^2\psi_n.

Proof. Observe that

u∈H  ⟺  ∣u∣H2<∞  ⟺  ∑n∈N∣σnξn∣2<∞u\in H \iff |u|_H^2<\infty \iff \sum_{n\in\mathbb{N}}|\sigma_n\xi_n|^2<\infty

(by Parseval).

In fact no two-series theorem is needed for this sufficient condition. Tonelli gives

E[∑n∣σnξn∣2]=∑nσn2<∞.\mathbb E\left[\sum_n|\sigma_n\xi_n|^2\right]=\sum_n\sigma_n^2<\infty.

A nonnegative random variable with finite expectation is finite almost surely, so the coefficient sequence is square-summable almost surely. Its tails also tend to zero in L2(Ω;H)L^2(\Omega;H). The source's fourth-moment/two-series argument below is an alternative route, not a necessary extra assumption.

Now observe that

∑nE[∣σnξn∣2]=∑n∣σn∣2E[∣ξn∣2]=∑n∣σn∣2<∞,\sum_n \mathbb{E}[|\sigma_n\xi_n|^2] = \sum_n |\sigma_n|^2\mathbb{E}[|\xi_n|^2] = \sum_n |\sigma_n|^2<\infty,

and

∑nE[∣σnξn∣4]=∑n∣σn∣4E[∣ξn∣4]=3∑n∣σn∣4<∞.\sum_n \mathbb{E}[|\sigma_n\xi_n|^4] = \sum_n |\sigma_n|^4\mathbb{E}[|\xi_n|^4] = 3\sum_n |\sigma_n|^4<\infty.

So Kolmogorov's two-series theorem ensures that P[∑n∣σnξn∣2<∞]=1\mathbb{P}[\sum_n |\sigma_n\xi_n|^2<\infty]=1, i.e. P[u∈H]=1\mathbb{P}[u\in H]=1.

(Exercises) Check that E[u]=0\mathbb{E}[u]=0 (easy!). Check that Cov[u]=Σ2\mathrm{Cov}[u]=\Sigma^2.

□\square

Example. On H:=Lper2([0,2π];C)H:=L^2_{\mathrm{per}}([0,2\pi];\mathbb{C}) with Fourier CONB ψn(t)=exp⁡(int)/2π\psi_n(t)=\exp(int)/\sqrt{2\pi} for n∈Zn\in\mathbb{Z}, we can build a random element uu of HH by setting e.g.

u=∑n∈Zσnξnψn,σ0:=0,σ±n:=1n for n≠0.u=\sum_{n\in\mathbb{Z}}\sigma_n\xi_n\psi_n, \qquad \sigma_0:=0, \qquad \sigma_{\pm n}:=\frac{1}{n}\ \text{for }n\ne 0.

This example is complex-valued with real Gaussian coefficients; it is not a real-valued process unless conjugate Fourier coefficients are coupled. A real sine/cosine basis with independent real coefficients gives the corresponding real model. The zero Fourier mode is excluded when identifying covariance with (−Δ)−1(-\Delta)^{-1}.

Then

∑n∈Zσn2=2∑n∈N1n2=π23<∞,\sum_{n\in\mathbb{Z}}\sigma_n^2 = 2\sum_{n\in\mathbb{N}}\frac{1}{n^2} = \frac{\pi^2}{3}<\infty,

and so u∈L2u\in L^2 a.s.

Indeed, one can similarly check that u∈Hsu\in H^s for all s<12s<\tfrac{1}{2}. The mean is the zero function, and the covariance operator is ψn↦n−2ψn\psi_n\mapsto n^{-2}\psi_n, i.e. Cov[u]=(−Δ)−1\mathrm{Cov}[u]=(-\Delta)^{-1}, i.e. is the integral operator whose kernel is the Green's function (fundamental solution) of Laplace's equation.

Random coefficients must share a finite variance budget. Compare decaying mode variances with constant mode variance.

Decaying varianceDecaying variancemodes Ntotal variance12002solid: sum through N of 1/n²
White-noise truncationWhite-noise truncationmodes Ntotal variance120020solid: sum through N of 1
Each panel shows cumulative expected squared norm for an orthonormal expansion. Vertical scales differ: the left stays below π²/6; the right grows as N. ↗

Every finite white-noise truncation exists, yet their expected squared norms have no finite limit. For Gaussian white noise the strong law gives the stronger almost-sure divergence stated below.

Reveal one fixed random draw through its coefficients. Replaying uses the same random numbers, so the new detail comes only from adding modes. The displayed variance budget is an expectation over draws, not the realised energy of this one curve.

Random coefficients become a random function

Random coefficients

112-2.502.5sine mode ncoefficient ξₙ/n

One assembled random function

01-404location xpartial sum

Expected partial energy = 1.000 < π²/6

The same seeded coefficients are reused on replay. Increasing the truncation reveals finer structure; the variance budget is an expectation, not the energy of this particular draw.

Play once, pause, or scrub to inspect an intermediate state.

Ready to explore.
Fixed seeded independent Gaussian coefficients ξₙ and orthonormal sine modes √2 sin(nπx) on [0,1], scaled by 1/n. Completed modes have total expected squared norm Σ1/n²; the last mode fades in continuously. This is one reproducible realisation, not an empirical covariance estimate. ↗

Gaussian white noise

A naive definition of Gaussian white noise on HH is

w:=∑n∈Nξnψn,ξn∼N(0,1) i.i.d.w := \sum_{n\in\mathbb{N}} \xi_n \psi_n, \qquad \xi_n\sim\mathcal{N}(0,1)\ \text{i.i.d.}

Unfortunately, it is easy to show that P[∣w∣H=∞]=1\mathbb{P}[|w|_H=\infty]=1, so ww is almost surely too rough to land in HH. These are formal or cylindrical mean/covariance statements; ww is not an HH-valued random element. Indeed the strong law gives N−1∑n=1Nξn2→1N^{-1}\sum_{n=1}^N\xi_n^2\to1 almost surely. In the one-dimensional Fourier Sobolev scale, ∑n(1+n2)s<∞\sum_n(1+n^2)^s<\infty for s<−1/2s<-1/2, so the same expectation argument places white noise in these negative spaces almost surely. This threshold refers to that scale; it is not universal for an arbitrary Hilbert scale.

Generalised polynomial chaos (gPC) expansions

The idea here is to express a "complicated" r.v. uu as a sum of "simple" deterministic functions of a "simple" r.v. ξ\xi, called the stochastic germ. To keep things concrete, fix a r.v. ξ:Ω→X=R\xi:\Omega\to X=\mathbb{R} with law μξ\mu_\xi. Under mild assumptions (need that E[ea∣ξ∣]<∞\mathbb{E}[e^{a|\xi|}]<\infty for some a>0a>0) there is a system {qk}k∈N0\{q_k\}_{k\in\mathbb{N}_0} of orthogonal polynomials for ξ/μξ\xi/\mu_\xi:

E[qj(ξ) qk(ξ)]=γkδjk\mathbb{E}[q_j(\xi)\,q_k(\xi)] = \gamma_k \delta_{jk}

for some normalisation constants γk>0\gamma_k>0;

E.g.:

He0(z)=1,He1(z)=z,He2(z)=z2−1, …\mathrm{He}_0(z)=1,\quad \mathrm{He}_1(z)=z,\quad \mathrm{He}_2(z)=z^2-1,\ \ldots

The normalisation constant is γk=k!\gamma_k=k!.

Assume u=F(ξ)∈L2(Ω)u=F(\xi)\in L^2(\Omega) is measurable with respect to the germ. Otherwise a basis of functions of ξ\xi reconstructs only E[u∣ξ]\mathbb E[u\mid\xi], not independent randomness hidden in uu. For finite-support germ laws the polynomial system terminates at the dimension of L2(μξ)L^2(\mu_\xi); an infinite sequence of positive normalisations requires infinite support.

The idea now is simply to expand uu (thought of as a function on XX) in the orthogonal basis {qk}k\{q_k\}_{k}:

u=∑k∈N0uk qk(ξ),u = \sum_{k\in\mathbb{N}_0} u_k\,q_k(\xi),

with

uk=γk−1E[u qk(ξ)]∈R.u_k=\gamma_k^{-1}\mathbb{E}[u\,q_k(\xi)]\in\mathbb{R}.

In practice, the expected value on the RHS will have to be approximated somehow, e.g. via Monte Carlo sampling:

uk≈u^k(N):=1Nγk∑n=1Nu(ξ(n)) qk(ξ(n)),ξ(n)∼μξ i.i.d.u_k \approx \hat u_k^{(N)} := \frac{1}{N\gamma_k}\sum_{n=1}^N u(\xi^{(n)})\,q_k(\xi^{(n)}), \qquad \xi^{(n)}\sim \mu_\xi\ \text{i.i.d.}

Think of this as a cheap surrogate model for the potentially expensive/slow/complicated r.v. uu.

The same procedure can be followed for any system of functions qkq_k that are orthogonal w.r.t. μξ\mu_\xi, not just polynomials, e.g. wavelets, Fourier basis functions, …

We can do the same thing for gPC expansion of a random vector u:Ω→Rdu:\Omega\to\mathbb{R}^d. Again we expand as

u=∑kuk qk(ξ),uk=γk−1E[u qk(ξ)]∈Rd.u = \sum_k u_k\,q_k(\xi), \qquad u_k=\gamma_k^{-1}\mathbb{E}[u\,q_k(\xi)]\in\mathbb{R}^d.

We can do the same thing for gPC expansion of a random function u:Ω→{functions on T}u:\Omega\to\{\text{functions on }T\}, i.e. stochastic processes/functions:

u(t,ξ)=∑kuk(t) qk(ξ),u(t,\xi) = \sum_k u_k(t)\,q_k(\xi),

with uk:T→Ru_k:T\to\mathbb{R} given by

uk(t)=γk−1E[u(t,ξ) qk(ξ)].u_k(t)=\gamma_k^{-1}\mathbb{E}[u(t,\xi)\,q_k(\xi)].

(the "stochastic modes" or gPC modes of uu)

We also often expand using multiple stochastic germs ξ1,…,ξM\xi_1,\ldots,\xi_M. We then need a system of functions RM→R\mathbb{R}^M\to\mathbb{R} that form a CONB with respect to the joint law μξ\mu_\xi of ξ=(ξ1,…,ξM)\xi=(\xi_1,\ldots,\xi_M). If the components of ξ\xi are independent, then joint basis functions are just products of univariate ones, but beware the curse of dimension: learning KMK^M coefficients can rapidly exhaust your computational resources!

Now keep the random numbers fixed and change a covariance eigenvalue. The coefficient ellipse and the function curves must change together, because they are two representations of the same two-mode random element.

Mode variance controls shape and uncertainty

Coefficient covariance ellipse

-1.501.5-1.501.5coefficient along ψ₁coefficient along ψ₂

Same draws, changed second variance

01-4.504.5location xrandom function

λ₁=1, λ₂=0.050, trace(C)=1.050

More second-mode variance spreads the coefficient ellipse vertically and strengthens the second sine pattern in every coupled draw.

Play once, pause, or scrub to inspect an intermediate state.

Ready to explore.
On [0,1], ψ₁=√2 sin(πx), ψ₂=√2 sin(2πx), eigenvalues 1 and λ₂. The coefficient ellipse and three fixed seeded draws use the same λ₂. Covariance kernel is ψ₁(x)ψ₁(y)+λ₂ψ₂(x)ψ₂(y); rank is two when λ₂>0. ↗

Stochastic processes

A stochastic process on a set XX is just a (measurable) function

u:X×Ω→R,u:X\times\Omega\to\mathbb{R},

where (Ω,F,P)(\Omega,\mathcal{F},\mathbb{P}) is some probability space, i.e. it is just a family of R\mathbb{R}-valued random variables u(x)u(x), one for each x∈Xx\in X.

Mean and covariance functions

The mean function mu:X→Rm_u:X\to\mathbb{R} of uu is given by

mu(x):=E[u(x)]=∫Ωu(x,ω) P(dω),m_u(x):=\mathbb{E}[u(x)] = \int_\Omega u(x,\omega)\,\mathbb{P}(d\omega),

defined as long as E[∣u(x)∣]\mathbb{E}[|u(x)|] is finite for all x∈Xx\in X.

The covariance function / cov. kernel ku:X×X→Rk_u:X\times X\to\mathbb{R} is given by

ku(x,y):=E[(u(x)−mu(x))(u(y)−mu(y))],k_u(x,y):=\mathbb{E}\big[(u(x)-m_u(x))(u(y)-m_u(y))\big],

and is defined as long as E[∣u(x)∣2]<∞\mathbb{E}[|u(x)|^2]<\infty for all x∈Xx\in X.

Gaussian processes

A stochastic process u:X×Ω→Ru:X\times\Omega\to\mathbb{R} is called a Gaussian process (GP) with mean func. m:X→Rm:X\to\mathbb{R} and cov. func. k:X×X→Rk:X\times X\to\mathbb{R}, denoted u∼GP(m,k)u\sim\mathrm{GP}(m,k), if, for all x1,…,xn∈Xx_1,\ldots,x_n\in X, n∈Nn\in\mathbb{N},

(u(x1)⋮u(xn))∼N ⁣((m(x1)⋮m(xn)),(k(x1,x1)⋯k(x1,xn)⋮⋱⋮k(xn,x1)⋯k(xn,xn))).\begin{pmatrix} u(x_1)\\ \vdots\\ u(x_n) \end{pmatrix} \sim \mathcal{N}\!\left( \begin{pmatrix} m(x_1)\\ \vdots\\ m(x_n) \end{pmatrix}, \begin{pmatrix} k(x_1,x_1) & \cdots & k(x_1,x_n)\\ \vdots & \ddots & \vdots\\ k(x_n,x_1) & \cdots & k(x_n,x_n) \end{pmatrix} \right).

Examples

Some commonly-used covariance functions include:

k(x,y):=σ2exp⁡ ⁣(−∥x−y∥22ℓ2)k(x,y):=\sigma^2\exp\!\left(-\frac{\|x-y\|^2}{2\ell^2}\right) k(x,y):=σ2exp⁡ ⁣(−∥x−y∥ℓ)k(x,y):=\sigma^2\exp\!\left(-\frac{\|x-y\|}{\ell}\right)

Karhunen–Loève theorem

There is a close relationship between "nice" stochastic processes and random basis expansions in the eigenbasis of a suitable integral operator.

Karhunen–Loève Theorem. Let X⊆RdX\subseteq\mathbb{R}^d and let u:X×Ω→Ru:X\times\Omega\to\mathbb{R} be centred (i.e. mu=0m_u=0) and square-integrable (i.e.

E ⁣[∫X∣u(x)∣2 dx]=∫XE[∣u(x)∣2] dx<∞\mathbb{E}\!\left[\int_X |u(x)|^2\,dx\right] = \int_X \mathbb{E}[|u(x)|^2]\,dx < \infty

), with continuous and square-integrable cov. func. kk.

Then the induced integral op.

Ik:L2(X)→L2(X),(Ikf)(x):=∫Xk(x,y)f(y) dyI_k:L^2(X)\to L^2(X), \qquad (I_k f)(x):=\int_X k(x,y)f(y)\,dy

is the cov. op. Cov[u]\mathrm{Cov}[u] of uu. Let λn≥0\lambda_n\ge 0 and ψn\psi_n be the eigenvalues and orthonormal eigenfunctions of IkI_k. Then

u=∑n∈Nzn ψn,u=\sum_{n\in\mathbb{N}} z_n\,\psi_n,

with

zn=∫Xu(x)ψn(x) dx=⟨u,ψn⟩L2(X),z_n=\int_X u(x)\psi_n(x)\,dx=\langle u,\psi_n\rangle_{L^2(X)},

and the r.v.s znz_n are centred (i.e. E[zn]=0\mathbb{E}[z_n]=0) and uncorrelated with variance λn\lambda_n (i.e. E[znzm]=λnδnm\mathbb{E}[z_n z_m]=\lambda_n\delta_{nm}).

Furthermore, if u∼GP(0,k)u\sim \mathrm{GP}(0,k), then

zn∼N(0,λn).z_n\sim\mathcal{N}(0,\lambda_n).

The KL expansion converges in L2(Ω;L2(X))L^2(\Omega;L^2(X)), and its mean-square truncation error is ∑n>Nλn\sum_{n>N}\lambda_n. In the Gaussian case the coefficients are jointly Gaussian and uncorrelated, hence independent. For a non-Gaussian process they need only be uncorrelated. This is the random analogue of the projection error in Week 6.

Smoothness of sample draws

Mean-square differentiability and almost-sure differentiability of paths are different claims. Suitable continuous mixed derivatives of the covariance give derivatives in mean square. Almost-sure path regularity needs additional increment bounds and a continuity/modification theorem; covariance differentiability alone is not used here as a pathwise theorem. See Rasmussen and Williams, Chapter 4.

A directly checkable alternative uses the spectral scale. If

∑n(1+n2)sσn2<∞,\sum_n(1+n^2)^s\sigma_n^2<\infty,

then the Fourier random series lies in HpersH^s_{\rm per} almost surely by Tonelli. For σn=1/∣n∣\sigma_n=1/|n|, this holds for every fixed s<1/2s<1/2. Sobolev embedding then yields any pathwise regularity that this bound actually supports; it does not assert continuity at the endpoint.

For an infinite-rank Gaussian with covariance eigenvalues λn>0\lambda_n>0, its RKHS norm would be ∑n∣zn∣2/λn=∑nξn2=∞\sum_n |z_n|^2/\lambda_n=\sum_n\xi_n^2=\infty almost surely. Typical draws are therefore outside the covariance RKHS. There is no universal exact “loss of d/2d/2 derivatives” without specifying a spectral model and domain.

Proof that Cov[u]=Ik\mathrm{Cov}[u]=I_k

For f,g∈L2(X)f,g\in L^2(X), by definition of the covariance operator,

⟨f, Cov[u] g⟩L2=E[⟨f,u⟩L2 ⟨u,g⟩L2]=E[(∫Xf(x)u(x) dx)(∫Xu(y)g(y) dy)].\langle f,\ \mathrm{Cov}[u]\,g\rangle_{L^2} = \mathbb{E}\big[\langle f,u\rangle_{L^2}\ \langle u,g\rangle_{L^2}\big] = \mathbb{E}\left[\left(\int_X f(x)u(x)\,dx\right)\left(\int_X u(y)g(y)\,dy\right)\right].

(Fubini)

=E[∫X∫Xf(x)u(x)u(y)g(y) dx dy]=∫X∫Xf(x) E[u(x)u(y)] g(y) dy dx= \mathbb{E}\left[\int_X\int_X f(x)u(x)u(y)g(y)\,dx\,dy\right] = \int_X\int_X f(x)\,\mathbb{E}[u(x)u(y)]\,g(y)\,dy\,dx =∫Xf(x)(∫Xk(x,y)g(y) dy) dx=∫Xf(x) (Ikg)(x) dx=⟨f, Ikg⟩L2.= \int_X f(x)\left(\int_X k(x,y)g(y)\,dy\right)\,dx = \int_X f(x)\,(I_k g)(x)\,dx = \langle f,\ I_k g\rangle_{L^2}.

□\square

At many points now, we have a necessary step in implementing our mathematical ideas: we need to learn/fit coefficients in a model to best explain some data, or to best approximate some underlying function. This naturally leads us to our next topic: inverse problems.