Prelim 2 – Module 7: Simulation Flashcards

1
Q

What are possible benefits of simulation for a business? (5)

A
  1. Try out scenarios that would be expensive/impossible to test in real life
  2. Account for uncertainty/randomness/risk
  3. Develop a deeper understanding of the process because you:
    - have to model it quantitatively
    - can visualize it in a new way
  4. Estimate the performance of lots of different configurations or policies
  5. Find the optimal solution for some problem
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a Monte Carlo experiment?

A

Use random numbers and operational rules to estimate performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Steps to a Monte Carlo Experiment (4)

A
  1. (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?
  2. Generate random number inputs
    Ex. what is the dining duration for each party?
  3. Insert the inputs into some system and apply operational logic
    Ex. Determine when the 1st table turns, 2nd table turns, 3rd table turns, etc.
  4. 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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do we get random numbers?

A

In 1956, the RAND corporation published the book: A Million Random Digits with 100,000 Normal Deviates.

In Excel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Rand ()

A

For a value on the interval between 0 and 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

RandBetween(a,b)

A

For any integer between a and b (including a and b as possibilities)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the three strategies for creating random numbers?

A
  1. Expert opinion
  2. Resample existing data
  3. Fit to distribution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Expert Opinion

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Resample Existing Data

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Fit to distribution

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Uniform distribution

A

Any number (including non-integers) between a and b
= a + Rand()*(b-a)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Normal distribution

A

A random variable from a normal distribution with mean 𝜇 and standard deviation 𝜎
= Norm.Inv(Rand(),𝜇,𝜎)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Exponential distribution

A

A random variable from an exponential distribution with rate 𝜆
= -LN(Rand())/𝜆

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Binomial distribution

A

A random variable for the number of “hits” in n chances, each with a probability of success p
= Binom.Inv(n,p,Rand())

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Probability mass function

A

Probability that a discrete random variable takes some value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Probability density function

A

Relative likelihood of some instantaneous value (continuous)

17
Q

Cumulative distribution function (CDF)

A

Probability that a random variable is less than or equal to some value

18
Q

We can use RAND() with the CDF to ___

A

Generate other random numbers

Connect [0,1] interval of RAND() to [0%,100%] CDF interval for our distribution
-on graph, draw arrow from percentage to graph from left to right

19
Q

CDF interval in Excel steps

A
  1. Create a table
    - value
    - probability
    - CDF interval (max and min)
  2. create a table with two columns
    - Column 1: Min of CDF interval for the value
    - Column 3: Demand value
    - Column 2 (the max of the CDF interval) is not necessary but helpful for seeing the interval

VLOOKUP(RAND(),my_table,3,TRUE)

20
Q

How to implement a Monte Carlo simulation in Excel

A
  1. Set up your business model
    - Inputs
    - Outputs
    - Logic
    - Random Variables
  2. Set up a data table
    - Create a column with numbers 1,2,3,…maximum number of times you want to regenerate random numbers
    - Each of these rows is called a replication.
    - For “Column Input Cell” when setting up your Data Table, either select an empty cell or set up a special cell to display the replication number
  3. Collect results
21
Q

Excel functions and features to know for operational logic

A

Arithmetic (multiplication, division, addition, subtraction)
IF, MAX, MIN
COUNT and COUNTIF
SUM and SUMIF

22
Q

Excel functions and features to know for outputs

A

AVERAGE and STDEV.S
Creating a histogram
COUNT and COUNTIF and COUNTIFS
AVERAGE and AVERAGEIF and AVERAGEIFS
SUM and SUMIF and SUMIFS
PERCENTILE, SMALL, and LARGE

23
Q

Round Excel Function

A

Round(norm.inv.(rand(),100,50),0) gives us an integer value

24
Q

Max Excel Function

A

Max(norm.inv(rand()100,50),0) turns any negative value into 0

25
Q

Min Excel Function

A

Min(norm.inv(rand(),100,50),200) turns any value above 200 into 200