2.5. Linear propagation laws of mean and covariance#
Linear function of two random variables#
Consider a linear function of two random variables
We can now show that \(\mathbb{E}(q(Y))= a_1 \mathbb{E}(Y_1)+a_2 \mathbb{E}(Y_2)+c\) using our Taylor approximations. The first-order partial derivatives namely follow as
and all the higher-order derivatives are zero, and consequently all higher-order terms in the Taylor series will be zero. The expectation of \(q(Y)\) follows therefore as
which is exact (i.e., not an approximation anymore).
In a similar fashion derive the variance of \(X\), which is also an exact result.
Solution
First determine the first- and second-order partial derivatives of the function \(q(L,T)\) to obtain:
Note that it does not depend on the deterministic constant \(c\).
Linear functions of \(n\) random variables#
Note that the linear function of two random variables can also be written as \(q(Y) = \begin{bmatrix} a_1 & a_2\end{bmatrix}\begin{bmatrix}Y_1 \\ Y_2\end{bmatrix}+c\). We will now generalize to the case where we have \(m\) linear functions of \(n\) variables, which can be written as a linear system of equations:
with known \(\mathbb{E}(Y)\) and covariance matrix \(\Sigma_Y\), and \(\mathrm{c}\) a vector with deterministic variables.
The linear propagation laws of the mean and covariance matrix are given by
These are exact results, since for linear functions the higher-order terms of the Taylor approximation become zero and thus the approximation error is zero.
Consider the linear system of equations
with
Apply the linear propagation laws to find \(\mathbb{E}(X)=\mu_X\) and \(\Sigma_X\).
Solution
You want to measure out 1.5\(l\) of concrete in a bucket, but only have a bucket of with lines indicating 5\(l\), 2\(l\), and 0.5\(l\). These buckets are named \(a\), \(b\), and \(c\), respectively. To achieve this you take the 5\(l\) bucket, take out 2\(l\) using bucket \(b\), and then three times 0.5\(l\) using bucket \(c\): \(Y_1 = V_a - V_b - 3V_c\) (with \(V_i\) is the volume of bucket \(i\)). However, you can’t read the lines on the buckets perfectly, and the variance of your pouring skills is 1/100th of the volume of the bucket. Assume the volumes to be independent.
You do something similar to achieve 4.5\(l\) (\(Y_2 = V_a - V_c\)) and 1\(l\) (\(Y_3 = V_a-2V_b\)). Compute the covariance matrix of \([Y_1 \ Y_2 \ Y_3]^T\).
Hint: first find the \(\mathrm{A}\) matrix of the linear system \(Y=\mathrm{A}\cdot V\).
Solution
Attribution
This chapter was written by Sandra Verhagen. Find out more here.