We are interested in where . First note that for any -vector ,
i.e. . Since , we can, therefore, write
by the definition of matrix expectation. Hence
and similarly .
With the ground work above we can now find the variance matrix for .
∎
Setting gives
For we get back the familiar expression
For we get Equation (7.1), since, is
Finally, setting
with gives
So
A square matrix is positive semi-definite if for any -vector , . Why are all variance matrices positive semi-definite?
Solution. Let be a variance matrix for some random variable . Then the variance of is ; but variances cannot be negative.
Suppose the variance of and are both , and that their correlation is .
Show that the variance of lies between and .
What is the value of and hence, what is the relationship between and when and ?
Solution.
The inequality follows as
For , need (uncorrelated). For , need i.e. ; . For , need i.e. ;
Find , when the variances are and and their correlation is .
Solution.
Matrix multiplication:
Bilinearity:
This uses , , and .
When are independent and , the variance formula simplifies to
because for .
In particular, we get the following, which we will use repeatedly through the remainder of this module.
Let be independent and define
,
.
Then
,
.
The variance of the sum is the sum of the variances, when are independent.
Further, if have the same variance, , this simplifies to
,
.
In particular, these formulae hold when are i.i.d. (independent, identically distributed).
are independent and for , ; what is ? Do the need to be independent for this result to always hold?
Solution.
Independence is required in general.
Two packs of batteries are for sale: pack A contains batteries each exponentially distributed with expected lifetime hours; pack B contains batteries each exponentially distributed with expected lifetime hours. The batteries in a pack are used consecutively. Show that the expected lifetimes for the packs are the same; which is the most reliable pack?
Solution. For pack A the total lifetime where . So and .
Hence hours, and .
For pack B the total lifetime , where . So and . Hence hours, the same as A, and . If the expectations are the same, then reliable is equivalent to small variance. So choose pack A.
has expectation vector and variance matrix given by
,
.
Find the expectations, variances and covariance of and .
Solution. We have
where
Thus
and
Note that and are uncorrelated even though the ’s are not.