Understanding Stheno example

The object f is a composite GP object, which captures the statistical relationship between f1, f2, and f3 defined in the let block. Basically, it’s three GPs which each have a certain correlation structure, with the constraint that one of them is the sum of the other two.

f is an abstract, infinite-dimensional object, but to use it in practice, you need to specify some locations x at which to calculate its mean and covariance. The last line is constructing a finite GP (i.e., a multivatiate normal distribution) defined at the locations x. In this line, σ²_n is the observation error associated with fx. Observations simulated from it will have an additional i.i.d. noise added to it with variance σ²_n. If you use those observations to to infer the true value of f, Stheno will take that measurement error into account (intuitively, it will tend to ignore random jumps in the data unless they’re significantly larger than σ²_n).

2 Likes