Gaussian Process Regression with Symbolic Kernels

About

Given a time series, fits a Gaussian process described by symbolic mean and kernel functions, the most used ones being already predefined. The parameters are estimated by maximising the exact likelihood, with exact gradients and random restarts. The fit gives a forecast with its bands, the distribution of the process and of any function of it, averages and integrals over intervals, and the sensitivity of each of these to the parameters.

The models under Examples are not built into . Each one is a filled-in form: dataset, kernel, mean and statistics appear in the fields, where you can change anything before you fit. To start from nothing, load a series and write a kernel by hand.

Read more about it. Made by . apply.

Data

Airline passengers · 144 points · Box, Jenkins and Reinsel, via Rdatasets

Model

Mean

Mean

  • Coefficients by generalised least squares, jointly with the kernel.

  • Any expression in , its parameters fitted with the kernel's by maximum likelihood.

Statistics
Named function of , usable in place of
∂Mean of over time
∂Variance of over time
∂Standard deviation of over time
∂Quantile of order of over time
Distribution of at up to 5 times
∂Statistic at one time, a single number
∂Average of over , a normal variable
∂Integral of over , a normal variable
Parameters
Optimiser

No fit yet. Load a series, write a kernel, fit.

Load data and write a kernel.

Demo Limits

File
CSV, up to 0.5 MB, 10,000 rows, 10 columns. Kept on the server 5 minutes after its last use.
Points
3 to 2,000. A longer series is thinned evenly.
Model
Up to 15 free parameters, 2,000 characters per field, 400 operations per expression.
Fit
Up to 8 restarts. Estimated time up to 90 s. Stopped after 300 s or at the memory limit.
Curves
Up to 1,000 points.
Statistics
Up to 24 lines, 4 functions, 5 times per At.
Queue
One fit per visitor, 5 waiting in all, 10 fits a minute per address. Results kept 10 minutes.

Help

Data
Time series CSV file upload. Must have two numeric columns.
Examples
Complete models with their datasets, as a starting point to experimentation.
Kernel
Covariance function as a formula in and . Predefined kernels can also be used, see associated info.
Mean
Mean function as a formula in or the degree of a polynomial, whose parameters are fitted with the kernel's.
Parameters
Bounds and initial values for parameters.
Statistics
Functions to transform the result process. See associated info for allowed formulas and predefined functions.
Forecast
The forecast time horizon.
Optimiser
Number of restarts and the random seed to increase the chance that the highest likelihood is found.
Results
Fitted parameters with standard errors, and the likelihood. Distributions over time, statistics and their sensitivities to the parameters. Kernel components and leave-one-out residuals as diagnostics.
Limits
This demo has limits on size and cost. See .
More
Methodology Tutorial Reference

Data

Choosing one replaces the data.

Examples

Choosing one loads its dataset and fills in the model.

Seasonal cycles

An amplitude that changes

Cycles of varying length

Memory and roughness

Written in s and t

: covariance of at times and . : measurement noise, not part of . Optional last argument : amplitude.

KernelParameters
Stationary
Const(sigma)
WN(sigma)
RBF(l, sigma) length scale
Mat12(l, sigma) length scale
Mat32(l, sigma) length scale
Mat52(l, sigma) length scale
RQ(l, alpha, sigma) length scale, shape
GammaExp(l, gamma, sigma) length scale, exponent
Per(p, l, sigma) period, length scale
Cos(p, sigma) period
Products of the above
LocalPer(p, lp, l, sigma) period, length scale, length scale
SM(p, l, sigma) period, length scale
Trends
Lin(c, sigma) offset
Poly(d, c, sigma) a whole number, at least 1, offset
Processes started at a time
BM(t0, sigma) origin
Bridge(t0, t1, sigma) origin, origin
OU(theta, t0, sigma) rate, origin
FBM(H, t0, sigma) Hurst exponent, origin
IBM(t0, sigma) origin

: mean of . Polynomial trend: coefficients by generalised least squares, jointly with the kernel. Uncertain: their uncertainty enters the forecast band. Rigid: treated as exact. Formula in : parameters fitted with the kernel's by maximum likelihood.

Quantities of the fitted process , one per line. They do not change the fit. : times. : level. ∂: with sensitivities to the parameters. A click on a form inserts it with times from the data.

A formula in with + - * / ^, numbers, pi and exp, log, sqrt, abs, sin, cos, tan, sinh, cosh, tanh, min(a, b), max(a, b). Named on its own line, as in z = exp(x).

Each free parameter is searched between its bounds, starting from its start value. A fixed value takes it out of the fit. The defaults come from the data. Values you change are shown in colour.