Problem Set: Random Variables
Problem Set: Random Variables
Problem Set: Random Variables
SOLUTIONS
PROBLEM R.1
Solution:
a)!
x
3
6
9
Sum
P(x)
0.25
0.50
0.25
1.00
x
3
6
9
Sum
x-E[X]
-3
0
3
x*P(x)
0.75
3.00
2.25
6.00
Thus, E[X] = 6.
b)!
(x-E[X])2
9
0
9
P(x)
0.25
0.50
0.25
1.00
(x-E[X])2*P(x)
2.25
0
2.25
4.5
PROBLEM R.2
Solution: Let X denote the companys monthly demand.
a)! E[X] = 300(0.20) + 400(0.30) + 500(0.35) + 600(0.15) = 445.
b)! Cost: 445 @ $50 = $22250.
Revenue: 300 @ $70 = 21000.
Difference: Net loss of $1250.
c)!
x
300
400
500
600
Sum
x-E[X]
-145
-45
55
155
(x-E[X])2
21025
2025
3025
24025
P(x)
0.20
0.30
0.35
0.15
1.00
(x-E[X])2*P(x)
4205
607.5
1058.75
3603.75
9475
PROBLEM R.3
Solution:
a)! Note P(X=2) = P(Y=2) = 1/2 = 4/8. Thus,
X
Y
0
1
2
0
1
2
0
1
2
T
0
1
2
1
2
3
2
3
4
Probability
(1/8)(1/8) = 1/64
(1/8)(3/8) = 3/64
(1/8)(4/8) = 4/64
(3/8)(1/8) = 3/64
(3/8)(3/8) = 9/64
(3/8)(4/8) = 12/64
(4/8)(1/8) = 4/64
(4/8)(3/8) = 12/64
(4/8)(4/8) = 16/64
Probability
1/64
3/64 + 3/64 = 6/64 = 3/32
4/64 + 9/64+ 4/64 = 17/64
12/64 + 12/64 = 24/64 = 3/8
16/64 = 1/4
PROBLEM R.4
Solution: To determine the independence of X and Y, compute the marginal probabilities P(x) and P(y). Each is
given by P(0) = 1/2 and P(1) = 1/2.
Entering this in the joint probability table we have:
Y
X
0
1
P(y)
0
0.25
0.25
0.50
1
0.25
0.25
0.50
P(x)
0.50
0.50
1.00
Hence, for all cells in the joint probability distribution, each joint probability is equal to the product of the
corresponding marginal probabilities. This means that X and Y are independent as expected.
What does independence tell us? Essentially, that knowledge of the value of one random variable tells us nothing
about the value of the second random variable, or that the two variables vary separately.
PROBLEM R.5
Solution:
a)! The marginal distribution of X and the marginal distribution of Y are given by:
x
p(x)
0.5
0.5
p(y)
0.5
0.3
0.2
2
0.2
3
0.4
4
0.4
5
0.0
15
0.2
20
0.1
25
0.5
30
0.2
35
0.0
40
0.0
PROBLEM R.6
Solution:
a)!
X
(Tractors
Day 1)
0
0.1
0.1
0
0.2
0
1
2
TOTAL
Y (Tractors Day 2)
1
0.1
0.2
0.2
0.5
2
0
0.2
0.1
0.3
TOTAL
0.2
0.5
0.3
1.0
p(x)
0.2
0.5
0.3
p(y)
0.2
0.5
0.3
b)! No, because P(X and Y) P(X) * P(Y) for all X and Y.
For example, P(X=0 and Y=0) = 0.1, and this is not equal to P(X=0)*P(Y=0) = 0.2*0.2= 0.04.
c)! E(X) = 0.2(0) + 0.5(1) + 0.3(2) = 1.1
VAR(X) = 0.2(0-1.1)2 + 0.5(1-1.1) 2 + 0.3(2-1.1) 2
= 0.2(1.21) + 0.5(.01) + 0.3(.81)
= 0.242 + 0.005 + 0.243
= 0.49
d)! Let T = X+Y.
P[T=0] = P[X=0 and Y=0] = 0.1
P[T=1] = P[X=0 and Y=1] + P[X=1 and Y=0] = 0.1 + 0.1 = 0.2
P[T=2] = P[X=0 and Y=2] + P[X=1 and Y=1] + P[X=2 and Y=0] = 0 + 0.2 + 0 = 0.2
P[T=3] = P[X=1 and Y=2] + P[X=2 and Y=1] = 0.2 + 0.2 = 0.4
P[T=4] = P[X=2 and Y=2] = 0.1
t
p(t)
0
0.1
1
0.2
2
0.2
3
0.4
4
0.1
E(T)
= E[(35000-20000) * T (2000+4000) ]
= E[(35000-20000) * T] E[2000+4000]
= (35000-20000) * E(T) (2000+4000)
= 15000*(2.2) (6000) = 27000
= 150002 * 1.36 + 0
= 150002 * 1.36
= 306,000,000
StDev(2 day profit)
= sqrt(150002 *1.36)
= 15000*sqrt(1.36)
= 17492.856.
PROBLEM R.7
Solution:
a)! Let T be the total project completion time.
The project is completed when all four jobs are completed.
Since B and C cannot start until A is completed and D cannot start until B is completed, the project is
completed when both Jobs B and D are completed, i.e., the projected is completed when B or D are
completed, whichever is later.
Let A, B, C and D denote the duration time of Jobs A, B, C and D, respectively, in weeks.
Thus, T = max{A+B, A+C+D}
We have:
P(A=1) = 0.4
P(A=2) = 0.6
P(B=3) = 0.5
P(B=4) = 0.5
A=1
A=1
A=1
A=1
A=1
A=1
A=1
A=1
A=2
A=2
A=2
A=2
A=2
A=2
A=2
A=2
(A, B, C, D) Outcome
B=3 C=1 D=2
B=3 C=1 D=3
B=3 C=2 D=2
B=3 C=2 D=3
B=4 C=1 D=2
B=4 C=1 D=3
B=4 C=2 D=2
B=4 C=2 D=3
B=3 C=1 D=2
B=3 C=1 D=3
B=3 C=2 D=2
B=3 C=2 D=3
B=4 C=1 D=2
B=4 C=1 D=3
B=4 C=2 D=2
B=4 C=2 D=3
A+B
4
4
4
4
5
5
5
5
5
5
5
5
6
6
6
6
A+C+D
4
5
5
6
4
5
5
6
5
6
6
7
5
6
6
7
T
4
5
5
6
5
5
5
6
5
6
6
7
6
6
6
7
0.4
0.4
0.4
0.4
0.4
0.4
0.4
0.4
0.6
0.6
0.6
0.6
0.6
0.6
0.6
0.6
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Probability
0.5 * 0.2
0.5 *
0
0.5 * 0.4
0.5 * 0.4
0.5 * 0.2
0.5 *
0
0.5 * 0.4
0.5 * 0.4
0.5 * 0.2
0.5 *
0
0.5 * 0.4
0.5 * 0.4
0.5 * 0.2
0.5 *
0
0.5 * 0.4
0.5 * 0.4
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
0.04
0
0.08
0.08
0.04
0
0.08
0.08
0.06
0
0.12
0.12
0.06
0
0.12
0.12
4
0.04
5
0.26
6
0.46
7
0.24
b)! Let R be the firms net contribution for this project. Note that R depends on T (completion time) and C
(duration of Job C). The joint probability table for T and C can be computed:
AND
C=1
C=2
Total
T=4
0.04
0
0.04
T=5
0.10
0.16
0.26
T=6
0.06
0.40
0.46
T=7
0
0.24
0.24
Total
0.20
0.80
1.0
Recall that the firm receives $10,000 for completing the job if T <= 5, and $9,500 if T>5. The cost will be
$4000 in addition to $500*T (labor cost) and $500*C (machinery rental). The following shows the value
of R as a function of T and C:
R
C=1
C=2
T=4
10000
- 4000 - 4*500
- 1*500
=3500
10000
- 4000 - 4*500
- 2*500
= 3000
T=5
10000
- 4000 - 5*500
- 1*500
=3000
10000
- 4000 - 5*500
- 2*500
= 2500
T=6
9500
- 4000 - 6*500
- 1*500
= 2000
9500
- 4000 - 6*500
- 2*500
= 1500
T=7
9500
- 4000 - 7*500
- 1*500
= 1500
9500
- 4000 - 7*500
- 2*500
= 1000
1000
0.24
1500
0.40
2000
0.06
2500
0.16
3000
0.10
3500
0.04