Assignment 2solution
Assignment 2solution
NPTEL
(NPTEL) ATSA 1 / 13
Mark Distribution
Question Marks
1 1
2 1
3 2
4 2
5 2
6 2
7 2
8 2
9 3
10 3
Total 20
(NPTEL) ATSA 2 / 13
Question 1
Answer: d
Solution: The following quantities can be calculated from fXY (x, y):
Z
fX (x) = fXY (x, y)dx
Z
fY (y) = fXY (x, y)dy
fXY (x, y)
fY |X=x (y) =
fX (x)
(NPTEL) ATSA 3 / 13
Question 2
Answer: b, c
Solution:
Z
fX (x) = fXY (x, y)dx
Z
= 2x10−6 e−0.001x−0.002y dx
= 0.001e−0.001x
Z
fY (y) = 2x10−6 e−0.001x−0.002y dy
= 0.002e−0.002
Answer: c
Solution:
a The covariance matrix is always symmetric and positive
semi-definite.
b ρXY = 0 implies that X and Y do not have a linear relationship
c |ρXY | ≤ 1 is always true
d E[XY ] = E[X]E[Y ] if X and Y are not correlated. They may or
may not be independent RVs.
(NPTEL) ATSA 5 / 13
Question 4
Answer: 1.26
Solution: For the discrete random variables X and Y with the joint
distribution shown in the figure:
(NPTEL) ATSA 6 / 13
Question 5
Answer: a, b, c, d
(NPTEL) ATSA 7 / 13
Question 6-8
X Y Z
-24.25 122.33 -215.33
-10.35 59.33 -250.33
-3.85 1.33 -8.33
17.15 -79.67 134.67
7.15 -57.67 290.67
14.15 -45.67 48.67
(NPTEL) ATSA 8 / 13
Question 6
Answer: 23516
sum(Σ̂) = 23515.775 ∼
= 23516 (Rounded to the closest integer)
(NPTEL) ATSA 9 / 13
Question 7
Answer: c
(NPTEL) ATSA 10 / 13
Question 8
Answer: c
a?1 = −3.638088
a?2 = −0.256234
ρ2XY.Z = a?1 ∗ a?2
= 0.932201
Where a?1 and a?2 are optimal (in MSE sense) estimates of a1 and a2
respectively.
(NPTEL) ATSA 11 / 13
Question 9
Answer:
a ρXY = 0.9996
b ρY Z = 0.9752
Solution:
load("Week2.RData")
corYZ = cov(Y,Z)/sqrt(var(Y)*var(Z))
corYX = cov(Y,X)/sqrt(var(Y)*var(X))
(NPTEL) ATSA 12 / 13
Question 10
Answer:
a ρY X.Z = 0.9918
b ρY Z.X = -0.0155
Solution: load("Week2.RData")
sx2 = var(X)
sy2 = var(Y)
sz2 = var(Z)
sxy = cov(X,Y)
sxz = cov(X,Z)
syz = cov(Y,Z)
sigma = matrix(c(sx2,sxy,sxz,sxy,sy2,syz,sxz,syz,sz2),3,3)
sigma inv = qr.solve(sigma)
par corr yx.z =
-sigma inv[1,2]/sqrt(sigma inv[1,1]*sigma inv[2,2])
par corr yz.x =
-sigma inv[2,3]/sqrt(sigma inv[3,3]*sigma inv[2,2])
(NPTEL) ATSA 13 / 13