Professional Documents
Culture Documents
Tutorial: MSBA7003 Quantitative Analysis Methods
Tutorial: MSBA7003 Quantitative Analysis Methods
Tutorial 02
Haobo Yu
2021 – 2022
1
2
Agenda
• Solution of Assignment 01
• Dynamic Programming
• Determining Reject Allowances
• Winning in Las Vegas
Question 01
Question 02
Question 03
• Question 03:
• The useful information is summarized below.
Do
0 0 0
nothing
Question 03
• When the consulting company is not hired
Payoff
Strong Market (0.6)
85
EMV_X = 13
Weak Market (0.4)
-95
EMV_0 = 0
0
Without survey: EMV= 13
7
Question 03
85
Y
3 Weak Market (0)
-14
Do nothing 0
1 -95 Strong Market (0) 85
4 Weak Market (1) –95
-14 Strong Market (0)
Product 15
5 Weak Market (1)
0
Y –14
Do nothing
0
Question 03
Updated belief
0.6842 0.3158
under Fav
Updated belief
0.4884 0.5116
under Unfav
Prior belief 0.6 0.4
9
Question 03
28.156
Product 15
EMV = Y
3 Weak Market (0.3158)
-14
28.156*0.57+0.1636*0.43 Do nothing 0
=16.12
1 -7.088 Strong Market (0.4884) 85
4 Weak Market (0.5116) –95
0.1636 Strong Market (0.4884)
0.1636
Product 15
Y
5 Weak Market (0.5116)
–14
Do nothing
0
• The expect value of the consulting firm’s report is about $3.12 million.
10
Question 04
• Question 04
• There are three possibilities for the smart phone screen 𝑄 : high quality 𝐻 ,
medium quality 𝑀 , and low quality 𝐿 .
• Three tests: The first one did not break; the second one broke; the third one
broke.
• After the first test
The first one did High Medium Low Marginal
not break
Question 04
• After the second test
The second one High Medium Low Marginal
broke
Joint Probability 0.3 ∗ 7/15 0.5/3 0.7/5 67/150
Question 04
63 25 147
0.3 ∗ + 0.5 ∗ + 0.7 ∗ = 0.5501
335 67 335
Question 04
• After the fourth test
The fourth one High Medium Low Marginal
broke
Joint Probability 0.3 ∗ 63/335 0.5 ∗ 25/67 0.7 ∗ 147/335 1843/3350
• Using $100 as the unit of money, the contribution to cost from stage
𝑛 is [𝐾 𝑥𝑛 + 𝑥𝑛 ] regardless of the next state, where 𝐾 𝑥𝑛 is a
function of 𝑥𝑛 such that
0, if 𝑥𝑛 = 0
• 𝐾 𝑥𝑛 = ቊ
3, if 𝑥𝑛 > 0.
18
No Acceptable 0.5 𝑥𝑛
𝐽(𝑛 + 1,1)
.
.
. Acceptable 1 − 0.5 𝑥𝑛 𝐽 𝑛 + 1,0 = 0
𝑥𝑛 = 2
𝒏, 𝟏
𝐾 𝑥𝑛 + 𝑥𝑛 = 5 No Acceptable 0.5 𝑥𝑛
𝐽(𝑛 + 1,1)
𝐽(𝑛 + 1,1)
𝑄 𝑛, 1, 𝑥𝑛 = 𝐾 𝑥𝑛 + 𝑥𝑛 + 0.5 𝑥𝑛 𝐽 𝑛 + 1,1
19
• Stage 3:
1
𝑄 3,1, 𝑥3 = 𝐾 𝑥3 + 𝑥3 + ( )𝑥3 16
2
𝑠3 𝐽 3, 𝑠3 𝑥3∗
𝑥3 = 0 𝑥3 = 1 𝑥3 = 2 𝑥3 = 3 𝑥3 = 4 𝑥3 = 5
0 0 0 0
1 16 12 9 8 8 8.5 8 3 or 4
20
• Stage 2:
𝑥2
1
𝑄 2,1, 𝑥2 = 𝐾 𝑥2 + 𝑥2 + 𝐽(3,1)
2
𝑠2 𝐽 2, 𝑠2 𝑥2∗
𝑥2 = 0 𝑥2 = 1 𝑥2 = 2 𝑥2 = 3 𝑥2 = 4
0 0 0 0
1 8 8 7 7 7.5 7 2 or 3
21
• Stage 1:
𝑥1
1
𝑄 1,1, 𝑥1 = 𝐾 𝑥1 + 𝑥1 + 𝐽(2,1)
2
𝑠1 𝐽 1, 𝑠1 𝑥1∗
𝑥1 = 0 𝑥1 = 1 𝑥1 = 2 𝑥1 = 3 𝑥1 = 4
1 3 7 7 3
1 7 7 6 6 7 6 2
2 4 8 16 4
Loss (1/3)
𝐽(𝑛 + 1, 𝑠𝑛 − 1)
𝐽(𝑛 + 1, 𝑠𝑛 )
1 2
𝑄 𝑛, 𝑠𝑛 , 𝑥𝑛 = 𝐽 𝑛 + 1, 𝑠𝑛 − 𝑥𝑛 + 𝐽 𝑛 + 1, 𝑠𝑛 + 𝑥𝑛
3 3
25
• Stage 3:
𝑠3 𝐽(3, 𝑠3 ) 𝑥3∗
0 0 -
1 0 -
2 0 -
≥5 1 0 (or ≤ 𝑠3 − 5)
26
• Stage 2:
1 2
𝑄 2, 𝑠2 , 𝑥2 = 𝐽 3, 𝑠2 − 𝑥2 + 𝐽 3, 𝑠2 + 𝑥2
𝑠2 3 3 𝐽 2, 𝑠2 𝑥2∗
𝑥2 = 0 𝑥2 = 1 𝑥2 = 2 𝑥2 = 3 𝑥2 = 4
0 0 0 -
1 0 0 0 -
≥5 1 0 (or ≤ 𝑠2 − 5)
27
• Stage 1:
1 2
𝑄 1, 𝑠1, 𝑥1 = 𝐽 2, 𝑠1 − 𝑥1 + 𝐽 2, 𝑠1 + 𝑥1
𝑠1 3 3 𝐽 1, 𝑠1 𝑥1∗
𝑥1 = 0 𝑥1 = 1 𝑥1 = 2 𝑥1 = 3
3 2/3 20/27 2/3 2/3 20/27 1
Python Code of
Carpark Revenue Management
• Please refer to CarparkMCTS.py.