Prelim 2 – Module 7: Simulation Flashcards
What are possible benefits of simulation for a business? (5)
- Try out scenarios that would be expensive/impossible to test in real life
- Account for uncertainty/randomness/risk
- Develop a deeper understanding of the process because you:
- have to model it quantitatively
- can visualize it in a new way - Estimate the performance of lots of different configurations or policies
- Find the optimal solution for some problem
What is a Monte Carlo experiment?
Use random numbers and operational rules to estimate performance
Steps to a Monte Carlo Experiment (4)
- (Optional) If testing a decision, choose the value of some decision variable
Ex. when should we schedule our first reservation that needs a table to turn? - Generate random number inputs
Ex. what is the dining duration for each party? - Insert the inputs into some system and apply operational logic
Ex. Determine when the 1st table turns, 2nd table turns, 3rd table turns, etc. - Aggregate results
Ex. What percentage of parties have to wait for a table? How long do they wait? How many wait longer than 5 minutes?
How do we get random numbers?
In 1956, the RAND corporation published the book: A Million Random Digits with 100,000 Normal Deviates.
In Excel
Rand ()
For a value on the interval between 0 and 1
RandBetween(a,b)
For any integer between a and b (including a and b as possibilities)
What are the three strategies for creating random numbers?
- Expert opinion
- Resample existing data
- Fit to distribution
Expert Opinion
Useful if no data exists about the random variable
Use very simple distributions (e.g., uniform)
Ex. An expert guesses that Establishment dining times are between 45 minutes and 180 minutes. We simulate dining duration as RandBetween(45,180).
Resample Existing Data
Useful if a large amount of data exists about the random variable
Ex. Establishment has duration data from 1,000 recent visits. To build our simulation, each simulated customer’s dining duration is picked at random from those 1,000 data points.
Fit to distribution
Useful if we have limited data
Simpler way to describe a random number distribution
Ex. We calculate that dining duration has a mean of 100.8 minutes and a standard deviation of 26.2 minutes. We simulate dining duration for each customer as Norm.Inv(Rand(),100.8,26.2).
Uniform distribution
Any number (including non-integers) between a and b
= a + Rand()*(b-a)
Normal distribution
A random variable from a normal distribution with mean 𝜇 and standard deviation 𝜎
= Norm.Inv(Rand(),𝜇,𝜎)
Exponential distribution
A random variable from an exponential distribution with rate 𝜆
= -LN(Rand())/𝜆
Binomial distribution
A random variable for the number of “hits” in n chances, each with a probability of success p
= Binom.Inv(n,p,Rand())
Probability mass function
Probability that a discrete random variable takes some value