Covariance Created 2026-09-24 Updated 2026-10-14
The covariance measures the average product of two centered deviations. For real square-integrable random variables and ,
Deviations with the same sign contribute positively; deviations with opposite signs contribute negatively. Their magnitudes and probabilities determine the net result. Taking recovers the variance. The definitions and algebraic properties are presented in Orloff and Bloom, MIT 18.05, Covariance and Correlation, sections 2–2.1.
For a worked example, let be independent random variables, each equally likely to be , or , and put . All nine pairs have probability . The expected values are zero, while linearity of covariance and the vanishing covariance of independent random variables give
The shared term makes large accompany large on average. Replacing by reverses the covariance to without changing either variance.
Figure 1.
Positive, negative, independent, and nonlinear relationships have different covariance behavior
. In the first three panels, and independently take , and with equal probabilities; each point has probability . In the last panel, , and the three marked outcomes each have probability . The thin curve shows that quadratic function. Its zero covariance leaves strong nonlinear statistical dependence visible. Details.
The covariance is useful whenever deviations are added or subtracted. Expanding the square gives
For the worked model, these are and . Positive covariance increases variation in the sum while reducing variation in the difference: the same shared fluctuation reinforces one combination and partly cancels in the other. The identity applies beyond independent random variables.
The size of a covariance depends on the measurement scale. For constants , linearity of covariance gives . Adding offsets has no effect; rescaling either measurement rescales the covariance. The Pearson correlation coefficient divides by both standard deviations to describe the standardized linear relationship.
A raw laser pulse energy estimate and its baseline correction can contain the same readout error. Let be the raw gate integral, the estimated integrated background and the corrected result. Linearity of covariance gives the exact identity
For this linear measurement model, the law of propagation of uncertainty is exact whenever the input variances exist. Its general form includes the sensitivity coefficients and covariance terms.[ref] Positive covariance reduces the variance of this difference; it would instead increase the variance of a sum.
An original shared-offset model makes the mechanism explicit. For fixed gate duration , write
where is a common additive power-readout offset with standard uncertainty , while and are independent zero-mean energy errors, independent also of . Then , and shared-offset cancellation in a baseline-corrected pulse integral gives . The shared offset contributes no uncertainty to this difference. It need not be small or separately known.
Choose , , and . The shared energy contribution is in each reading. Thus , and , yielding . Incorrectly discarding the covariance gives .
Cancellation weakens if the offset changes between acquisitions. Replace by two offsets with the same standard uncertainty and correlation coefficient . Under the same independent residual-error assumptions,
At , the chosen example gives . A baseline taken far away in time cannot simply be assigned the covariance of an unchanged offset.
Figure 1.
Shared baseline errors cancel according to their correlation
. Original numerical model with a 2 nJ offset uncertainty in each acquisition and independent residual uncertainties of 0.3 nJ and 0.4 nJ. The comparison curve incorrectly treats the shared offsets as independent. Details.
A sampled implementation has the same structure. If a vector of readings has covariance matrix , and fixed integration weights give and , then
A constant offset cancels when the weights sum to the same gate duration: . This does not justify using pulse-contaminated readings as background. Matched blank sequences, collected with the actual timing, help characterize the needed noise correlations.
The historical NIST TC-24 apparatus used a thermocouple-based absorbing plate and averaged baseline measurements before and after laser injection to compensate background and thermal drift.[ref] The offset model above is an independent illustration, not a reconstruction of that instrument's uncertainty budget.
Cross-covariance matrix 2026-11-05
For real random vectors and with finite second moments, their cross-covariance matrix collects the covariances between the two sets of coordinates:
It has size , and exchanging the two vectors transposes it: . Unlike a covariance matrix of a vector with itself, a cross-covariance matrix need not be square or symmetric.
For an original construction, let centered independent random variables have variances1and4, and put
Linearity of covariance gives
The second entry contains a negative contribution from , although the total is positive. Also and
This joint covariance matrix is positive semidefinite. That restriction couples its diagonal and off-diagonal blocks; an arbitrary rectangular matrix cannot be combined with arbitrary within-vector covariances to produce a valid joint model.
For fixed real matrices and constant vectors , direct substitution into the definition gives
This identity propagates shared input fluctuations through two different linear readouts, for example when assessing shared calibration error.
From independent identically distributed paired observations, the usual unbiased estimate is
The pairing must be preserved: independently shuffling the second set changes the estimated association. NIST's multivariate tutorial gives the coordinate sample-covariance formula and its assembly into a covariance matrix; the rectangular formula above is the block joining the two chosen coordinate groups.[ref]
The joint dependence of leave-one-out consensus residuals arises because different laboratories' benchmarks reuse many of the same observations. Excluding each result from its own leave-one-out interlaboratory consensus does not make the complete collection of residuals independent.
Let be fixed positive coefficients with , and let be the full weighted mean. With at least two observations, every , and the omitted-result residual is
Write for the weighted centering matrix, and for a diagonal matrix. Then
Each row of sums to zero, so each residual is a contrast: a common additive level cancels.
For independent observations with positive variances , define . Expanding linearity of covariance gives
Equal coefficients and equal variances reduce these expressions to
The familiar negative covariance belongs to this model. Arbitrary fixed coefficients can produce a different sign.
An original three-laboratory counterexample sets and . Then , and
This positive covariance has a simple cause: both benchmarks are dominated by the third result. Increasing pushes both and downward. The coefficients are stipulated to expose the dependence; with equal observation variances, they are not inverse-variance coefficients.
Figure 1.
Leave-one-out residual correlation depends on both coefficients and observation variances
. Original three-laboratory models with independent unit-variance observations. Equal coefficients give negative pairwise correlation; a dominant third coefficient creates positive correlation between the first two residuals. Details.
For positive inverse-variance weights , where , one has and . The off-diagonal expression becomes
Thus the leave-one-out inverse-variance weighted consensus has a special sign pattern under its independent known-variance assumptions.
The coefficients also impose a deterministic constraint,
Consequently the residual covariance matrix is a singular matrix. Under the independent-observation model with every , its matrix rank is : the weighted centering matrix removes the common-level direction and the invertible diagonal matrix preserves that rank. For equal coefficients the constraint is simply .
These dependencies matter when evaluating several laboratories together. Products of single-residual probabilities generally do not describe joint events. A specified joint model or a set of appropriately chosen contrasts can represent the available information without treating redundant residuals as independent observations.
A leave-one-out interlaboratory consensus estimates a benchmark for laboratory from the other participants. For a fixed weighted mean with positive coefficients and at least two results, define
The omitted result does not enter its own benchmark. This removes the direct participant influence on a consensus assigned value for the stated fixed-weight estimator. It does not establish independence when laboratories share a systematic error. The proficiency-testing guide distinguishes participant consensus from expert or independent reference assignment; the leave-one-out construction here is a mathematical comparison, not a claim that the guide requires this scoring procedure.[ref]
With equal weights and original results , the omitted-result arithmetic means are , giving residuals . Residuals from the full arithmetic mean are . In general,
The larger magnitudes reflect a changed comparator rather than a changed laboratory result.
The joint dependence of leave-one-out consensus residuals matters when interpreting the collection of scores. Suppose the are independent random variables with a common mean and finite common variance . A result is independent of the arithmetic mean of the other results, so
For different participants, however, their leave-one-out benchmarks overlap. Linearity of covariance gives
Thus independent laboratory observations do not give independent residual scores. The zero-sum identity makes their covariance matrix a singular matrix. For and units, each residual has standard deviation units, and each distinct pair has correlation coefficient . No normal distribution assumption is needed for these moment identities.
A leave-one-out inverse-variance weighted consensus applies an inverse-variance weighted mean to the remaining participants when their standard uncertainties are known. Under independent unbiased observations with weights , put . Then
These are uncertainties under that observation model; the resulting quantity should not automatically be called a proficiency-test z-score with a fixed assessment scale. Computing is algebraically convenient, but direct summation of the remaining terms can avoid cancellation when one participant dominates the total weight.
If a robust estimator has weights depending on the full data set, merely deleting one weighted numerator term need not reproduce the estimator fitted without that participant. The estimator must be recomputed according to its specified rule. Finally, a common additive calibration error remains undetectable in these residuals: replacing every by leaves all unchanged. Shared bias in an interlaboratory consensus therefore remains a separate question from self-influence and the variance of the residuals.
For any finite list , the random vector has a multivariate normal distribution, since it is a linear image of a vector of Brownian motion coordinates. The Brownian covariance kernel and linearity of covariance give
The independence of uncorrelated jointly normal variables implies that is independent of . Extending from finite-coordinate cylinder events by independence extended from generating pi-systems proves
Thus the Brownian bridge is independent of its endpoint. Its covariance kernel is , confirming that is the standard Brownian bridge. This is the Brownian bridge independence from its endpoint property.
For distinct sibling supernovae and in the same galaxy, the shared fluctuation is the only common random term. Independence and linearity of covariance therefore give
Their correlation coefficient is
This is the intraclass correlation coefficient of the galaxy-level random intercept model.
Here . By linearity of covariance and independence,
Thus the two estimators are uncorrelated random variables.