Homework 7: Processes: the same formula, infinite index

EE 520: Random Processes (Fall 2026). Due: December 4, 2026, 11:59 PM PT. Instructor: John Lipor.

Instructions

Submit your work as a PDF through the course submission system. If you need an accommodation or an alternate format, contact the instructor.

Note: For all questions asked in this course, unless the question is simply asking about definitions, please justify all answers. Stating the correct answer without justification will earn no credit. For example, if you write down a string of equations, each successive equation should be accompanied by some justification such as “by the additivity axiom” or “because the outcomes are equally likely” or “by the distributive property of set operations.” You do not need to justify algebra.

Problem 1: Improve the tutor [5 pts]

You have now used the course tutor instructions from Homework 0 on six assignments. The goal of this problem is to start improving those instructions. Before you work Problems 2–7, make at least one modification to the tutor instructions that you think will improve the tutor’s benefit to your work, then use your modified tutor for the rest of this assignment. Your modification must keep the tutor’s homework boundaries in place (it may not write complete solutions for you), and the fifteen-minute rule from Homework 0 still applies.

Turn in what improvement you tried to make, what you changed in the instructions, and whether you believe it was an improvement after working through Problems 2–7 of this assignment.

Problem 2: GP regression is Gaussian conditioning [5 pts each]

(Callback to Homework 6 Problem 3: Gaussian conditioning, now on an infinite index set.)

Let ff be a zero-mean Gaussian process with squared-exponential kernel k(t,s)=exp⁡(−(t−s)2/2ℓ2)k(t, s) = \exp\!\big(-(t - s)^2 / 2\ell^2\big), ℓ=1\ell = 1. You observe f(0)=1.2f(0) = 1.2 and f(1.5)=−0.4f(1.5) = -0.4 exactly (no noise).

  1. Write the 3×33 \times 3 covariance matrix of (f(1),f(0),f(1.5))(f(1), f(0), f(1.5)) and compute the posterior mean and variance of f(1)f(1) using the Homework 6 conditioning formula. (Numbers, not symbols.)

  2. Repeat for f(5)f(5). Explain the two posterior variances in one sentence about the kernel’s lengthscale.

  3. Now add measurement noise: the observations are f(ti)+εif(t_i) + \varepsilon_i with εi∼𝒩(0,0.1)\varepsilon_i \sim {\mathcal N}(0, 0.1) iid. State exactly which matrix in your part-(a) computation changes, and how. (This is Y=HX+NY = HX + N wearing a new hat: say why.)

A stationary GP kernel must be a valid autocorrelation function. For each candidate R(τ)R(\tau) below, decide whether it is valid and justify your answer; Bochner’s theorem (a valid RR is the inverse transform of a nonnegative, integrable spectrum S(f)≥0S(f) \geq 0) is the intended tool where it applies. Session 16’s bestiary asserted the legality of several of these without argument; here you supply the arguments.

  1. sin⁡(τ)\sin(\tau)

  2. cos⁡(τ)\cos(\tau)

  3. exp⁡(−τ2/2)\exp(-\tau^2 / 2)

  4. exp⁡(−|τ|)\exp(-\left\lvert \tau \right\rvert)

  5. sinc⁡(τ)=sin⁡(πτ)/(πτ)\operatorname{sinc}(\tau) = \sin(\pi \tau) / (\pi \tau)

For each valid kernel, add one sentence: what kind of functions does a GP with this kernel produce (smoothness? periodicity? roughness?), reading the answer off the spectrum.

Problem 4: The kernel factory [10 pts]

White noise XtX_t with power spectral density SX(f)=N0/2S_X(f) = N_0 / 2 drives a first-order (RC-type) filter with impulse response h(t)=e−λtu(t)h(t) = e^{-\lambda t}\, u(t), where u(t)u(t) is the unit step and λ>0\lambda > 0. Let YtY_t be the output. Session 17 ran this factory on an ideal low-pass filter to manufacture the sinc kernel; the RC case is yours.

  1. Compute SY(f)S_Y(f) and invert it to find RY(τ)R_Y(\tau).

  2. You have just derived the Ornstein–Uhlenbeck kernel. One sentence: in GP language, what did the filter do? (LTI systems are machines for manufacturing valid kernels from white noise.)

Problem 5: Wiener filter == LMMSE, third appearance [10 pts]

Let UtU_t and VtV_t be zero-mean, jointly WSS processes. If V̂t=∫−∞∞h(θ)Ut−θdθ\hat{V}_t = \int_{-\infty}^{\infty} h(\theta)\, U_{t - \theta}\, d\theta is the estimate of VtV_t using the Wiener filter, show that the minimum mean-squared error is 𝔼[|Vt−V̂t|2]=∫−∞∞[SV(f)−|SVU(f)|2SU(f)]df.\mathbb{E}\!\left[\, \left\lvert V_t - \hat{V}_t \right\rvert^2 \,\right] = \int_{-\infty}^{\infty} \left[\, S_V(f) - \frac{\left\lvert S_{VU}(f) \right\rvert^2}{S_U(f)} \,\right] df. Before computing, state in one sentence which Homework 6 principle you are about to reuse, and what plays the role of “orthogonality” here. (Session 17 stated this formula; the derivation is yours.)

Hint: Use Parseval’s relation ∫−∞∞x(t)y*(t)dt=∫−∞∞X(f)Y*(f)df\int_{-\infty}^{\infty} x(t)\, y^*(t)\, dt = \int_{-\infty}^{\infty} X(f)\, Y^*(f)\, df when evaluating 𝔼[V̂tVt]\mathbb{E}[\hat{V}_t V_t].

Problem 6: Choose the next sample [15 pts]

(Callback to Homework 4 Problem 4: another predict-then-verify simulation of a Bayesian estimator.)

Implement GP regression on a 200200-point grid over [0,1][0, 1] (SE kernel, ℓ=0.1\ell = 0.1, noise variance 0.010.01; true function: your choice of smooth ff). Starting from 22 random samples, acquire 1515 more points under two rules: (i) uniform random, and (ii) maximum posterior variance.

  1. Before running: predict where rule (ii) will place its samples early on, and what its posterior-variance profile will look like compared to (i).

  2. Turn in: posterior mean ±2σ\pm 2\sigma plots after 55 and 1515 acquisitions for both rules, mean integrated posterior variance versus number of samples, your prediction versus the outcome, and your code.

  3. Two sentences: connect rule (ii) to the mass-bisection rule of Homework 4 Problem 2. In what sense are both “querying where uncertainty lives”?

Problem 7: Certify the TA-bot [5 pts]

The assistant was asked: “Is R(τ)=(1−|τ|)+⋅cos⁡(2πτ)R(\tau) = (1 - \left\lvert \tau \right\rvert)^{+} \cdot \cos(2\pi\tau) a valid stationary kernel?” It answered:

This solution contains any number of errors, possibly zero.

  1. Audit it line by line, checking each claim against Session 16’s tools, and render a verdict.

  2. If (and only if) you found an error, name the violated result in one sentence, citing the session.

  3. If you found an error, give the corrected result with justification.

  4. One sentence: which single check would you trust most if you had to certify this transcript in one line, and why?

Reminder: flagging a correct step as an error costs credit; certifying correctness is part of the skill.