Professional Documents
Culture Documents
ss#4 Sol
ss#4 Sol
ss#4 Sol
1. Bidding Simulation
There are two sources of uncertainty in this problem: the bid of Incredible Edibles and the bid of Hot
Potato. Let I be a random variable representing the bid of Incredible Edibles. Similarly, let H be a
random variable representing the bid of Hot Potato. The problem dictates that I is unformly distributed
between $11,000 and $13,000 (10% to 30% above the $10,000 cost), and H is unformly distributed
between $11,500 and $12,500 (15% to 25% above the $10,000 cost). Equivalently, we could express
this using the following compact notation:
I ~ U[$11,000 , $13,000] and H ~ U[$11,500, $12,500].
Tasty Delight only wins the contract if its bid is the lowest of the three companies. Let T represent the
bidding policy, i.e., the number of dollars the company decides to bid, and let P be Tasty Delights
profit. Then we can write:
if T < min{I,H} then P = T - $10,000,
otherwise P = $0.
Page 1
Page 2
revenue
(b) Set up a simulation model to evaluate the revenue of this policy. That is, specify the random variables to be
sampled, their distribution types, their parameters, and correlations. Specify also formula(e) that should be
used to calculate the revenue.
DL
Decision Variables
QR
QL
(Remark: Since the actual demand values should be integral and non-negative, we could easily
incorporate these restrictions into our model.
For example, define the actual demand for regular rooms as:
DR = max{round(DR), 0}.
However, the results are relatively insensitive to these modifications.)
Decision Models & Optimization
Page 3
percent of outcomes
14%
12%
10%
8%
6%
4%
2%
>2
7,
00
00
-2
25
,5
0
-2
5,
7,
50
00
,0
0
24
22
,5
0
-2
2,
4,
50
0
00
1,
,0
0
,5
0
21
19
-2
0
-2
0
-1
95
00
00
80
-1
,0
0
,5
0
00
16
-1
-1
0
5,
,1
,5
0
18
5,
6,
50
00
50
3,
00
13
,0
0
-1
2,
0
12
,5
0
50
10
9,
-1
0,
50
,0
-1
-9
0
7,
50
<=
7
,5
00
00
0%
$ Revenue
(d) Based on the results of the 500 trials, what is your estimate of the probability that revenue will exceed
$27,000?
From the frequency histogram, we estimate that the probability is about 11%.
Decision Models & Optimization
Page 4
Confidence interval:
[sample average 1.645 mean standard error]
= $21,390.24 1.645 $202.76
[$21,056 , $21,724]
(f) Suppose that RollerDice wants a 90% confidence interval for the expected revenue with a width of $30. How
many simulation trials would be needed to give a 90% confidence interval of the form [a, b], where b - a = 30?
Briefly explain your answer.
Confidence interval = 30
Therefore, the width of [sample average 1.645 (4,533.91/n1/2)] must be 30.
Therefore, 1.645 (4,533.91/n1/2) = 15.
Solving for n,
n 247,000.
(g) RollerDice would like to know how likely it is to lose one or more customers of either type (regular or luxury)
because the desired room is not available. Indicate how to modify the model of part (b) to estimate this
probability. Re-run the simulation with the same parameters and report this probability. Give a 90%
confidence interval for this probability. Show all intermediate calculations.
Define:
Page 5
Note that our estimate of the probability that customers will be turned away, 0.49, is an estimate of
a mean. Furthermore, we know that the true mean is roughly normally distributed with a mean of
0.49 (our estimate of the mean) and a standard deviation of 0.0224 (the standard error of the
estimate of the mean). Using a z-value of 1.645 (see part (e) of this question) we can calculate the
90% confidence interval for the true probability.
Confidence interval:
[sample average 1.645 mean standard error]
= 0.4900 1.645 0.0224
[0.4532, 0.5269]
(h) Because of the design of the floors, the number of regular rooms must be a multiple of ten (and the number of
luxury rooms a multiple of five). For example, the hotel could be built with 100 regular rooms and 50 luxury
rooms, or 110 regular rooms and 45 luxury rooms, etc. Suppose that RollerDice wants to find the number of
regular and luxury rooms to build to maximize the expected revenue from the 60,000 square feet available.
List
(1) all of the possible room allocations RollerDice might consider;
(2) all of the reasonable room allocations that need to be tested.
Be specific in your reasons for excluding the room allocations not listed in (2).
Recall that the hotel has 60,000 square feet for rooms, that a regular room requires 300 square
feet, and that a luxury room requires 600 square feet.
(1) The maximum number of regular rooms is 200 (=60,000/300). Reducing regular rooms in
increments of 10 and increasing luxury rooms in increments of 5, we enumerate all 21 feasible
ways to build the hotel:
Numbers of Rooms
Regular
200
190
180
170
...
30
20
10
Luxury
10
15
...
85
90
95
100
Page 6
Regular
140
130
120
110
Luxury
30
35
40
45
Page 7
a) Assume that the casino doesn't mind large, small, or odd-sized bets and doesn't notice the error in
the wheel until 400 spins are over. Model the payoff at the end of the day at the Wheel for Abbott
and for Costello. Assume they each start with $100.
Let Bi, i = 1, ..., 400 be 400 random variables that represent the outcomes of the 400 bets of one
day. The Bis are i.i.d., with the following distribution:
b1 = B1
A1 = A0 * (1 + 0.03 * b1)
C1 = C0 * (1 + 0.20 * b1)
round 2)
b2 = B2
A2 = A1 * (1 + 0.03 * b2)
C2 = C1 * (1 + 0.20 * b2)
round 400)
b400 = B400
A400 = A399 * (1 + 0.03 * b400)
C400 = C399 * (1 + 0.20 * b400)
b) Using the results from the 500-trial simulation, construct a 90% confidence interval for the expected
final wealth under each strategy.
The 90% confidence interval for the mean can be calculated as X 1645
.
/ n , where X , , and
n represent the mean, standard deviation, and sample size of the simulation results. Then from the
statistical results provided with the question we can calculate:
Abbotts
Wealth
$ 170.92
$ 155.46
Costellos
Wealth
$730.58
$ 83.34
The question of whether to pick Abbott's or Costello's betting strategy depends, in the short run,
primarily on how risk-averse you are. Choosing Abbott's conservative strategy produces smaller
gains, but does so more consistently and with much less variance. Costello's bold strategy
occasionally produces incredibly large gains, but most often results in losing almost all his money.
In fact, the frequency table shows that Costello's final wealth is under $18.69 80% of the time.
Page 8
Page 9
P0,2-year = $100/1.082
P0,5-year = $100/1.085
P0,10-year = $100/1.0810
P0,20-year = $100/1.0820
P0,30-year = $100/1.0830
P1,2-year = $100/(1+y)1
P1,5-year = $100/(1+y)4
P1,10-year = $100/(1+y)9
P1,20-year = $100/(1+y)19
P1,30-year = $100/(1+y)29
Step 3: 2-year return = ((P1,2-year - P0,2-year)/ P0,2-year) * 100%
5-year return = ((P1,5-year - P0,5-year)/ P0,5-year) * 100%
10-year return = ((P1,10-year- P0,10-year)/ P0,10-year) * 100%
20-year return = ((P1,20-year - P0,20-year)/ P0,20-year) * 100%
30-year return = ((P1,30-year- P0,30-year)/ P0,30-year) * 100%
b) Comment on the following statement: "The expected yield of the 30-year bond one year from today
is 8%. At that yield, its price would be $10.73. The return for the year would be 8% =
(10.73-9.94)/9.94. Hence, the average return for the bond should be 8% as wella simulation isn't
really necessary."
This statement is false. As you see from the simulation, the 95% confidence intervals for the return
on the 30-year bond do not include the value 8.0%. This is a strong indication that the expected
returns are indeed greater than 8%. Note that, using simulation, we can derive some strong
conclusions about the relationship between maturity and return, even if we know nothing about
formal bond pricing theory.
Page 10
a) Set up a spreadsheet to simulate the two suggested investment plans over the 72-month period.
Plot the value of each strategy over time for one simulation trial. What was the total value of each
strategy after six years? Did either of the strategies reach the target?
Let Vt denote the value of the S&P 500 and Wt denote the value of the T-bill fund at the end of
month t. Denote the 261 historical returns by rt and st for the S&P 500 and T-bills, respectively.
Suppose that j is a random number between 1 and 261. Let C denote the total monthly contribution.
(Here, c = 200 the $200 per month that your neighbor has budgeted to invest.) Finally, let a
denote the fraction invested in stocks and 1-a the fraction invested in T-bills. These equations
describe the dollar values of Vt and Wt :
Vt = Vt - 1( 1 + rj) + a C
Wt = Wt - 1(1 + sj) + (1 - a) C
The Vt equation says that the account value of the S&P 500 fund account is given by the value in
the previous month (Vt - 1) times the random S&P return (1 + rj) plus the contribution of the fraction of
the $200 invested in stocks (aC). The S&P500 fund starts with V0 = aC at the end of month 0 (i.e.,
at the beginning of the problem.) The T-bill fund starts with W0 =(1 - a)C at the same time. The total
value of both funds at the end of the six years (72 months) is V72 + W72.
A partial view of the spreadsheet COLLEGECB.XLS is given in the figure below. A random month-j
from 1 to 261 is given as an ASSUMPTION in cell G14. The value of V1 is determined in cell H14
with the formula:
= H13*(1+VLOOKUP($G14,$A$9:$D$269,3))+H$13
= V0 * ( 1 + r1)
+
aC
The VLOOKUP function is used to find the historical return rj. The formula in cell H14 is copied to
the remainder of column H. (This assumes that Scott makes a final contribution at the end of month
72. If not, the last formula in cell H85 can be changed to remove the term H$13).
A similar formula is used to determine the value W1. In cell I14 the formula for W1 is
=I13*(1+VLOOKUP($G14,$A$9:$D$269,4))+I$13
= W0 * ( 1 + s1)
+ (1 - a) C
The same random month (from cell G11) is used to pick the S&P return and T-bill return.
Columns J and K compute the results for the second (20%:80%) allocation strategy. The total
ending values are recorded in cells H7 and J7. For our first trial, both strategies reached the
$17,500 target: strategy 1 (20% stock) finished with $19,045 while strategy 2 (80% stock) ended
with $21,595. A graph of the fund values over time is given in the graph below.
Page 11
Simulation parameters:
Monthly contribution
200
Fraction in S&P 500
0.2
Fraction in T-bills
0.8
Allocation 1 (forecast)
Total ending value:
17893
Month
0
1
2
3
4
5
6
7
8
9
Assumption
Random
month
187
246
121
115
51
13
134
70
147
200
0.8
0.2
Allocation 2 (forecast)
17183
S&P 500
T-bill
S&P 500
T-bill
Fund
40
80.6
128.5
171.0
218.0
258.4
313.5
360.0
388.2
425.8
Fund
160
320.9
483.1
647.7
812.9
977.6
1141.8
1314.0
1480.9
1655.4
Fund
160
322.5
514.0
683.9
871.9
1033.5
1253.9
1439.9
1552.7
1703.4
Fund
40
80.2
120.8
161.9
203.2
244.4
285.4
328.5
370.2
413.9
25000
20000
15000
10000
5000
Month
20% Stock
Page 12
80% Stock
0.2
0.8
Allocation 2
0.8
0.2
200
18894
18827
--1012
1023302
0.37
2.88
0.05
16809
200
20598
20232
--4061
16494032
0.41
2.91
0.20
11987
21819
5010
32186
20199
71.53
287.18
Crystal Ball generates histograms of each strategy for free. For clarity, we combined this
information by creating a customized histograms using the extracted forecast data. The customized
histogram is shown on the next page. Here it is easy to see that Strategy 1 peaks earlier and is
less spread out. The riskier strategy using 80% stock peaks later, with a wider dispersion.
Scott Jansen is most interested in hitting his target number of $17,500. The likelihood of reaching
the target under each strategy can easily be computed from the extracted data using an IF
statement. For example, in the worksheet Fund Value 500 trials (within spreadsheet
collegeCB.xls) we use the expression =IF(G11>17500,1,0) where G11 contains the final value for
trial 1 using strategy 1. This records a 1 if the final value exceeds the target, and 0 otherwise. The
probability of reaching the target can be estimated by averaging these values over all 500 trials.
Using this approach, the probability that the college funds value after six years exceeds the target
level of $17,500 under strategy 1 (80% bonds, 20% stock) is approximately 92.5%. Under strategy
2, this probability is roughly 75%. The 90% confidence intervals are 92.5% +/- 3.1% and 75.0% +/Decision Models & Optimization
Page 13
15
17
19
21
23
25
27
20% Stock
29
80% Stock
c) Suppose that your neighbor needs $19,500 to pay for the first year's tuition, rather than $17,500.
Based on the same simulation results, which of the two strategies would you recommend now?
Why?
Another way that the difference in the strategies can be viewed is with a plot of cumulative
frequencies, as shown in the figure below. For a given target value, one strategy is preferred to
another if the probability for exceeding the target is greater for the preferred strategy. The vertical
axis gives the probability of the fund value not exceeding the target. For a given target value, the
strategy with the lower cumulative frequency is preferred. The lines corresponding to the two
strategies cross at around $18,300. For targets less than $18,300, the conservative 80% bond
portfolio is preferred; for higher targets, the more risky 80% stock portfolio is preferred. Thus, for the
new target of $19,500, the stock portfolio is preferred.
With the higher target, our simulation indicated that strategy 1 reaches the target only 23% (+/5.1%). Strategy 2 reaches the target 51% (+- 5.7%). For the higher target, strategy 2 appears to be
better.
Page 14
200
150
100
50
0
13
15
17
19
21
23
25
27
29
80% Stock
d) What other real-world factors might be important to consider in designing the simulation and making
a recommendation?
Two important factors not explicitly modeled are inflation and taxes. If inflation data were available,
the simulation could have been redesigned to reflect real returns instead of nominal returns. If taxes
become due in every year, for example, this greatly reduces the compounding of the initial
investment over long time periods.
Page 15