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.

A predictive interval makes a quantitative calibration claim: a 90% band for future observations should enclose nine points out of ten. Held-out coverage measures how often that holds on unseen data beyond the training window. Using an earlier empirical evaluation of the underlying estimator not rerun specifically for this note, we compare the two trend modes offered in µGauss alongside restricted-likelihood REML fitting across five benchmark series: Mauna Loa CO2 from NOAA, NASA GISS GISTEMP version 4 temperature anomalies, Nile flow, airline passengers, and WDC-SILSO sunspots.

Benchmark design across five series

CO2, global temperature anomalies, and sunspots are evaluated at prefix lengths of $100$, $200$, $400$, and $767$ observations, while the Nile flow and airline passengers are tested at full series length. Across each length and seven kernel families fitted with $8$ optimizer restarts on the initial 80% of observations, coverage is averaged over the remaining 20% test horizon, yielding $28$ fits each for CO2, GISTEMP, and sunspots and $7$ each for Nile and airline passengers. Linear degree-$1$ trends run on every series, alongside quadratic degree-$2$ trends on CO2 and GISTEMP. Three estimation rules are compared:

  • Rigid mode, treating fitted polynomial coefficients as exact with zero extrapolation uncertainty
  • Uncertain mode, the default in µGauss, retaining the exact same fitted kernel and adding GLS coefficient uncertainty into prediction bands
  • Consistent mode, or REML, fitting the kernel after integrating out trend coefficients before forming prediction bands—omitted from µGauss for the reasons shown below

Run this in µGauss

Open µGauss on a representative case to compare forecast bands under rigid and uncertain trend modes:

Effect of polynomial trend degree

Series and degreeCoverage of 90% band, rigid mode
CO2, degree $1$$0.289$
CO2, degree $2$$0.746$
GISTEMP, degree $1$$0.203$
GISTEMP, degree $2$$0.662$

Extrapolating a straight line on a curving series carries forecasts outside the true trajectory, and no uncertainty mode fixes the bias: across all three estimation rules, degree $1$ never exceeds $0.48$ coverage on CO2 or $0.31$ on temperature anomalies. Selecting the right trend degree via marginal-likelihood BIC comes first, as shown in the note on leave-one-out residuals where interpolation error misses the fault.

Effect of trend coefficient uncertainty

Series and degreeRigidUncertainConsistent
CO2, degree $1$$0.289$$0.329$
CO2, degree $2$$0.746$$0.888$$0.929$
GISTEMP, degree $1$$0.203$$0.219$
GISTEMP, degree $2$$0.662$$0.717$$0.700$
Nile$0.71$$0.79$$0.86$
Airline passengers$0.64$$0.68$$0.72$
Sunspots$0.91$$0.92$$0.93$

Once trend curvature matches the series, adding coefficient uncertainty moves coverage strongly toward calibration—raising quadratic CO2 from $0.75$ to $0.89$—while leaving nearly flat series like sunspots almost unchanged from $0.91$ to $0.92$. Rigid mode ignores slope and curvature estimation error, making distant bands artificially tight, whereas uncertain mode leaves both fitted kernel parameters and point forecasts untouched while widening bands consistently.

Consistent REML fitting lifts coverage slightly higher in most rows, yet distorts kernel estimation: median amplitudes rise by 21%, and on periodic temperature fits it occasionally shifts into an inferior likelihood optimum where coverage collapses, dropping from $0.84$ to $0.53$ in one instance. µGauss therefore offers only rigid and uncertain modes so trend uncertainty never perturbs the marginal-likelihood fit.

Limits of the empirical measurement

Because rows average multiple series truncations and overlapping kernels, counts are correlated rather than independent samples, meaning $0.89$ against $0.93$ lies within sampling noise on one historical trajectory. Even with quadratic degree and uncertain mode, CO2 and temperature remain slightly under-covered relative to nominal $0.90$, showing that coefficient uncertainty improves calibration without eliminating structural model misspecification.

Related notes: Leave-one-out residuals and the degree of the trend, Constant plus linear kernel as an uncertain trend. Trend estimation modes are detailed in Gaussian process regression with symbolic kernels.