µGauss fits a Gaussian process regression model to any time series directly from symbolic expressions for the kernel, mean, and forecast statistics. Upload your own CSV data, type your own formulas, and the exact marginal-likelihood solver runs immediately on what you wrote. Ten sample series and twelve editable Examples sit in the page solely to make the interface easy to try without preparing a file. They merely pre-populate the editor with sensible starting formulas rather than hardwiring models into the solver, and every field can be rewritten from scratch. The full grammar and field specifications are cataloged in the µGauss reference, and the mathematical derivations sit in Gaussian process regression with symbolic kernels. Every worked case below links directly to an editable instance of that model.
Workspace
The input column flows top to bottom from observations to numerical optimization. Data selects or uploads the series. Model previews the live typeset equations above the Kernel, Mean, Statistics, and Parameters table, followed by Forecast Horizon and Optimizer. Fit and Share stay anchored at the foot of the form, while results stream into the adjacent panel. The typeset preview updates on blur whenever you leave a field, highlighting any syntax or symbol error at its column in the formula.

Data upload
Upload accepts UTF-8 CSV files with one column of timestamps and one column of observations, giving immediate access to the full symbolic solver on your own data. By default, µGauss selects the first two purely numeric columns and lets you reassign either via dropdowns. Files exceeding 2,000 rows are thinned evenly across time, and nearly uniform timestamps—including monthly decimal dates—are snapped onto a regular grid so stationary kernels can exploit faster lag-based covariance evaluation.
For quick exploration without uploading a file, Examples next to Data provides ten sample series, and Examples next to Model provides twelve starting models pairing a series with a kernel, mean, and short description. Neither the datasets nor those models are hardwired into the software: choosing an example simply fills in editable text fields so you can alter, delete, or replace every line immediately.

Fitting a first kernel
The Nile flow series contains 100 annual measurements with no secular drift. Modeling it as a smooth squared exponential process of amplitude $a$ and length scale $l$ plus independent observation noise of scale $n$ requires a constant trend of degree $0$ and the kernel
RBF(l, a) + WN(n)
Open this model in µGauss ↗. Pressing Fit plots the observations alongside the posterior mean, 50% and 90% predictive bands, and the shaded forecast region, where predictive uncertainty widens back toward the prior variance roughly ten years past 1970.

RBF(l, a) + WN(n).Below the chart, a status line reports that all 4 of 4 optimizer restarts converged to the highest log likelihood. Opening the Parameters tab shows a log likelihood of $-638.3$, a BIC of $1295.1$, and the fitted hyperparameter table.

At the optimum, the smooth signal amplitude $a = 119$ closely matches the noise standard deviation $n = 116$, partitioning the series variance evenly between smooth fluctuations and observation noise—alongside correlation decay and Matérn comparisons on the Nile flow. The length scale $l = 2.6$ years, with standard error $0.8$ years, governs how rapidly anomalies revert toward the closed-form constant mean $\beta_0 = 919.4$.
Writing custom kernel formulas
Named kernels act solely as shorthand. Any valid symmetric positive semi-definite expression in $s$ and $t$ built from constants, parameters, elementary functions, and named kernels compiles and fits on equal footing with built-ins. The Canadian lynx series, famous for its roughly ten-year population cycle, illustrates how changing a kernel’s algebraic envelope alters the fit. Starting from the named spectral-mixture component
SM(p, l, a) + WN(n)
which multiplies a cosine wave by a squared exponential decay envelope, gives log likelihood $-939.0$ and BIC $1902$. Open the spectral-mixture model ↗. Replacing that Gaussian envelope with a heavier-tailed exponential envelope, $\exp(-\lvert s - t\rvert / \tau)$, gives
a^2 * exp(-abs(s - t) / tau) * cos(2 * pi * (s - t) / p) + WN(n)
where a: amplitude, tau: lengthscale, p: period
Here the where clause assigns parameter roles to $a$, $\tau$, and $p$ because free symbols outside named kernel arguments carry no default bounds until typed as roles. That change raises log likelihood to $-935.5$ and lowers BIC by $7$ points to $1895$, estimating a cycle period $p = 9.9$ years with standard error $0.6$ years. Open the exponential-envelope model ↗.
That fit also raises a warning: 'n' ended at its lower bound. Because the exponential envelope itself stays rough at short lags, observation noise is redundant. Dropping + WN(n) keeps the log likelihood at $-935.5$ with one fewer parameter, reducing BIC further to $1890$ while all 4 restarts now converge to the same maximum instead of 3 of 4. Open the noise-free model ↗.

Because arbitrary formulas can violate covariance axioms, µGauss verifies symmetry numerically across the data and checks positive semi-definiteness during matrix factorization. Symmetric indefinite expressions such as a^2 * abs(s - t) fail Cholesky factorization unless masked by excess noise that shifts eigenvalues positive—in which case the result ceases to define a valid Gaussian process. Keeping custom expressions inside the closure rules tabulated in the µGauss reference guarantees positive semi-definiteness everywhere, as shown in both the Canadian lynx envelope study and the tanh changepoint switch on the Nile flow.
Comparing kernels
Competing kernels for the same dataset are ranked by marginal log likelihood and BIC, where each effective parameter incurs a penalty of $\log n$. On the Nile flow, comparing the infinitely smooth squared exponential kernel against rougher Matérn processes of orders $\frac{3}{2}$ and $\frac{1}{2}$ yields:
| Kernel | Log likelihood | BIC | Link |
|---|---|---|---|
RBF(l, a) + WN(n) | $-638.3$ | $1295$ | open ↗ |
Mat32(l, a) + WN(n) | $-637.6$ | $1294$ | open ↗ |
Mat12(l, a) + WN(n) | $-637.0$ | $1292$ | open ↗ |
The spread across all three models is only $3$ BIC units, indicating weak empirical separation on 100 annual points rather than strong evidence for roughness. Larger standard errors on $l$ tell the same story from parameter uncertainty: $2.1$ under Mat32 and $5.5$ under Mat12, compared with $0.8$ under RBF. By contrast, separating slow warming from short-term variation on global temperature anomalies hinges on pairing Mat32(l, a) + WN(n) with the right trend degree.
Means
On trending datasets, getting the deterministic mean right often matters more than refining the covariance kernel. Atmospheric $\text{CO}_2$ at Mauna Loa rises steadily atop a yearly seasonal oscillation, modeled on Mauna Loa CO2 using a modulated seasonal term, a rational quadratic kernel for multi-scale anomalies, white noise, and a quadratic trend:
| Degree | Log likelihood | BIC | Link |
|---|---|---|---|
| $1$ | $-212.0$ | $483.8$ | open ↗ |
| $2$ | $-181.8$ | $430.0$ | open ↗ |
| $3$ | $-181.3$ | $435.6$ | open ↗ |
Stepping from linear to quadratic cuts BIC by $53.8$, whereas adding a cubic term improves log likelihood by $0.5$ and raises BIC back to $435.6$. Under Mean, polynomial trends offer uncertain mode—propagating coefficient estimation variance into wider long-horizon bands—and rigid mode, which conditions as if $\beta$ were known exactly while leaving the fitted kernel parameters identical.
Custom deterministic forms in $t$ such as m0 + c * exp(-t / tau) replace the polynomial basis completely, sharing optimization alongside kernel parameters, whereas writing 0 specifies an exact zero prior mean.
Parameters
Every parameter receives default bounds and an optimizer scale from its assigned role. Expanding Parameters edits those settings interactively via Fixed at, Between, and Start from columns, or writes equivalent directives into the kernel’s where clause:
- Fix known structure cleanly, such as
p = 1in the CO2 model to enforce a one-year seasonal cycle, orp = 7for weekly cycles in daily birth counts, instead of re-estimating period length, whereas drifting solar periods require an envelope aroundPeras on sunspot numbers. - Widen tight bounds immediately if a fit warns that an estimate settled on its search edge, as seen with observation noise $n$ in the initial lynx run.
- Assign explicit roles or ranges to standalone coefficients like $a_2$ in
a2 * RBF(l), which otherwise run unbounded with a warning. - Remove duplicate scale factors in product kernels such as
Per(p, lp, a) * RBF(l, b), where the data identify only the product $a b$ and individual scales trigger an identifiability warning, as on the two-amplitude Nile product kernel.
Forecast statistics
Under Statistics, lines transform the latent process $x$ into nonlinear derived variables and compute exact pointwise distributions, moments, quantiles, and interval summaries without Monte Carlo sampling. For Mauna Loa $\text{CO}_2$, radiative forcing relative to a pre-industrial baseline $280\text{ ppm}$ writes:
F = 5.35 * log(x / 280)
Mean(F)
At(Mean(F), 2030)
At(Quantile(F, 0.95), 2030)
Defining F and plotting Mean(F) opens a dedicated F tab displaying the transformed time curve and shaded uncertainty bands, while At(...) lines add scalar estimates in 2030 of $2.393$ for the mean and $2.411$ for the 95% quantile. Open the CO2 forcing model ↗.

Non-smooth transforms such as R = max(x - 900, 0) integrate piecewise exactly across the kink as well, separating $\mathbb{E}[R]$ from $R(\mathbb{E}[x])$ through Jensen’s inequality—checked to floating-point rounding across four Nile thresholds and derived in Gaussian process regression with symbolic kernels.
Parameter sensitivities
Statistics marked with the With sensitivities indicator in the Statistics panel—Mean, Variance, Std, Quantile, scalar point summaries At(...), and interval functionals Average and Integral—differentiate the Gaussian process posterior analytically with respect to every kernel, mean, and noise parameter. Unlike finite-difference bumping across repeated fits, exact sensitivities cover both optimized hyperparameters and pinned constants such as p Fixed in one pass.
Each variable tab pairs its distribution plot with a Sensitivity to a parameter chart whose parameter selector switches across every symbol in the model. The curves show raw partial derivatives $\frac{\partial S(t)}{\partial \theta}$ per unit parameter increase, holding all other parameters at their fitted values. For transformed statistics, derivatives remain smooth whenever expectations integrate across smooth densities, whereas a quantile sensitivity becomes undefined or vanishes where a non-monotone transform passes through a flat segment or turning point.
![Sensitivity to a parameter chart for the CO2 forcing model showing the derivative of E[F(x(t))] with respect to fixed period p oscillating and growing into the forecast region](/images/gauss-tutorial/co2-sensitivities-dark.webp)
For scalar outputs such as At(Mean(F), 2030) and At(Quantile(F, 0.95), 2030), clicking the adjacent info icon opens the ranked breakdown $\Delta S = \frac{\theta}{100}\frac{\partial S}{\partial \theta}$ for a $1\%$ increase in each parameter while holding the others fixed. On the CO2 forcing model in 2030, those increments separate seasonal phase leverage from uncertainty leverage:
| Scalar statistic at 2030 | Value | Largest $1\%$ sensitivities |
|---|---|---|
At(Mean(F), 2030) | $2.3933$ | $p = -0.0065$, $l_p = +5.5 \times 10^{-6}$, $l_2 = -4.6 \times 10^{-6}$ |
At(Quantile(F, 0.95), 2030) | $2.4109$ | $p = -0.0065$, $b = +1.8 \times 10^{-4}$, $\alpha = +7.6 \times 10^{-5}$ |
Shifting the fixed period $p = 1$ moves both predictions by $-0.0065$ because phase timing shifts the whole seasonal wave, while kernel amplitudes $b$ and shape $\alpha$ register cleanly on the $95\%$ quantile—expanding or narrowing tail spread—after vanishing to roughly $10^{-6}$ in the symmetric mean, obeying the horizon scaling laws verified across Nile forecast horizons.
Diagnostics
The Diagnostics tab breaks additive kernels down into separate posterior mean and uncertainty trajectories for each top-level additive component. On Mauna Loa $\text{CO}_2$, separating the modulated seasonal oscillation from short-term variation isolates the drifting seasonal amplitude around zero cleanly.

Beneath the components sits the leave-one-out standardized residual chart, predicting every observation from all remaining points via closed-form Cholesky inverse identities. Around 95% of well-calibrated points fall inside $\pm 2$ without systematic drift, while clusters outside indicate local outliers rather than wrong polynomial trend degree—as shown for CO2 leave-one-out residuals and the held-out coverage benchmark—which must instead be settled via BIC.

Whenever fewer than half of the optimizer restarts reach the highest marginal likelihood, µGauss flags the fit as fragile. Raising Restarts from 4 to 8 in Optimizer and tightening overly broad search bounds are the first checks before relying on standard errors or sensitivities, illustrated by the profile likelihood over sunspot periods.
Sharing models
Clicking Share encodes the selected sample series, formulas, parameter edits, statistics lines, and optimizer settings into a portable URL. Shared links cannot carry uploaded CSV datasets. Opening a link repopulates every field cleanly, displaying cached fit results immediately when available or prompting you to press Fit.
Ready to write a kernel?
Upload a CSV series or load an editable example, then write your own kernel, mean, and statistics.