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 level of Lake Huron from 1875 to 1972, in feet, is the Brockwell and Davis series from Rdatasets. The water level drifts around a slowly falling line with clear year-to-year persistence. The Matérn kernel of order $\frac{1}{2}$,

$$ k(s,t) = \sigma^2 \exp\!\left(-\frac{\lvert s - t\rvert}{\ell}\right) , $$

is the covariance function of the Ornstein–Uhlenbeck process. Written Mat12(l, a) with trend degree $1$ and no white-noise term, the marginal-likelihood fit reaches a log likelihood of $-105.2$ and a BIC of $228.8$, with all 4 restarts reaching the same maximum.

NameSymbolValueStandard error
l$\ell$$4.10$ years$1.36$
a$\sigma$$1.13$ feet$0.17$

Autoregression on yearly data

Evaluated on integer years, this continuous-time process restricts to a first-order autoregression. Setting $\varphi = e^{-\frac{1}{\ell}}$, the conditional transition from one year to the next is

$$ \begin{aligned} x_{i+1} &= \varphi\,x_i + \eta_i , \\ \eta_i &\sim \mathcal{N}\bigl(0,\ \sigma^2(1 - \varphi^2)\bigr) , \end{aligned} $$

because the Markov property of the exponential kernel makes $x(t+1)$ given the history depend only on $x(t)$. With $\ell = 4.10$ years, the persistence coefficient is $\varphi = 0.78$ and the innovation standard deviation is $\sigma\sqrt{1-\varphi^2} = 0.71$ feet. Over a lag of $h$ years, the correlation decays as $\varphi^h$:

$h$ in years$1$$5$$10$
Correlation$0.78$$0.30$$0.087$

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:

Fit and forecast of the yearly level of Lake Huron showing a jagged fitted mean following the data around a falling dotted line, with bands that keep widening after 1972 Fit and forecast of the yearly level of Lake Huron showing a jagged fitted mean following the data around a falling dotted line, with bands that keep widening after 1972
The level of Lake Huron with Mat12(l, a). The forecast relaxes toward the dotted linear trend while its bands continue widening.

Forecast growth with an uncertain trend

Out of sample, the autoregression mean decays toward the linear trend by a factor $\varphi$ each year, starting at $579.5$ feet with standard deviation $0.72$ in 1973. Unlike a fixed-trend stationary fit, the predictive standard deviation does not saturate at $\sigma = 1.13$. By 1990 it reaches $1.36$ feet because the degree-$1$ trend runs in uncertain mode, adding slope estimation uncertainty that grows with distance from the data.

Smoother kernels with white noise

Inferred persistence does not hinge on choosing Mat12(l, a) alone. Smoother kernels paired with independent noise yield comparable fits and slightly lower BIC values:

KernelFree parametersLog likelihoodBIC
Mat12(l, a)$2$$-105.2$$228.8$
RBF(l, a) + WN(n)$3$$-101.7$$226.3$
Mat32(l, a) + WN(n)$3$$-101.0$$225.0$

The two noisy alternatives estimate $\ell = 1.56$ and $\ell = 2.03$ years, improving the BIC by at most $3.8$. That difference is weak evidence, leaving the single-term exponential kernel within $4.2$ log-likelihood units using one fewer parameter.

Related notes: Squared exponential kernel on the Nile flow, Quasi-periodic kernels with Gaussian and exponential envelopes. Kernel definitions and trend uncertainty modes are detailed in Gaussian process regression with symbolic kernels.