Variance-Weighted Averaging

Given multiple observations with different variances $\sigma^{2}_i$, we want to fuse them. For example, this arises when the same quantity is observed by multiple sensors at the same time, or when the same sensor measures a quantity assumed to be constant at different times, with observation noise that varies over time. The goal is to obtain a weighted average of the individual observations of the form

\begin{displaymath}
\bar{x} = \sum_i w_i x_i
\end{displaymath} (2.63)

By definition, the variance of the variable $\bar{x}$ is
\begin{displaymath}
\sigma^2_{\bar{x}} = \sum_i w^{2}_i \sigma^2_{i}
\end{displaymath} (2.64)

The optimal solution (the maximum likelihood estimator) is obtained by minimizing this quantity subject to the additional constraint $\sum_i w_i = 1$.

The weights that minimize this quantity are

\begin{displaymath}
w_i = \frac{ \frac{1}{\sigma^{2}_i} } { \sum_j \frac{1}{\sigma^{2}_j} }
\end{displaymath} (2.65)

In this way, the variance of the average is lower than the variance of each individual measurement and is given by

\begin{displaymath}
\sigma^{2}_{\bar{x}} = \frac{1}{\sum 1/\sigma^{2}_i}
\end{displaymath} (2.66)

A direct consequence is that $n$ readings of the same quantity from the same sensor can be combined (assuming constant observation-noise variance), even when taken at different times. The resulting variance is

\begin{displaymath}
\sigma^{2}_{\bar{x}} = \frac{ \sigma^{2}_0 } {n}
\end{displaymath} (2.67)

This result can be obtained iteratively using the recurrence:

\begin{displaymath}
\bar{x}_{i+1} = (1 - k) \bar{x}_i + k x_{i+1} \quad k = \frac{\sigma^2_{\bar{x} } } { \sigma^2_{\bar{x} } + \sigma^2_{i+1} }
\end{displaymath} (2.68)

where $k$ is the blending factor. Written this way, the estimate of the quantity has the same form as the one-dimensional Kalman filter (compare this result with that in Section 3.2.1): in the absence of process noise, the gain $k$ tends to zero.

This result can be interpreted as the static case of optimal fusion of Gaussian observations and is one of the principles underlying the Kalman filter.

Paolo medici
2026-10-19