fips.Posterior.averaging_kernel#
- Posterior.averaging_kernel(W=None)[source]#
Return the averaging kernel, of the state or of aggregates of it.
Without W, \(A = K H\), state by state (dense,
n x n; formed once, the same object each time). With an aggregation \(W\), \(W A W^*\), where \(W^* = W^T (W W^T)^{-1}\) is the pseudo-inverse of \(W\): it spreads a change of the aggregates back over the state elements (for a sum, evenly over the elements summed), so \(W A W^*\) is how the aggregated estimate responds to the aggregated truth. This is the form IMI uses; \(W A W^T\) is not an averaging kernel. It is computed without then x nkernel.- Parameters:
W (
Operator|None) – An aggregation, ascov()takes it. Its rows must be linearly independent.- Returns:
n x non the state’s space, ork x kon the aggregation’s rows.- Return type:
- Raises:
ValueError – If the columns of W do not have exactly the state’s labels, or its rows are linearly dependent.