This reference documents the form fields, kernel expression language, statistics grammar, and result views of µGauss. For a guided walkthrough see Using µGauss, and for the mathematical formulation behind each component see Gaussian process regression with symbolic kernels.

Data upload

µGauss is built around user-supplied data and arbitrary symbolic formulas: upload a CSV time series, write custom expressions for the kernel and mean, and the fitting engine compiles and maximizes them immediately without relying on hardwired model templates.

Uploaded CSV files require UTF-8 encoding, a header row of distinct column names, comma or semicolon delimiters, identical column counts on every row, and plain decimal numbers in the selected time and value columns. Non-numeric text in unused columns is ignored, and the first malformed cell halts parsing with its line and column index. Timestamps need not be sorted and may repeat. By default, µGauss selects the first two purely numeric columns for times and values, allowing reassignment from column menus.

Series exceeding 2,000 rows are thinned evenly across time, keeping up to $n = 2{,}000$ points by default for uploads and preset defaults for longer sample series. When all observation timestamps lie within a tenth of a grid step of a uniform spacing—including monthly decimal dates with gaps—Regular times activates automatically before thinning, shifting points onto the uniform lattice and reporting the step size and maximum shift so stationary kernels can evaluate by lag. Unticking Regular times preserves raw timestamps.

To make the interface immediately tryable without preparing a file, ten sample series and twelve editable Examples are available directly in the form. Neither those datasets nor their example kernels are built into the estimation engine: selecting an example simply fills the input fields with a meaningful starting formula, and every expression, constraint, or choice of data can be edited or replaced freely.

SeriesPointsSource
CO2 at Mauna Loa767NOAA Global Monitoring Laboratory
Global temperature1,762, thinned to 600NASA GISS, GISTEMP v4
The Nile at Aswan100Durbin and Koopman, via Rdatasets
Airline passengers144Box, Jenkins and Reinsel, via Rdatasets
Sunspots3,334, thinned to 600SILSO, Royal Observatory of Belgium, Brussels
Methane, global518NOAA Global Monitoring Laboratory (Lan, Thoning and Dlugokencky)
Arctic sea ice574NSIDC Sea Ice Index, version 4 (G02135)
Canadian lynx114Elton and Nicholson (1942), via Rdatasets
Lake Huron98Brockwell and Davis, via Rdatasets
US births per day550US National Center for Health Statistics, as prepared for Gelman et al., Bayesian Data Analysis (3rd ed.)

Syntax

Numeric literals accept formats such as 2, 0.5, or 1e-3. Identifiers begin with a letter and continue with letters, digits, or _. Operator precedence runs from loosest to tightest:

OperatorMeaning
+, -sum, difference
*, /product, quotient
- prefixunary negation
^ or **power, right-associative

Exponentiation binds tighter than unary negation, so -a^2 parses as -(a^2) and 2^-1 as 2^(-1).

The input variables are s and t in kernel expressions, t in mean expressions, and x in statistics expressions. Neither those variable symbols nor the reserved keywords where, in, from, and inf can name parameters. Any other symbol outside built-in constants, functions, and named kernels defines a model parameter.

FunctionMeaning
exp(x)exponential
log(x)natural logarithm
sqrt(x)square root
abs(x)absolute value
sin(x)sine
cos(x)cosine
tan(x)tangent
sinh(x)hyperbolic sine
cosh(x)hyperbolic cosine
tanh(x)hyperbolic tangent
min(a, b)minimum of two arguments
max(a, b)maximum of two arguments
delta(a, b)$1$ when paired with itself and $0$ otherwise, representing white noise

Built-in constants consist solely of pi for $\pi$.

Expressions allow up to 60 nested delimiters, calls, signs, and powers, and an expression tree depth of 300, making long sums bounded by term count. Syntax or arity errors point directly to the offending token in the source text:

RBF takes 1 or 2 arguments: RBF(l[, sigma])
  RBF(l, a, b)
  ^

Constant division by zero, logarithms of zero, and floating-point overflow fail validation before fitting begins.

Predefined kernels

Named kernels take parameter names or literal numbers as arguments and evaluate to $\sigma^2$ times the unit-amplitude covariance below. The trailing amplitude argument $\sigma$ is always optional and defaults to $\sigma = 1$ when omitted.

KernelValue for unit amplitudeMeaning
Const([sigma])$1$constant covariance
WN([sigma])$\delta_{s t}$independent white noise, $1$ where $s = t$
RBF(l[, sigma]), also SE$\exp\left(-\frac{(s - t)^2}{2l^2}\right)$squared exponential
Mat12(l[, sigma]), also OUs$\exp\left(-\frac{\lvert s - t\rvert}{l}\right)$Matérn $1/2$, stationary Ornstein–Uhlenbeck correlation
Mat32(l[, sigma])$\left(\frac{\sqrt{3}\lvert s - t\rvert}{l} + 1\right)\exp\left(-\frac{\sqrt{3}\lvert s - t\rvert}{l}\right)$Matérn $3/2$
Mat52(l[, sigma])$\left(\frac{5(s - t)^2}{3l^2} + \frac{\sqrt{5}\lvert s - t\rvert}{l} + 1\right)\exp\left(-\frac{\sqrt{5}\lvert s - t\rvert}{l}\right)$Matérn $5/2$
RQ(l, alpha[, sigma])$\left(\frac{(s - t)^2}{2\alpha l^2} + 1\right)^{-\alpha}$rational quadratic scale mixture of RBF
GammaExp(l, gamma[, sigma])$\exp\left(-\left(\frac{\lvert s - t\rvert}{l}\right)^{\gamma}\right)$gamma-exponential with $0 < \gamma \le 2$
Per(p, l[, sigma])$\exp\left(-\frac{2\sin\left(\frac{\pi\lvert s - t\rvert}{p}\right)^2}{l^2}\right)$periodic exp-sine-squared
Cos(p[, sigma])$\cos\left(\frac{2\pi(s - t)}{p}\right)$cosine covariance
Lin(c[, sigma])$(s - c)(t - c)$linear kernel anchored at $c$
Poly(d, c[, sigma])$\bigl((s - c)(t - c) + 1\bigr)^d$polynomial of integer degree $d \ge 1$ anchored at $c$
BM(t0[, sigma])$\min(s, t) - t_0$Brownian motion started at $t_0$, $s, t \ge t_0$
Bridge(t0, t1[, sigma])$\frac{(\min(s, t) - t_0)(t_1 - \max(s, t))}{t_1 - t_0}$Brownian bridge from $t_0$ to $t_1$
OU(theta, t0[, sigma])$\frac{\exp(-\theta\lvert s - t\rvert) - \exp(-\theta(s + t - 2t_0))}{2\theta}$unit-volatility Ornstein–Uhlenbeck started at $t_0$
FBM(H, t0[, sigma])$\frac{\lvert s - t_0\rvert^{2H} + \lvert t - t_0\rvert^{2H} - \lvert s - t\rvert^{2H}}{2}$fractional Brownian motion with Hurst exponent $H$, started at $t_0$
IBM(t0[, sigma])$\frac{\min(s - t_0, t - t_0)^2\lvert s - t\rvert}{2} + \frac{\min(s - t_0, t - t_0)^3}{3}$integrated Brownian motion, cubic spline from $t_0$
LocalPer(p, lp, l[, sigma])$\exp\left(-\frac{(s - t)^2}{2l^2} - \frac{2\sin\left(\frac{\pi\lvert s - t\rvert}{p}\right)^2}{\mathit{lp}^2}\right)$locally periodic product, equivalent to Per(p, lp) * RBF(l)
SM(p, l[, sigma])$\cos\left(\frac{2\pi(s - t)}{p}\right)\exp\left(-\frac{(s - t)^2}{2l^2}\right)$spectral-mixture component, equivalent to RBF(l) * Cos(p)

Unit-amplitude WN and Const accept bare names without parentheses. Supplying a numeric literal instead of a name fixes that argument inline, as in Per(1, lp) for an annual cycle. For Poly, the degree $d$ must be a literal integer from $1$ upward.

Valid kernel constructions

A custom kernel can combine named kernels, arithmetic operators, functions, parameters, and the time symbols $s$ and $t$ in any expression. Before fitting starts, µGauss tests symmetry in $(s, t)$ numerically over the sample grid and rejects asymmetric formulas. Positive semi-definiteness is verified only through matrix factorization during evaluation, so a symmetric indefinite formula such as a^2 * abs(s - t) fails Cholesky factorization unless enough additive noise shifts eigenvalues above zero—in which case the fitted numbers no longer represent a Gaussian process.

Building solely from positive semi-definite closure rules guarantees valid covariances for all observation grids:

FormConditionExample
$\sigma^2 k(s, t)$nonea^2 * RBF(l)
$k_1(s, t) + k_2(s, t)$noneRBF(l, a) + Per(p, lp, b)
$k_1(s, t)\,k_2(s, t)$nonePer(p, lp, a) * RBF(l)
$h(s)\,h(t)\,k(s, t)$identical function $h$ on $s$ and $t$exp(c * s) * exp(c * t) * RBF(l, a)
$k\bigl(g(s), g(t)\bigr)$identical warp $g$ on $s$ and $t$exp(-(log(s - 1948) - log(t - 1948))^2 / (2 * l^2))
$\kappa(s - t)$$\kappa$ positive definiteexp(-abs(s - t) / tau) * cos(2 * pi * (s - t) / p)

Scaling by $h(s)h(t)$ introduces time-varying marginal variance—multiplying prior variance by $e^{2ct}$ in the exponential example, as used in the tanh changepoint switch and the airline passenger product kernel—while applying $g$ warps time non-uniformly across the kernel. By Bochner’s theorem, a stationary difference formula $\kappa(s - t)$ is positive semi-definite precisely when its Fourier transform is non-negative, which holds for both exp(-abs(s - t) / tau) and cos(2 * pi * (s - t) / p) and hence their product, as applied to Canadian lynx cycles, but fails for abs(s - t).

Parameters introduced outside named kernel arguments carry no default bounds and optimize unconstrained with a warning until typed with a where clause:

a^2 * exp(-abs(s - t) / tau) * cos(2 * pi * (s - t) / p) + WN(n)
where a: amplitude, tau: lengthscale, p: period

Here the declarations assign amplitude, length scale, and period roles to $a$, $\tau$, and $p$.

Parameter roles

Parameters are local to each distinct name, so writing the same name in two kernel terms or in both mean and kernel shares a single variable, while distinct names in an unanchored product share only their product amplitude and trigger an identifiability warning, as in the worked Nile product example. A parameter’s role determines its domain, default search box, random starting distribution, and optimizer scaling:

RoleDomainMeaning
variance$(0, \infty)$variance in squared units of $y$
amplitude$(0, \infty)$standard deviation in units of $y$
lengthscale$(0, \infty)$correlation distance in $t$
period$(0, \infty)$repetition period in $t$
rate$(0, \infty)$decay rate in inverse units of $t$
shape$(0, \infty)$dimensionless shape parameter
exponent$[0, 2]$distance power exponent
hurst$[0, 1]$Hurst exponent for fractional Brownian motion
offset$(-\infty, \infty)$anchor time in $t$ for trend kernels
origin$(-\infty, \infty)$start time $t_0$ of a non-stationary process
real$(-\infty, \infty)$real parameter with no default search box

The Parameters table edits constraints interactively across Fixed at, Between, and Start from columns, highlighting manual overrides and clearing them via Reset to defaults. Identical declarations can follow a where keyword inside Kernel or Mean, separated by commas, semicolons, or newlines:

StatementMeaning
p = 1pin parameter $p$ during optimization
l in [0.5, 5]inclusive search bounds, with parentheses accepted as brackets
l > 0.1, l <= 5one-sided lower or upper bound
l in [0.5, inf]open-ended bound via inf
l from 2starting value for the first optimizer run
theta: rateassign parameter role
K = 1.1bind constant referenced inside Statistics

Multiple range constraints on the same parameter intersect. Conflicting pins, empty intersections, bounds outside the role’s mathematical domain, out-of-bounds starting points, or rules targeting unused identifiers fail validation before fitting.

Mean

The Mean dialog selects either a closed-form polynomial trend $\mu(t) = \beta_0 + \beta_1 t + \dots + \beta_d t^d$ of degree $d \in \{0, 1, 2, 3\}$ or a custom formula in $t$. Polynomial coefficients $\beta$ are estimated analytically by generalized least squares rather than searched numerically and count toward parameter totals in AIC and BIC. Under uncertain trend mode, estimation variance on $\beta$ adds to predictive bands beyond the data—equivalent to a vague constant plus linear kernel prior—while under rigid mode the fitted coefficients act as fixed deterministic constants while leaving kernel estimates unchanged.

Custom expressions such as m0 + c * exp(-t / tau) or m0 + m1 * t + c * sin(2 * pi * t / p) optimize their parameters jointly with the covariance kernel, share names seamlessly across both fields, take roles via where, and omit the uncertain or rigid toggle. Entering 0 specifies an exact zero prior mean.

Statistics

The Statistics box takes one command or definition per line referencing the latent posterior process $x$ without modifying fitted hyperparameters. Blank lines and # comments are ignored.

LineMeaning
H = exp(0.07 * x)name a transformed function of $x$ using constants bound in where
Mean(x), Variance(x), Std(x)posterior curve over time for $x$ or a named transform
Quantile(x, 0.99)exact quantile curve of order $q \in (0, 1)$
At(x, 2030, 2040)exact marginal density plotted at up to 5 times
At(Quantile(H, 0.99), 2040)scalar summary at one time accompanied by $1\%$ parameter sensitivities
Average(x, 2025, 2030), Integral(x, 2025, 2030)interval linear functional plotted as a scalar normal law
Std(Average(x, 2025, 2030))scalar Mean, Variance, Std, or Quantile of an interval functional with $1\%$ sensitivities
x, Hbare name opening a variable tab, with x always present

Statistics accepts up to 24 lines and 4 named functions, flagging sensitivity-enabled commands with the With sensitivities icon. Function identifiers cannot reuse model parameters, y, or reserved keywords x, t, s, At, Mean, Variance, Std, Quantile, Average, and Integral.

Because $x(t)$ and every interval average or integral follow one-dimensional normal posteriors, moments, quantiles, and densities of arbitrary transforms evaluate exactly by 1D integration without sampling, verified across kinks for the Nile threshold excess. Poles or undefined intervals overlapping predictive support report non-existent moments, and quantile sensitivities vanish or become undefined where a non-monotone transform turns flat.

Distribution of the Nile flow over time as shaded bands, with the mean curve and the 95% quantile curve widening after 1970 Distribution of the Nile flow over time as shaded bands, with the mean curve and the 95% quantile curve widening after 1970
Posterior distribution of $x(t)$ with Mean(x) and Quantile(x, 0.95) curves. Open this model in µGauss ↗
Normal density of the Nile flow in 1975 with markers at the mean and 95% quantile Normal density of the Nile flow in 1975 with markers at the mean and 95% quantile
Exact marginal density of $x$ at 1975 from At(x, 1975) with mean and 95% quantile markers. Open this model in µGauss ↗
Time curves of parameter sensitivities for posterior mean and 95% quantile decaying to zero away from observations Time curves of parameter sensitivities for posterior mean and 95% quantile decaying to zero away from observations
Sensitivity curves of Mean(x) and Quantile(x, 0.95) with respect to a model parameter over time. Open this model in µGauss ↗

Forecast horizon

Forecast Horizon sets the right endpoint of prediction grids strictly past the last observed timestamp. By default it extends past the data end by one fifth of the observed time span.

Optimizer

Maximization runs L-BFGS-B from Restarts initial points, defaulting to 4 and allowing up to 8. The first run starts at any user-supplied Start from overrides or otherwise the midpoint of each search range, while remaining restarts sample uniformly within active bounds. Setting Seed between $0$ and $2^{32} - 1$ makes multistart draws deterministic across repeated fits.

Results

Fit and forecast plots observations alongside the predictive mean, 50% and 90% new-observation bands, the forecast region shading, and, when active, a dashed polynomial trend line. A status line underneath counts how many restarts reached the best log likelihood, flagging the fit as fragile whenever fewer than half agree.

The Parameters table reports marginal log likelihood, BIC, AIC, and a table of fitted values, standard errors, and active search bounds across the Parameters tab. Tabs for x and each named statistic function show marginal curves alongside the Sensitivity to a parameter chart—plotting raw partial derivatives $\frac{\partial S(t)}{\partial \theta}$ per unit increase with other parameters held—and scalar summaries whose info popovers report ranked $1\%$ parameter increments $\Delta S = \frac{\theta}{100}\frac{\partial S}{\partial \theta}$. Diagnostics plots additive component posteriors and leave-one-out standardized residuals, which check interior interpolation without detecting wrong polynomial extrapolation degrees as seen on Mauna Loa CO2.

WarningMeaning
'p' is used as period and as length scaleone parameter appears in incompatible roles
the factors each carry a scalea product contains multiple free amplitudes so only their product is identified
'a2' has no range and is fitted without boundsa parameter outside named kernels lacks both a role and explicit bounds
'l' ended at its upper boundthe optimum hit a search edge fixed by default roles or user bounds
the factorisation kept k of n dimensionsnear-singular covariance dropped dimensions during rank-revealing factorization, typical without noise

Share encodes the active sample dataset, model formulas, parameter constraints, statistics definitions, and optimizer settings into a portable link. Because uploaded CSV files are not stored permanently, shared links apply only to the example datasets. Opening a shared link populates all form fields, displays stored results if cached, or waits for a manual click on Fit without launching computation automatically.

The hosted workbench enforces demo limits on upload size, series length, free parameters, expression complexity, and run time. Those caps are not duplicated here and can be checked directly in Demo Mode on the page itself.