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, giving $\ell = 2.59$ years, $\sigma = 119$, and $\sigma_\varepsilon = 116$. µGauss reports for each forecast statistic its change under a 1% increase in parameter $p$, $\frac{p}{100}\frac{\partial S}{\partial p}$, holding the other parameters fixed.
| Year | Statistic | Value | $\ell$ | $\sigma$ | $\sigma_\varepsilon$ |
|---|---|---|---|---|---|
| $1971$ | Mean | $807$ | $-0.666$ | $-0.574$ | $0.574$ |
| $1971$ | Standard deviation | $84.7$ | $-0.240$ | $0.537$ | $0.310$ |
| $1975$ | Mean | $907$ | $-0.561$ | $-0.059$ | $0.059$ |
| $1975$ | Standard deviation | $121.8$ | $-0.047$ | $1.196$ | $0.022$ |
| $1980$ | Mean | $919.4$ | $-0.012$ | $0.003$ | $-0.003$ |
| $1980$ | Standard deviation | $123.1$ | $0.034$ | $1.220$ | $0.011$ |
| $1990$ | Mean | $919.4$ | $-0.007$ | $0.003$ | $-0.003$ |
| $1990$ | Standard deviation | $123.1$ | $0.035$ | $1.220$ | $0.011$ |
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 model with these statistics in µGauss ↗. The parameter sensitivities appear beside each value.
Horizon dependence of parameter sensitivities
One year past the last observation, all three parameters move the posterior mean by half a unit or more and shift the predictive standard deviation by $0.24$ to $0.54$. Five years out, only length scale continues to pull the mean at $-0.56$ while signal amplitude dominates the standard deviation at $1.20$. By 1980 and beyond, the mean settles at the constant baseline $919.4$ with negligible parameter sensitivity of at most $0.012$, while predictive standard deviation stands at $123.1$ and moves by $1.22$ under a 1% increase in $\sigma$—simply 1% of its value, reflecting convergence to prior uncertainty.
Exact scaling symmetry of amplitude and noise
Every row of the table obeys two exact algebraic identities. Scaling both $\sigma$ and $\sigma_\varepsilon$ by the same factor $c$ multiplies the covariance $K = K_x + \sigma_\varepsilon^2 I$ and cross-covariance $K_\ast$ by $c^2$. Substituting into
$$ \begin{aligned} m_\ast &= \mu_\ast + K_\ast K^{-1} r , \\ V_\ast &= k_x(t_\ast, t_\ast) - K_\ast K^{-1} K_\ast^\top , \end{aligned} $$cancels $c^2$ identically in $m_\ast$ while scaling $V_\ast$ by $c^2$. Thus the posterior mean is homogeneous of degree $0$ in $(\sigma, \sigma_\varepsilon)$ and the posterior standard deviation is homogeneous of degree $1$. Euler’s theorem gives
$$ \sigma\,\frac{\partial S}{\partial \sigma} + \sigma_\varepsilon\,\frac{\partial S}{\partial \sigma_\varepsilon} = 0 \quad\text{for the mean,} $$and equals $S$ for the standard deviation. Expressed per 1% parameter shift, the two sensitivity columns sum to $0$ for the mean and $0.01\,S$ for the standard deviation: at 1971, $-0.574 + 0.574 = 0$ and $0.537 + 0.310 = 0.847 = \frac{84.7}{100}$, and at 1975, $1.196 + 0.022 = 1.218 = \frac{121.8}{100}$. Length scale does not enter this scaling because it is not multiplied by $c$. Consequently, the forecast mean depends only on the noise-to-amplitude ratio $\frac{\sigma_\varepsilon}{\sigma}$, making its $\sigma$ and $\sigma_\varepsilon$ sensitivities strictly equal and opposite.
Related notes: Squared exponential kernel on the Nile flow, Mean of a kinked function of a forecast. Implicit-function sensitivity formulas are derived in Gaussian process regression with symbolic kernels.