Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Chapitre02_Solutions.pdf
1. _____________________________________________________________________________________________________
1
2.1. (a) Probability distribution function for Y
Outcome (number of heads) Y = 0 Y = 1 Y = 2
Probability 0.25 0.50 0.25
(b) Cumulative probability distribution function for Y
Outcome (number of
heads)
Y < 0 0 Y < 1 1 Y < 2 Y 2
Probability 0 0.25 0.75 1.0
(c) mY
= E(Y) = (0´0.25)+(1´0.50)+(2´0.25) =1.00
Using Key Concept 2.3: var(Y) = E(Y2
) -[E(Y)]2
,
and
E(Y2
) = (02
´0.25)+(12
´0.50)+(22
´0.25) =1.50
so that
var(Y) = E(Y2
)-[E(Y)]2
=1.50-(1.00)2
= 0.50.
7. _____________________________________________________________________________________________________
7
(d) Use the solution to part (b),
Unemployment rate for college graduates = 1 – E(Y|X=1) = 1−0.978 = 0.023.
Unemployment rate for non-college graduates = 1 – E(Y|X=0) = 1−0.957 = 0.043
(e) The probability that a randomly selected worker who is reported being
unemployed is a college graduate is
Pr(X =1|Y = 0) =
Pr(X =1,Y = 0)
Pr(Y = 0)
=
0.009
0.035
= 0.257.
The probability that this worker is a non-college graduate is
Pr(X = 0|Y = 0) =1- Pr(X = 1|Y = 0) =1-0.257 = 0.743.
(f) Educational achievement and employment status are not independent because
they do not satisfy that, for all values of x and y,
Pr(X = x|Y = y) = Pr(X = x).
For example, from part (e) Pr(X = 0|Y = 0) = 0.743, while from the table
Pr(X = 0) = 0.602.
8. _____________________________________________________________________________________________________
8
2.7. Using obvious notation, C = M + F; thus mC
= mM
+ mF
and
sC
2
= s M
2
+sF
2
+ 2cov(M, F). This implies
(a) mC
= 40+ 45= $85,000per year.
(b) corr(M, F) = cov( M, F )
s MsF
, so that cov(M, F) =s M
sF
corr(M, F). Thus
cov(M, F) =12´18´0.80 =172.80, where the units are squared thousands of
dollars per year.
(c) sC
2
= s M
2
+sF
2
+ 2cov(M, F), so that sC
2
=122
+182
+ 2´172.80 = 813.60, and
sC
= 813.60 = 28.524 thousand dollars per year.
(d) First you need to look up the current Euro/dollar exchange rate in the Wall Street
Journal, the Federal Reserve web page, or other financial data outlet. Suppose that
this exchange rate is e (say e = 0.85 Euros per Dollar or 1/e = 1.18 Dollars per
Euro); each 1 Eollar is therefore with e Euros. The mean is therefore e×C (in
units of thousands of euros per year), and the standard deviation is e×C (in units
of thousands of euros per year). The correlation is unit-free, and is unchanged.
14. _____________________________________________________________________________________________________
14
2.13. (a) E(Y2
) = Var(Y)+ mY
2
=1+0 =1; E(W2
) = Var(W)+ mW
2
=100+0 =100.
(b) Y and W are symmetric around 0, thus skewness is equal to 0; because their mean
is zero, this means that the third moment is zero.
(c) The kurtosis of the normal is 3, so 3=
E(Y - mY
)4
sY
4
; solving yields E(Y4
) = 3; a
similar calculation yields the results for W.
(d) First, condition on X = 0, so that S =W:
E(S|X = 0) = 0; E(S2
|X = 0) =100, E(S3
|X = 0) = 0, E(S4
|X = 0) = 3´1002
.
Similarly,
E(S|X =1) = 0; E(S2
|X =1) =1, E(S3
|X =1) = 0, E(S4
|X =1) = 3.
From the large of iterated expectations
E(S) = E(S|X = 0)´ Pr(X = 0)+ E(S|X =1)´ Pr(X =1) = 0
E(S2
) = E(S2
|X = 0)´ Pr(X = 0)+ E(S2
|X =1)´ Pr(X =1) =100´0.01+1´0.99 =1.99
E(S3
) = E(S3
|X = 0)´ Pr(X = 0)+ E(S3
|X =1)´ Pr(X =1) = 0
E(S4
) = E(S4
|X = 0)´ Pr(X = 0)+ E(S4
|X =1)´ Pr(X =1)
= 3´1002
´ 0.01+ 3´1´ 0.99 = 302.97
(e) mS
= E(S) = 0, thus E(S - mS
)3
= E(S3
) = 0from part (d). Thus skewness = 0.
Similarly, sS
2
= E(S - mS
)2
= E(S2
) =1.99, and E(S - mS
)4
= E(S4
) = 302.97.
Thus,kurtosis = 302.97 / (1.992
) = 76.5
15. _____________________________________________________________________________________________________
15
2.14. The central limit theorem suggests that when the sample size (n) is large, the
distribution of the sample average (Y ) is approximately N mY
,sY
2
æ
è
ç
ö
ø
÷ with sY
2
=
sY
2
n
.
Given mY
=100, sY
2
= 43.0,
(a) n =100, sY
2
=
sY
2
n
= 43
100
= 0.43, and
Pr(Y £101) = Pr
Y -100
0.43
£
101-100
0.43
æ
è
ç
ö
ø
÷ » F(1.525) = 0.9364.
(b) n =165, sY
2
=
sY
2
n
= 43
165
= 0.2606, and
Pr(Y > 98) =1- Pr(Y £ 98) =1- Pr
Y -100
0.2606
£
98-100
0.2606
æ
è
ç
ö
ø
÷
»1- F(-3.9178) = F(3.9178) =1.000 (rounded to four decimal places).
(c) n = 64, sY
2
=
sY
2
64
= 43
64
= 0.6719, and
Pr(101£ Y £103) = Pr
101-100
0.6719
£
Y -100
0.6719
£
103-100
0.6719
æ
è
ç
ö
ø
÷
» F(3.6599)- F(1.2200) = 0.9999 - 0.8888 = 0.1111.
16. _____________________________________________________________________________________________________
16
2.15. (a)
Pr(9.6 £ Y £10.4) = Pr
9.6 -10
4/n
£
Y -10
4/n
£
10.4 -10
4/n
æ
è
ç
ö
ø
÷
= Pr
9.6 -10
4/n
£ Z £
10.4 -10
4/n
æ
è
ç
ö
ø
÷
where Z ~ N(0, 1). Thus,
(i) n = 20; Pr
9.6 -10
4/n
£ Z £
10.4 -10
4/n
æ
è
ç
ö
ø
÷ = Pr(-0.89 £ Z £ 0.89) = 0.63
(ii) n = 100; Pr
9.6 -10
4/n
£ Z £
10.4 -10
4/n
æ
è
ç
ö
ø
÷ = Pr(-2.00 £ Z £ 2.00) = 0.954
(iii)n = 1000; Pr
9.6 -10
4/n
£ Z £
10.4 -10
4/n
æ
è
ç
ö
ø
÷ = Pr(-6.32 £ Z £ 6.32) =1.000
(b)
Pr(10 - c £ Y £10 + c) = Pr
-c
4/n
£
Y -10
4/n
£
c
4/n
æ
è
ç
ö
ø
÷
= Pr
-c
4/n
£ Z £
c
4/n
æ
è
ç
ö
ø
÷ .
As n get large
c
4 / n
gets large, and the probability converges to 1.
(c) This follows from (b) and the definition of convergence in probability given in
Key Concept 2.6.
18. _____________________________________________________________________________________________________
18
2.17. Y = 0.4 and sY
2
= 0.4´0.6 = 0.24
(a) (i) P(Y 0.43) = Pr
Y - 0.4
0.24/n
³
0.43- 0.4
0.24/n
æ
è
ç
ö
ø
÷ = Pr
Y - 0.4
0.24/n
³ 0.6124
æ
è
ç
ö
ø
÷ = 0.27
(ii) P(Y 0.37) = Pr
Y - 0.4
0.24/n
£
0.37 - 0.4
0.24/n
æ
è
ç
ö
ø
÷ = Pr
Y - 0.4
0.24/n
£ -1.22
æ
è
ç
ö
ø
÷ = 0.11
b) We know Pr(−1.96 Z 1.96) = 0.95, thus we want n to satisfy
0.41= 0.41-0.4
0.24/n
> -1.96 and 0.39-0.4
0.24/n
< -1.96. Solving these inequalities yields n
9220.
19. _____________________________________________________________________________________________________
19
2.18. Pr(Y = $0) = 0.95, Pr(Y = $20000) = 0.05.
(a) The mean of Y is
mY
= 0´ Pr(Y = $0)+ 20,000´ Pr(Y = $20000) = $1000.
The variance of Y is
sY
2
= E
2
Y - mY
æ
è
ç
ö
ø
÷
é
ë
ê
ê
ù
û
ú
ú
= (0 -1000)2
´ Pr Y = 0
( )+ (20000 -1000)2
´ Pr(Y = 20000)
= (-1000)2
´ 0.95+190002
´ 0.05 = 1.9´107
,
so the standard deviation of Y is sY
= (1.9´107
)
1
2
= $4359.
(b) (i) E(Y) = mY
= $1000, sY
2
=
sY
2
n
= 1.9´107
100
=1.9´105
.
(ii) Using the central limit theorem,
Pr(Y > 2000) = 1- Pr(Y £ 2000)
= 1- Pr
Y -1000
1.9´105
£
2,000 -1,000
1.9 ´105
æ
è
ç
ö
ø
÷
»1- F(2.2942) =1- 0.9891= 0.0109.
20. _____________________________________________________________________________________________________
20
2.19. (a)
Pr(Y = yj
) =
i=1
l
åPr(X = xi
,Y = yj
)
=
i=1
l
åPr(Y=yj
|X=xi
)Pr(X=xi
)
(b)
E(Y) =
j=1
k
å yj
Pr(Y = yj
) =
j=1
k
å yj
i=1
l
åPr(Y = yj
|X = xi
)Pr(X = xi
)
=
i=1
l
å j=1
k
å yj
Pr(Y = yj
|X = xi
)
æ
è
ç
ç
ç
ç
ö
ø
÷
÷
÷
÷
Pr(X=xi )
=
i=1
l
å E(Y|X=xi )Pr(X=xi ).
(c) When X and Y are independent,
Pr(X = xi
,Y = yj
) = Pr(X = xi
)Pr(Y = yj
),
so
s XY
= E[(X - mX
)(Y - mY
)]
=
i=1
l
å
j=1
k
å(xi
-mX
)(yj
-mY
)Pr(X=xi
,Y=yj
)
=
i=1
l
å
j=1
k
å(xi
-mX
)(yj
-mY
)Pr(X=xi
)Pr(Y=yj
)
= (xi
- mX
)Pr(X = xi
)
i=1
l
å
æ
è
ç
ö
ø
÷ (yj
- mY
)Pr(Y = yj
j=1
k
å
æ
è
ç
ö
ø
÷
= E(X - mX
)E(Y - mY
) = 0 ´ 0 = 0,
cor(X,Y) =
s XY
s X
sY
=
0
s X
sY
= 0.
21. _____________________________________________________________________________________________________
21
2.20. (a) Pr(Y = yi
) = Pr(Y = yi
|X = xj
, Z = zh
)Pr(
h=1
m
å X = xj
, Z = zh
)
j=1
l
å
(b)
E(Y) = yi
Pr(Y = yi
)Pr(Y = yi
)
i=1
k
å
= yi
i=1
k
å Pr(Y = yi
|X = xj
, Z = zh
)Pr(
h=1
m
å X = xj
, Z = zh
)
j=1
l
å
= yi
Pr(Y = yi
|X = xj
, Z = zh
)
i=1
k
å
é
ë
ê
ù
û
úPr(
h=1
m
å X = xj
, Z = zh
)
j=1
l
å
= E(Y|X = xj
, Z = zh
)Pr(
h=1
m
å X = xj
, Z = zh
)
j=1
l
å
where the first line in the definition of the mean, the second uses (a), the third is a
rearrangement, and the final line uses the definition of the conditional
expectation.
23. _____________________________________________________________________________________________________
23
2. 22. The mean and variance of R are given by
m = w´ 0.08+ (1- w) ´ 0.05
s 2
= w2
´ 0.072
+ (1- w)2
´ 0.042 + 2´ w´ (1- w)´[0.07 ´ 0.04 ´ 0.25]
where 0.07 ´0.04´0.25 = Cov(Rs
, Rb
) follows from the definition of the correlation
between Rs and Rb.
(a) m = 0.065;s = 0.044
(b) m = 0.0725;s = 0.056
(c) w = 1 maximizes m;s = 0.07 for this value of w.
(d) The derivative of 2
with respect to w is
ds 2
dw
= 2w´.072
- 2(1- w)´ 0.042
+ (2- 4w)´[0.07 ´ 0.04 ´ 0.25]
= 0.0102w- 0.0018
Solving for w yields w=18/102 = 0.18.(Notice that the second derivative is
positive, so that this is the global minimum.) With w = 0.18,sR
= .038.
24. _____________________________________________________________________________________________________
24
2. 23. X and Z are two independently distributed standard normal random variables, so
mX
= mZ
= 0,s X
2
= sZ
2
=1,s XZ
= 0.
(a) Because of the independence between X and Z, Pr(Z = z|X = x) = Pr(Z = z),
and E(Z|X) = E(Z) = 0. Thus
E(Y|X) = E(X2
+ Z|X) = E(X2
|X)+ E(Z|X) = X2
+0 = X2
.
(b) E(X2
) =s X
2
+ mX
2
=1, and mY
= E(X2
+ Z) = E(X2
)+ mZ
=1+0 =1.
(c) E(XY) = E(X3
+ ZX) = E(X3
)+ E(ZX). Using the fact that the odd moments of a
standard normal random variable are all zero, we have E(X3
) = 0. Using the
independence between X and Z, we have E(ZX) = mZ
mX
= 0. Thus
E(XY) = E(X3
)+ E(ZX) = 0.
(d)
cov(XY) = E[(X - mX
)(Y - mY
)] = E[(X - 0)(Y -1)]
= E(XY - X) = E(XY) - E(X)
= 0 - 0 = 0.
corr(X,Y) =
s XY
s X
sY
=
0
s X
sY
= 0.
25. _____________________________________________________________________________________________________
25
2.24. (a) E(Yi
2
) = s 2
+ m2
= s 2
and the result follows directly.
(b) (Yi/) is distributed i.i.d. N(0,1), W = (Yi
/s)2
i=1
n
å , and the result follows from the
definition of a cn
2
random variable.
(c) E(W) = E
Yi
2
s 2
i=1
n
å = E
Yi
2
s 2
i=1
n
å = n.
(d) Write
V =
Y1
åi=2
n
Yi
2
n-1
=
Y1
/s
åi=2
n
(Y /s )2
n-1
which follows from dividing the numerator and denominator by . Y1/ ~ N(0,1),
(Yi
/s )2
i=2
n
å ~ cn-1
2
, and Y1/ and (Yi
/s )2
i=2
n
å are independent. The result then
follows from the definition of the t distribution.
27. _____________________________________________________________________________________________________
27
2.26. (a) corr(Yi,Yj) =
cov(Yi
,Yj
)
sYi
sYj
=
cov(Yi
,Yj
)
sY
sY
=
cov(Yi
,Yj
)
sY
2
= r, where the first equality
uses the definition of correlation, the second uses the fact that Yi and Yj have the same
variance (and standard deviation), the third equality uses the definition of standard
deviation, and the fourth uses the correlation given in the problem. Solving for
cov(Yi, Yj) from the last equality gives the desired result.
(b) Y =
1
2
Y1
+
1
2
Y2
, so that E(Y ) =
1
2
E(Y)1
+
1
2
E(Y2
) = mY
var(Y ) =
1
4
var(Y1
) +
1
4
var(Y2
)+
2
4
cov(Y1
,Y2
) =
sY
2
2
+
rsY
2
2
(c) Y =
1
n
Yi
i=1
n
å , so that E(Y ) =
1
n
E(Yi
)
i=1
n
å =
1
n
mY
i=1
n
å = mY
var(Y ) = var
1
n
Yi
i=1
n
å
æ
è
ç
ö
ø
÷
=
1
n2
var(Yi
)
i=1
n
å +
2
n2
cov(Yi
,Yj
)
j=i+1
n
å
i=1
n-1
å
=
1
n2
sY
2
i=1
n
å +
2
n2
rsY
2
j=i+1
n
å
i=1
n-1
å
=
sY
2
n
+
n(n -1)
n2
rsY
2
=
sY
2
n
+ 1-
1
n
æ
è
ç
ö
ø
÷ rsY
2
where the fourth line uses for any
variable a.
(d) When n is large
sY
2
n
» 0 and
1
n
» 0, and the result follows from (c).
28. _____________________________________________________________________________________________________
28
2.27
(a) E(u) = E[E(u|X) ] = E[E(Y−Ŷ )|X] = E[ E(Y|X) – E(Y|X) ] = 0.
(b) E(uX) = E[E(uX|X) ] = E[XE(u)|X] = E[ X×0] = 0
(c) Using the hint: v = (Y -Ŷ ) – h(X) = u − h(X) , so that E(v2
) = E[u2
] + E[h(X)2
] –
2×E[u×h(X)]. Using an argument like that in (b), E[u×h(X)] = 0. Thus, E(v2
) =
E(u2
) + E[h(X)2
], and the result follows by recognizing that E[h(X)2
] ≥ 0 because
h(x)2
≥ 0 for any value of x.
31. _____________________________________________________________________________________________________
31
c. Scatter plot of E(AHE|Age)
(d) E(AHE) = $21.51
(e) – (g) Some moments:
E(AHE) = 21.51 (Dollars)
E(AHE2
) = 627.53 (Dollars squared)
E(Age) = 29.84 (Years)
E(Age2
) = 898.40 (Years squared)
E(AHE×Age) = 646.01 (Dollars × Years)
var(AHE) = E(AHE2
) – [E(AHE)]2
= 164.82 (Dollars squared)
Std.Dev (AHE) = 164.82 = 12.84 (Dollars)
var(Age) = E(Age2
) – [E(Age)]2
= 7.79 (Years squared)
Std.Dev(Age) = 7.79 = 2.79 (Years)
cov(AHE,Age) = E(AHE×Age) – [E(AHE)×E(Age)] = 4.06 (Dollars × Years)
cor(AHE,Age) = cov(AHE,Age)/[ Std.Dev (AHE)× Std.Dev(Age)] = 0.11
(h) The covariance and correlation are positive: when Age is higher than its average
value, AHE tends to be higher than its average value, and similarly if Age is lower than its
average value. In this sense Age and AHE are positively related, which is also evident in
the plot.
15
16
17
18
19
20
21
22
23
24
25
24 25 26 27 28 29 30 31 32 33 34 35
AHE
Age