Professional Documents
Culture Documents
Simulation - Part2 - Sectiong Session9
Simulation - Part2 - Sectiong Session9
Simulation Models
Decision Models and Optimization
Sumit Kunnumkal
Indian School of Business
1
© Kunnumkal
Please do not share or
distribute
Outline
Applications
Bidding for a lemon
Gambling: random walk
2
Bidding for a lemon
Suppose you are interested in buying a used car, and do
I have just the car for you! You will make me a single
take-it-or-leave-it offer, and there will be no re-
negotiation over the price of the car. Since I have used
and maintained the car for some time now, I know its
true value. You, however, do not know the true value of
the car, and you think it is normally distributed with a
mean of $500 and a standard deviation of $150. You will
make me an offer and I will accept it if it is higher than
the value of the car to me.
3
Adapted from Professor Deshmukh's (Kellogg) lecture notes
Bidding for a lemon
Suppose you are interested in buying a used car, and do
I have just the car for you! You will make me a single
take-it-or-leave-it offer, and there will be no re-
negotiation over the price of the car. Since I have used
and maintained the car for some time now, I know its
true value. You, however, do not know the true value of
the car, and you think it is normally distributed with a
mean of $500 and a standard deviation of $150. You will
make me an offer and I will accept it if it is higher than
the value of the car to me.
From your perspective, what is the expected value of the car?
Now fix the size of the offer you would like to make me, say
$400. What are the chances that I will accept it? If I do accept it,
what do you think is the true value of the car?
If you were to make an offer of $400, what is the expected value
of the car to you net of what you will pay me?
What offer should you make me? 4
6
Bidding for a lemon
Expected value of car given that the offer of $400 is accepted can
be obtained analytically but…
The distribution of T conditional on the offer of $400 being accepted
is NOT normal!
Evaluate expectations using simulation
@Risk implementation:
Generate a sample of the True Value and pick those values which are
smaller than 400. Discard the values greater than 400.
Y (output) = IF True Value < Bid THEN True Value ELSE “Failed
Bid”
9
Bidding for a lemon: Simulation
output
Expected value of the car given bid of $400 accepted
10
Bidding for a lemon: Simulation
output
Expected surplus for a bid of $400. Sample mean = -23.73,
Sample std. dev. = 57.39, number of iterations = 1000
Surplus
-500.0 0.0
95.0% 5.0%
80%
70%
60%
50%
40%
30%
20%
10%
0%
11
QC Bidding for a lemon: 95% CI
(2min)
Expected surplus for a bid of $400. Sample mean = -23.73,
Sample std. dev. = 57.39, number of iterations = 1000
Surplus
-500.0 0.0
What is a 95% CI for the
95.0% 5.0% expected surplus ?
80%
20%
10%
0%
12
Bidding for a lemon
Fix the size of the offer at $400 (Simulation approach)
13
Bidding for a lemon
Suppose that your prior distribution on the value of the car is a
uniform distribution instead
In particular, suppose that T~U[0,1000]
Now, if your offer of $400 has been accepted, then the condtional
distribution of T is again uniform on [0,400]
Can evaluate expectations analytically
f(t)
1/400
1/1000
f(t)
14
E(S) = E(T – 400 | T< 400) * Prob(T< 400) + 0* Prob(T > 400)= (200 – 400)*0.4 = -$80
1/400
f(t)
0 t 400 1000 15
Bidding for a lemon
Fix the size of the offer at $400 (Simulation approach, T~U[0,1000])
A company offers the gambler insurance that would limit the losses at
the end of a day to $10. How much should the gambler be willing to
pay for it?
17
Adapted from Professor Deshmukh's (Kellogg) lecture notes
Gambling: random walk
The gambler plays 100 games in a day. Without the
insurance policy:
How many games will he win on average?
How much can he expect to have (in net) at the end of the day?
What about the standard deviation of the net winnings at the end of
the day?
What are the chances that he will not make any money at the end
of the day? What are the chances that he will lose more than ten
dollars at the end of the day?
Suppose he purchases the insurance policy. What would his net
winnings be at the end of the end? How much should he be willing
to pay for the insurance policy?
18
Adapted from Professor Deshmukh's (Kellogg) lecture notes
Gambling: random walk
Optimal strategy is to either bet on red or black.
19
Gambling: random walk
Variance of net winnings at the end of the day
20
Gambling: random walk
Variance of net winnings at the end of the day
Xi: random variable which denotes the outcome on the ith play
V(W) =
21
Gambling: random walk
What are the chances that he will not make any money
at the end of the day?
Probability of not making any money at the end of the day =
Prob(W <= 0) =
22
QC: Gambling – Prob (W = 0)
(1min)
Which Excel function gives the probability that the net
winnings at the end of the day is 0 (Prob(W=0))?
(a) NORM.DIST(50, -5.3, 10, 0)
(b) VEGAS.DIST(0, -5.3, 0)
(c) POISSON.DIST(50, 47.4, 0)
(d) BINOM.DIST(50, 100, 18/38, 0)
(e) RANDBETWEEN(-100, 100)
23