This topic arises from my study concerning Gaussian processes. Given a zero-mean Gaussian process with covariance function k(x,x′), i.e. f(x)∼GP(0,k(x,x′)), with finite observations (f(xi))i=1n, we'd like to find the conditional distribution of (f(yj))j=1m∣(f(xi))i=1n. It turns out that we have a neat expression:
f(yj)j=1m∣f(xi)i=1n∼N(K(Y,X)K(X,X)−1f,K(Y,Y)−K(Y,X)K(X,X)−1K(X,Y)),
where f=(f(x1),f(x2),...f(xn))T and K(X,Y) is the covariance matrix between X=(x1,x2,...xn)T and Y=(y1,y2,...ym)T.