Conditional means with a selected covariance background

Conditioning and prediction use the same projection

Let X denote every background observation, S a subset of X, and A the added observations. Each geometry contributes its energy and Cartesian gradient channels. The background mean m uses every observation in X. The selected covariance is

C_S(Q,A) = K(Q,A) - K(Q,S) H_S^-1 K(S,A),
H_S = K(S,S) + N_S.

With added-observation noise N_A and an optional independent residual kernel R, conditioning gives

w = [C_S(A,A) + R(A,A) + N_A]^-1 [y_A - m(A)],
m_new(Q) = m(Q) + [C_S(Q,A) + R(Q,A)] w.

If P selects S from X, the cached mean embeds H_S^-1 K(S,A) w through P^T. Its entries outside S are zero. The background mean coefficients remain supported on all of X. Substituting the full-background inverse for H_S^-1 in this expansion changes the mean without changing the conditioning weights; it does not implement the posterior above.

An active posterior retains S with its factor. Mean, joint covariance, marginal variance, functional variance, and acquisition calculations all use that selection. Selecting a different nearest subset separately for each query can combine incompatible covariance blocks and produce negative variances. Updated selection controls take effect when the active posterior is reconditioned.

At fixed kernel parameters, adding observations retains the dimer’s existing covariance support. A full-background solve remains full; a selected solve admits additional footprint observations without discarding retained ones. Parameter fitting may select a new footprint for the changed model.

Executable checks

scripts/derive_conditional_subset_mean.py verifies the expansion by exact SymPy arithmetic. Its positive definite geometric-covariance example has selected mean 2435/2754 and mixed-projection error -12325/62208. proofs/lean/GPRidge/ConditionalSubsetMean.lean proves the matrix reassociation and the projection-error identity. scripts/verify_conditional_subset_mean.sollya checks that binary64 arithmetic resolves the same example within its stated rounding bound. These checks establish the algebraic identities and that numerical example; they do not establish search convergence or speed.

The C++ regressions compare the joint conditional mean and covariance with a separate dense solve, check retained nearest-subset support across all prediction forms, and require fixed-parameter conditioning to decrease covariance in the positive-semidefinite order. The matrix tests run on Eigen, ScaLAPACK, and SLATE, including distributed channel ordering.