Interactive model — experiment with these parameters in µGauss

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 here with a squared exponential kernel whose amplitude is split across two factors, RBF(l, a) * Const(b). The resulting covariance is

$$ \begin{aligned} k(s,t) ={}& a^2 b^2 \exp\!\left(-\frac{(s-t)^2}{2\ell^2}\right) \\ &+ \sigma_\varepsilon^2\,\delta(s,t) , \end{aligned} $$

written RBF(l, a) * Const(b) + WN(n) with a constant mean. Only the combined scale $\sigma = a b$ enters the process law, so the data carry no separate information about $a$ and $b$.

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:

Fitting with both amplitudes free

Marginal-likelihood fitting attains a log likelihood of $-638.3$ and a BIC of $1300$.

NameSymbolValueStandard error
l$\ell$$2.589$ yearsnone
a$a$$14.61$none
b$b$$8.138$none
n$\sigma_\varepsilon$$116.1$none

Their product $14.61 \times 8.138 = 118.9$ matches the single amplitude $119$ from RBF(l, a) + WN(n). µGauss omits all standard errors because the log likelihood is not strictly concave in every direction at the solution, warning that product factors carry redundant scales and that all but one must be fixed or omitted. Across 4 restarts, 2 reached $-638.3$ while the others stopped at $-639.7$. The BIC rises from $1295$ to $1300$ because the fourth parameter adds zero likelihood while incurring $\log 100 = 4.6$.

Flat likelihood direction

Because $a$ and $b$ enter the covariance matrix purely through $a^2 b^2$, writing $u = \log a$ and $v = \log b$ turns the log likelihood into a function of $u + v$ alone, constant along every line $u + v = \text{const}$. The Hessian therefore has a zero eigenvalue along $(1, -1)$ and cannot be inverted to yield parameter standard errors. Sweeping fixed values of a displays that invariance:

Fixed aFitted bProduct $ab$Log likelihood$\ell$$\sigma_\varepsilon$
$10$$11.89$$118.9$$-638.3$$2.589$$116.1$
$30$$3.962$$118.9$$-638.3$$2.589$$116.1$
$100$$1.189$$118.9$$-638.3$$2.589$$116.1$
$300$$0.3962$$118.9$$-638.3$$2.589$$116.1$
$1000$$0.1684$$168.4$$-640.1$$4.645$$122.9$

Over a thirtyfold span in a, the optimizer scales b by $\frac{1}{a}$ and leaves every observable fit quantity unchanged. Once a is pinned, b acquires a conditional standard error, equal to $0.22$ at $a = 100$, valid only given that chosen value of a.

Truncating the flat line at a bound

At $a = 1000$, maintaining the optimal product would require $b = 0.119$. Because the default data-scaled lower bound on b stops at $0.1684$, the optimizer halts there, pushing the product to $168.4$, dropping the log likelihood by $1.8$, and distorting both $\ell$ and $\sigma_\varepsilon$. Parameter bounds never solve non-identifiability—they merely clip the flat ridge at an arbitrary threshold determined by the box limits.

Parameterizing product kernels cleanly

Giving an independent free scale to each factor in a product asks the data to distinguish two numbers when only their product exists. Assign the amplitude to a single factor—as in RBF(l, a) * Lin(c)—or fix all remaining scales.

Related notes: Product kernel with a linear factor on the airline passengers, Length scale against noise level in a squared exponential fit. Product-scale warnings are documented in the µGauss reference.