Professional Documents
Culture Documents
Homework 1 Solutions
1. (a) |
Spring 2005
| = 1 2 3 = 144
(b) trace( ) = 1 + 2 + 3 = 20
(c)
V (e: x
) =
:
1
e = :e (1 :e )
1 :e :e
1 = 12
(d)
1 1
e = 1
e and
0 0
6 0
0 2
= 1 :e :e + 2 :e :e + 3 :e :e
2 2
3 3
1 1
8 2 2
= 2 6 4
2 4 6
1
= 11 :e :e + 12 :e :e + 13 :e :e
(e)
1 1
2 2
3 3
Then
: :
1
E(Y: ) = :e
2 :
e
:
3:
6
3
3
6
1
2
12
, V (Y: ) = 0
0
) ( X
) = X
( ) X
= X
X
= X
X because is an orthogonal
(h) y y = ( X
:
:
:
:
:
:
: :
: :
(i)
i. Yes, use result 2A.9.(e) on page 97 of the text and |I| = 1. Then, | y | =
|
= | |||| X | = | || X | = |I|| X |. This makes
X | = | ||
X |||
intuitive sense because | y | and | X | are proportional to the square of the
volume of the same ellipse. Rotations do not change volume.
ii. Yes, use
on page 98 of the
text. Then
result 2A.12.(c)
trace( y ) = trace(
)
=
trace(
X
X ) = trace(I
X ) = trace(
X ).
iii. No, Y is a diagonal matrix for any X regardless of whether or not X is a
diagonal matrix.
iv. Yes, note that Y is the spectral decomposition of
=
X . Then,
1
1 X
1 1
)
=
(
)
(
)
=
Y , X Y and
X
Y
Y
1
I 1
I
=
.
Y
Y
Consequently,
(Y: )
:
1
Y
1
(Y: ) = ( X
)
)
X ( X
:
:
:
:
:
Y
X
X
1
)]
[
(X
)]
= [ (X
X
:
:
:
:
X
X
1
)
(
)
(X
)
= (X
X
:
:
:
:
X
X
1
)
(
)
(
)(X
)
= (X
X
:
:
:
:
X
X
1
)
)
= (X
X (X
:
:
v. Yes,
(Y: ) (y )
:
= ( X
) ( X
)
:
:
:
= [ (X
)] [ (X
)]
:
:
:
= (X
) ( ) (X
)
:
:
:
= (X
) (X
)
:
:
:
2. (a) f (x1 , x2 ) =
2|
1
1
1
exp 2 (X
)
(X
)
:
:
|1/2
:
:
X
X
1
9 3
1
| = 36,
36
2
2
9
3
1
1
1
f (x1 , x2 ) = 236 exp 2 X
X
:
36
:
1
1
3 5
1
12 exp
1 2 2
58 [( x
) +
5
1 2
2 ( x
)( x231 )
5
5
+ ( x231 )2 ]
(e)
2(2)0.5 1 = 3.83
2(2)0.5 2 = 2.17
1
4
,
=
5/36 1/12
1/12 1/4
4. (a) (i),(v ) display independent pairs of random variables, you simply have to check if the
covariance is zero in each case.
(b)
X1
X2
3
1
4 0
,
0 5
3
1
+
1
0
( X23 4)
1
[2]1 (X3 + 1) =
4
0
0
5
1
0
[2]1
=
7/2 0
0 5
X1
X3
,
X2 |x1 , x3 N (1, 5)
5. (a) Z1 N (26, 77)
(b)
Z1
Z2
=
3 5
0 1
2
0 1 3
N
X
:
26
5
77 59
,
59 89
2 4
2 9
4 2
4/9 4/9
32/9 22/9
=
=
2 4
4/9
4/9
22/9 32/9
(d) 1423 =
5/2
7/27/2
5
7
= 0.714
6. (a) cov(X
Y: , X
+ Y: ) = cov(X
, X ) + cov(X
, Y ) cov(X
, Y ) cov(Y: , Y: )
:
:
: :
: :
: :
4 4
= 1 2 =
4
0
(b) No, because cov(X
Y: , X
+ Y: ) is not a matrix of zeros.
:
:
2
8 2 0
X
6 2
4 0
:
N
3 , 0
Y:
0 4
4
0
0 2
2
4
1
12
0
4 4
2 0
8 4
0
N
5 , 4 4 12
0
10
4
0
0
8
7. (a) d(p, q ) for any A. d(p, q ) = [(p, q ) A(p, q )]1/2 > 0 for any (p q ) if A is positive
: :
: :
: :
: :
denite and it always true that d(p, p) = 0. Now we only have to consider property
: :
(iv ). It easy to show that (iv ) is true when A is both positive denite and symmetric.
Then, the spectral decomposition matrix A = , exists, where is a diagonal
matrix containing the eigenvalues
of are the corresponding
1/2
denite and A
1/2
1/2
= A. Dene d
=A
:
(r: q ) and a
= (p :r ) A1/2 .
:
:
(a
d)2
: :
(a
a)(d d)
: : : :
: :
Then,
[d(p, q )]2
: :
(p q ) A(p q )
(p :r + :r q ) A(p :r + :r q )
:
[d(p, :r ) + d(r:, q )]
Then,
[d(p, q )]2
: :
=
=
1
(p q ) A(p q ) + (p q ) A(p q )
:
:
:
:
:
:
2 : :
1
(p q )
(A + A ) (p q )
:
:
:
:
2
was not positive denite, p q = :0 would exist for which (p q ) A(p q ) = 0 and
:
d(p, q )
: :
= max(|p1 q1 |, |p2 q2 |)
= max(|p1 r1 + r1 q1 |, |p2 r2 + r2 q2 |)
max(|p1 r1 | + |r1 q1 |, |p2 r2 | + |r2 q2 |)
max(|p1 r1 | + max(|r1 q1 |, |r2 q2 |),
|p2 r2 | + max(|r1 q1 |, |r2 q2 |))
max(|p1 r1 |, |p2 r2 |) + max(|r1 q1 |, |r2 q2 |)
= d(p, :r ) + d(r:, q )
:
8. (a)
i.
Iqq
0rq
B
Irr
Iqq
0rq
B
Irr
Iqq
Iqq Bqr + Bqr Irr
0rq Iqq + Irr 0rq
Irr
Iqq 0qr
=
= I(q+r)(q+r)
0rq Irr
ii.
Irr
B
0rq
Iqq
Irr
B
0rq
Iqq
(b) The determinant of a block triangle matrix can be obtained by simply multiplying
the determinants of the diagonal blocks. Consequently,
Iqq
B
= |Iqq ||Irr | = 1
0
Irr
and
Irr
B
0
Iqq
= |Irr ||Iqq | = 1
To formly prove the latter case, start with the martix with q = 1 and expand across
the rst row to compute the determinant. The determinant of each minor in the
expansion is multiplied by zero, except for the determinant of the r r identity
matrix which is multiplied by one. Cosequently, the determinant is one. Using an
inductive proof, assume the result is true for any q and use a similar expansion acroos
the rst row to show that it is also true when the upper left block has dimesion q+1.
Iqq
0qr
A11 A12
Iqq A12 A1
22
(c)
A21 A22
0rq
Irr
A1
Irr
22 A21
0qr
Iqq
Iqq A11 A12 A1
Iqq A12 A12 A1
22 A21
22 A22
=
0rq A11 + Irr A21
0rq A12 + Irr A22
A1
Irr
22 A21
1
Iqq
0qr
0
A11 A12 A22 A21
=
A21
A22
A1
A
Irr
21
22
1
A11 A12 A22 A21 0qr
=
0rq
A22
(d) from 8(c),
A11 A12 A1 A21
22
0rq
0qr Iqq
=
A22 0rq
A12 A1
22 A11
A21
Irr
Iqq
A12
A22 A1
22 A21
0qr
Irr
1
Iqq
A11 A12
Iqq A12 A1
22
A21 A22
0rq
Irr
A1
22 A21
1
1
1
1
Iqq
0qr
A11 A12
A12 A22
1
A21 A22
Irr
A22 A21 Irr
0qr
A11 A12 A1
22 A21
0rq
A22
Iqq
=
0rq
0qr
Irr
1
A12 A1
22
Irr
Iqq
0rq
A1 =
A11 A12 A1
22 A21
0rq
0qr
A22
1
Iqq
A1
22 A21
0qr
Irr
Iqq
A1
22 A21
9. Dene
A12 A1
22
Irr
Iqq
0rq
X
=
:
X
:
=
Iqq
0rq
A12 A1
22
Irr
1
0qr
Irr
Iqq
A1
22 A21
0qr
Irr
X
:
1
11
12
21
22
:
2
1
fX
(x) = (2)p/21| |1/2 exp 12 (X
)
(X
)
:
:
: :
:
(2)q/2 (2)r/2 |
22
|1/2 |
1
11
1
22
12
21
1
1
exp 2 (X
)
(X
)
:
:
1/2
:
(X
)
:
1
(X
) =
:
:
=
)
(X
:
1
=
Iqq
0rq
)
(X
:
1
(X
)
:
:
12
22
21
1
Irr
11
) (X
)
(X
:
:
1
)
(X
:
1
)
(X
:
:
1
1
12
)
(X
22
:
Iqq
1
21
22
(X
)
:
1
)
(X
:
1
0qr
Irr
0qr
( 11 12 1
21 )
22
1
0rq
22
)
21 ) (X
:
22
1
( 11 12 22 21 ) 0qr
1
0rq
22
(X
)
:
:
12
1
22
= [(X
)
:
:
12
1
22
[(X
)
:
:
)
(X
:
2
(X
)
:
1 1
(X
)] ( 11 12 22
21 )
:
:
22
12
1
(X
)] + (X
)
:
:
:
1
22
(X
)
:
2
= B1 + B2
fX
(x) =
: :
(2)q/2 (2)r/2 |
22
=
=
(2)q/2 |
(2)q/2 |
= fX
:
|x
1
11
11
|1/2
1
11
22
12
21
1 1
22
12
21
22
12
1 1
21
|1/2
(2)r/2 |
|1/2
exp 12 B1
1/2
exp
1
22
|1/2
(2)r/2 |
)
:
1
(X
)
:
:
exp 12 (B1 + B2 )
1
22
|1/2
exp 21 B2
(x
)fX (x
)
:
:
:
and X
are uncorrelated, then fX
If X
:
:
1
1
21 (X
:
|X2 =x
1
(x
) = fX
(x
)
:
:
:
1
Therefore, fX |x (x
) = fX (x
)fX (x
) imply X
and X
are independent.
:
:
:
:
:
:
The review of properties for partitioned matrices in problem 8 was done to give you the
tools to factor the density for a multivariate normal distribution as a product of a marginal
density and a conditional density. You may nd some of these martix properties to be useful
in future work.