Professional Documents
Culture Documents
02 MonteCarlo
02 MonteCarlo
X 0 1
fX(x) 0.10 0.90
Monte Carlo Methods
• If you tossed the coin, the expected value would be
0.9
• Entered as RAND( )
=IF(RAND()<=0.90,1,0)
• Original:
=IF(ISNUMBER(F35),VLOOKUP(RANDBETWEEN(1,7634),
Data!$G$45:Data!$H$7678,2),"")
Monte Carlo Methods
• Focus on the Project:
• Note: columns
E and F have one
extra cell
Monte Carlo Methods
• Focus on the Project:
• The formula in column L should be written in the
following way:
• In cell L36 write:
=IF(ISNUMBER(F36),COUNTIF($I$35:I35,">"&F36
),"")
• This formula can then be filled down column L
without any additional editing.
Monte Carlo Methods
• Focus on the Project:
=IF(MAX(E35:E195)=161,"Overflow",MAX(E35:E195))
• O35 contains
=SUM(J35:J194)
(new ending cell in column J)
• P35 contains
=MAX(J35:J194)
(new ending cell in column J)
Monte Carlo Methods
• Focus on the Project:
• Q35 contains
=COUNTIF(K35:K194,”yes”)
(new ending cell in column K)
• R35 contains
=SUM(L35:L194)
(new ending cell in column L)
Monte Carlo Methods
• Focus on the Project:
• S35 contains
=SUM(L35:L194)
(new ending cell in column L)
• Finally, run the Macro One_ATM
3 ATMs
0.80 12.15 1.0% 2.3 31 TBD
Serp
3 ATMs
0.01 1.91 0.0% 0.0 6 TBD
Serp
• Now that there are two folders (9am and 9pm) that
contain a Queue Focus.xls file, we will create two
more folders
1 ATM 95.1%
2 ATMs 75.4%
3 ATMs 2.7%
3 ATMs Serp 2.5%
3 ATMs
0.80 12.15 1.0% 2.3 31 2.5%
Serp
3 ATMs
0.01 1.91 0.0% 0.0 6 0.0%
Serp
• This gives 60
0.48 125
customers per hour
Monte Carlo Methods
• Focus on the Project: