Scope note: This note fits a statistical model to a published series to show how a kernel represents structure. The forecast extrapolates that model. It is not a projection from the physics, ecology or economics of the series, and the series is used as published, without the corrections a domain analysis would apply.
The yearly flow of the Nile at Aswan from 1871 to 1970, the Durbin and Koopman series from Rdatasets, is fitted with RBF(l, a) + WN(n) and a constant mean, yielding $\ell = 2.59$ years, $\sigma = 119$, and $\sigma_\varepsilon = 116$ at a log likelihood of $-638.3$. Defining the profile log likelihood over fixed noise level,
pins $\sigma_\varepsilon$ at each target value while re-optimizing $(\ell, \sigma)$, mapping how tightly the data constrain noise and how the smooth kernel responds as noise shifts.
Run this in µGauss
Open µGauss with this model pre-loaded to inspect the fit, forecast, and parameter sensitivities, or adjust the kernel and refit:
- Open the fit with all parameters free in µGauss ↗
- Open the fit with the noise fixed at $50$ in µGauss ↗, matching the second row below.
Profile over fixed noise levels
| Fixed $\sigma_\varepsilon$ | Log likelihood | Below maximum | $\ell$ in years | $\sigma$ |
|---|---|---|---|---|
| $20$ | $-644.3$ | $6.0$ | $0.70$ | $162.7$ |
| $50$ | $-644.1$ | $5.8$ | $0.74$ | $156.1$ |
| $80$ | $-643.5$ | $5.2$ | $0.90$ | $142.1$ |
| $116$ | $-638.3$ | $0$ | $2.59$ | $118.9$ |
| $150$ | $-640.4$ | $2.1$ | $23.9$ | $108.8$ |
| $200$ | $-650.3$ | $12.0$ | $24.1$ | $103.6$ |
| $300$ | $-676.5$ | $38.2$ | $23.3$ | $87.6$ |
The global peak lies at the unconstrained fit $\sigma_\varepsilon = 116$. Below that level, the profile forms a nearly flat shelf: between $20$ and $80$, log likelihood changes by just $0.8$ while $\ell$ shortens to $0.70$–$0.90$ years and $\sigma$ grows to $163$–$142$. Shrinking $\ell$ lets the squared exponential interpolate fast year-to-year jumps that white noise would otherwise absorb. Above the peak, log likelihood drops faster—$2.1$ below maximum at $150$ and $12.0$ below at $200$—pushing the fit into a contrasting slow-drift regime with $\ell \approx 24$ years where scatter is assigned mostly to noise.
Conditional standard errors
With all three hyperparameters free, $\ell$ has a standard error of $0.83$ years. Pinning $\sigma_\varepsilon = 50$ gives $\ell = 0.74$ with a standard error of $0.07$ years, twelve times smaller.
| Noise | Length scale | Standard error of length scale |
|---|---|---|
| Free, $116$ | $2.59$ | $0.83$ |
| Fixed at $50$ | $0.74$ | $0.07$ |
A standard error reflects local curvature along the remaining free axes only, omitting the joint uncertainty of any pinned parameter. Profiling across fixed values therefore exposes confounding between length scale and noise that conditional standard errors conceal.
Related notes: Squared exponential kernel on the Nile flow, Amplitudes of a product kernel that the data cannot separate. Marginal-likelihood geometry is covered in Gaussian process regression with symbolic kernels.