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.

Monthly mean carbon dioxide concentration at Mauna Loa from 1958, in parts per million over $767$ months, comes from the NOAA Global Monitoring Laboratory. A yearly oscillation sits atop a rising curve while the seasonal cycle changes gradually over the decades. Combining a modulated periodic component, a rational quadratic multi-scale component, and independent noise gives

$$ \begin{aligned} k(s,t) ={}& \bigl(a^2\,k_{\mathrm{Per}}(s,t) + b^2\,k_{\mathrm{RQ}}(s,t)\bigr)\,k_{\mathrm{SE},\ell_2}(s,t) \\ &+ \sigma_\varepsilon^2\,\delta(s,t) , \end{aligned} $$

written (Per(p, lp, a) + RQ(l, al, b)) * RBF(l2) + WN(n) with trend degree $2$. The period $p$ is fixed at one year while $\ell_2$ is constrained to $[10, 200]$ years. Fitting by marginal likelihood yields a log likelihood of $-181.8$ and a BIC of $430.0$, with all 4 restarts reaching the same maximum.

NameSymbolValueStandard error
lp$\ell_p$$1.34$$0.20$
a$a$$2.54$$0.89$
l$\ell$$1.22$ years$0.78$
al$\alpha$$0.012$$0.016$
b$b$$1.88$$1.19$
l2$\ell_2$$185$ years$69$
n$\sigma_\varepsilon$$0.207$$0.009$

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:

Monthly CO2 at Mauna Loa from 1958 showing a rising curve with a yearly cycle, fitted mean tracking the data, narrow uncertainty bands, and a continuing seasonal forecast Monthly CO2 at Mauna Loa from 1958 showing a rising curve with a yearly cycle, fitted mean tracking the data, narrow uncertainty bands, and a continuing seasonal forecast
The CO2 series with the modulated seasonal kernel. The uncertainty bands stay narrow because residual noise is small.

Slow modulation of the seasonal cycle

Multiplying the periodic covariance by $k_{\mathrm{SE},\ell_2}$ allows correlation across cycles to relax below $1$. Over the $64$-year observation span, correlation between seasonal shapes at the start and end of the record is

$$ \exp\!\left(-\frac{64^2}{2 \times 185^2}\right) = 0.94 , $$

indicating gradual evolution rather than sudden distortion. Although $\ell_2$ carries a wide standard error of $69$ years near its $200$-year upper bound, the data establish clearly that the seasonal shape is not strictly stationary.

Side-by-side posterior component plots separating the modulated seasonal cycle oscillating around zero on the left from residual noise on the right Side-by-side posterior component plots separating the modulated seasonal cycle oscillating around zero on the left from residual noise on the right
Additive decomposition of the CO2 model showing the modulated seasonal signal on the left and irregular noise on the right.

Multi-scale variation in the rational quadratic term

The rational quadratic kernel

$$ k_{\mathrm{RQ}}(\tau) = \left(1 + \frac{\tau^2}{2\alpha\ell^2}\right)^{-\alpha} $$

represents a continuous scale mixture of squared exponentials under a gamma distribution on inverse squared length scales. When $\alpha$ is small, the mixture spans wide timescales and correlation decays nearly logarithmically. At $\alpha = 0.012$ and $\ell = 1.22$ years:

Lag in years$1$$10$$50$
Correlation$0.96$$0.91$$0.87$

A single RQ component thus captures fluctuations spanning years through decades in place of stacking several squared exponential terms.

Modulated against strictly periodic cycles

Dropping the RBF(l2) envelope forces the seasonal pattern to repeat identically forever.

KernelLog likelihoodBIClpRestarts at best
With RBF(l2)$-181.8$$430.0$$1.34$4 of 4
Without$-215.1$$490.1$$0.05$1 of 4

Adding the envelope lowers the BIC by $60$ with one extra parameter. Without it, lp drops to $0.05$ to compensate with sharp harmonics, and µGauss flags the fit as fragile.

Related notes: Matérn 3/2 kernel replacing white noise on global methane, Periodic kernel with a squared exponential envelope on sunspot numbers. A step-by-step walkthrough of this CO2 decomposition appears in Using µGauss.