Second moments, covariance, and connectivity AI

Why a matrix of signal products can retain mean structure that is absent from covariance and correlation.
Published

October 21, 2026

A matrix relating regional signals is not automatically a correlation matrix. Its interpretation depends on whether the signals have been centered, how they have been scaled, and which product is being estimated. These choices matter when a dynamical model produces signed spatial patterns from positive-valued inputs.

Means contribute to a second moment

For an ROI signal vector yy, define its mean μ=E[y]\mu=E[y]. The second-moment matrix is M=E[yy𝖳]M=E[yy^\mathsf{T}], while covariance is

C=E[(y−μ)(y−μ)𝖳]=M−μμ𝖳.C=E[(y-\mu)(y-\mu)^\mathsf{T}]=M-\mu\mu^\mathsf{T}.

Covariance describes variation around the mean. Correlation further divides each covariance by the two regional standard deviations. This removes their units and yields a measure of linear association; Nilearn’s connectivity tools distinguish these estimators.

The same two signals yield positive cross-products, negative covariance, and negative correlation after accounting for their means.

Illustrative signals with positive means and exactly opposing fluctuations. Their off-diagonal second moment is positive even though their correlation is −1.

A predictive moment is conditional

A temporal model may estimate M(h)=E[yy𝖳∣h]M(h)=E[yy^\mathsf{T}\mid h] from a recent history hh. Its corresponding conditional covariance would require subtracting μ(h)μ(h)𝖳\mu(h)\mu(h)^\mathsf{T}, using the conditional mean. Subtracting one whole-recording mean is not generally equivalent.

In the spectral model, M(h)M(h) is represented by a constant matrix and a weighted sum of network coefficient matrices. Individual coefficient matrices need not be positive semidefinite or interpretable as valid covariances. Finite fitted estimates of the combined moment can also violate positive semidefiniteness; the statistical target does not guarantee that every numerical estimate satisfies its constraints.

What signed patterns can tell us

Min–max scaling retains nonzero regional means. Mean structure can therefore occupy substantial space in the modeled moments, helping explain why an early component can look broadly mean-like. Negative entries in one coefficient pattern describe its contribution to the expansion; they do not by themselves establish anticorrelated BOLD signals or inhibitory connections.

For functional interpretation, first identify the modeled quantity. A spatial resemblance to a familiar system can help name a pattern’s anatomy without turning that pattern into conventional functional connectivity.