Monte Carlo Methods A Monte Carlo simulation creates samples from a known distribution For example, if you know that a coin is weighted so that heads will.

Slides:



Advertisements
Similar presentations
Exponential Distribution
Advertisements

Spreadsheets in Finance and Forecasting Week 4: Using Formulae.
Spreadsheet Review Computer Systems Test 50 Points: T/F; MC; Fill in; Loan Am.
Microsoft Office XP Microsoft Excel
Unit 5 Spreadsheets 5.01 Introduction to Spreadsheets.
How To Complete the “Outcomes Assessment” Template in Microsoft Office Excel.
Simulation Operations -- Prof. Juran.
Session 7a. Decision Models -- Prof. Juran2 Overview Monte Carlo Simulation –Basic concepts and history Excel Tricks –RAND(), IF, Boolean Crystal Ball.
(Monté Carlo) Simulation
Outline/Coverage Terms for reference Introduction
Spreadsheet Simulation
1 Binomial Probability Distribution Here we study a special discrete PD (PD will stand for Probability Distribution) known as the Binomial PD.
Tutorial 7: Using Advanced Functions and Conditional Formatting
Class 21: Bidding Strategy and Simulation What is a “bidding strategy”? –System of determining what to bid –For example: signal with winner’s curse subtracted.
Mathematics for Business Decisions, Part 1.5a Managing ATM Queues.
Probability Distributions
What’s in the Focus file and how do we edit it? Project 2, 115a.
Simulating Normal Random Variables Simulation can provide a great deal of information about the behavior of a random variable.
Project 7 Forecasting Values With What-If Analysis: Using Data Tables, Scenarios, Goal Seek, and Solver Jason C. H. Chen, Ph.D. Professor of Management.
Histograms & Summary Data.  Summarizing large of amounts of data in two ways: Histograms: graphs give a pictorial representation of the data Numerical.
1 Binomial Probability Distribution Here we study a special discrete PD (PD will stand for Probability Distribution) known as the Binomial PD.
ATM QUEUES Kemal Cilengir Kristina Feye Jared Kredit James Winfield.
Monte Carlo Methods A Monte Carlo simulation creates samples from a known distribution For example, if you know that a coin is weighted so that heads will.
Project 2: ATM’s & Queues
Strategy 1-Bid $264.9M - Bid your signal. What will happen? Give reasoning for your analysis Had all companies bid their signals, the losses would have.
Mathematics for Business Decisions, Part 1.5a Managing ATM Queues.
Random Sampling  In the real world, most R.V.’s for practical applications are continuous, and have no generalized formula for f X (x) and F X (x). 
Simulation.
Guide to Using Excel For Basic Statistical Applications To Accompany Business Statistics: A Decision Making Approach, 6th Ed. Chapter 5: Discrete and Continuous.
Using Excel To help with data. Excel is a spreadsheet program that can interface with Word, or PowerPoint A spreadsheet program has cells (little blocks)
Simulation Examples ~ By Hand ~ Using Excel
Excel Tutorial Enfield High School 2007.
5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete Probability Distributions.
Chapter 14 Simulation. What Is Simulation? Simulation is to mimic a process by using computers.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Module Fall 2005 Session One Alex Fadeev - Link for this PPT:
Using Advanced Formatting and Analysis Tools. 2 Working with Grouped Worksheets: Grouping Worksheets  Data is entered simultaneously on all worksheets.
Exploring Engineering Chapter 3, Part 2 Introduction to Spreadsheets.
CONSTRUCTING RELATIVE & CUMULATIVE FREQUENCY DISTRIBUTIONS using EXCEL & WORD.
Project 2: ATM’s & Queues. ATM’s & Queues  Certain business situations require customers to wait in line for a service Examples:  Waiting to use an.
Excel Introducing Excel Lesson 1. Manage Workbooks Excel is a spreadsheet program Excel is a spreadsheet program It organizes and analyzes data It organizes.
Using Technology to ease the administration burden CAPS Recording Mark Sheets.
 For this particular example, we will be creating a Light Bulb fundraising sheet.  Columns A-F will be utilized as well as multiple rows, which depends.
Crystal Ball: Risk Analysis  Risk analysis uses analytical decision models or Monte Carlo simulation models based on the probability distributions to.
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2006 Session Two Alex Fadeev - Link for this PPT:
Monte Carlo Methods Focus on the Project: Now that there are two folders (9am and 9pm) that contain a Queue Focus.xls file, we will create two more folders.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2009 Session Two Michel-Alexandre Cardin – Prof. Richard.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete.
Simulation Using computers to simulate real- world observations.
Using Google Sheets To help with data. Sheets is a spreadsheet program that can interface with Docs, or Slides A spreadsheet program has cells (little.
Microsoft® Excel Key and format dates and times. 1 Use Date & Time functions. 2 Use date and time arithmetic. 3 Use the IF function. 4 Create.
Jeopardy Money Whatz that…? Work Out Time Guns and Roses Odds and Ends Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final Jeopardy.
Sensitivity Analysis A systematic way of asking “what-if” scenario questions in order to understand what outcomes could possibly occur that would effect.
ESD.70J Engineering Economy Module - Session 21 ESD.70J Engineering Economy Fall 2010 Session Two Xin Zhang – Prof. Richard de Neufville.
Using Microsoft® Excel This presentation is designed for Chapter 1, Section 1.2.
Simulation Chapter 16 of Quantitative Methods for Business, by Anderson, Sweeney and Williams Read sections 16.1, 16.2, 16.3, 16.4, and Appendix 16.1.
 Recall your experience when you take an elevator.  Think about usually how long it takes for the elevator to arrive.  Most likely, the experience.
MODELING AND SIMULATION CS 313 Simulation Examples 1.
Introduction to Excel RETC – Center for Professional Development.
Monte Carlo Methods Focus on the Project: Enter mean time between arrivals for variable A in cell B31 of the sheet 1 ATM for the Excel file Queue Focus.xls.
Starter! Get Ready to Learn! ClassworkFriday 10th October 2014 Bags under desks No drinks bottles near electrical equipment Log on to the School Computer.
Using Advanced Functions and Conditional Formatting
Day 7 Agenda: DG minutes For today’s lesson, U1 L6, you will need a graphing calculator.
Excel 2010.
Modeling and Simulation CS 313
Navya Thum February 13, 2013 Day 7: MICROSOFT EXCEL Navya Thum February 13, 2013.
Excel 2010.
Chapter 6 Continuous Probability Distributions
Presentation transcript:

Monte Carlo Methods A Monte Carlo simulation creates samples from a known distribution For example, if you know that a coin is weighted so that heads will occur 90% of the time, then you might assign the following values: X01 fX(x)fX(x)

Monte Carlo Methods If you tossed the coin, the expected value would be 0.9 However, a sample simulation might yield the results 1, 1, 1, 0, 1, 1, 0, 1, 0, 1 The average of the sample is 0.7 (close, but not the same as the expected average)

Monte Carlo Methods Another type of simulation can be run using the RAND function RAND chooses a random number between 0 and 1 Entered as RAND( ) Used for continuous random variable simulations

Monte Carlo Methods The outputs will include as many decimal places as Excel can keep This is used to model situations where you have a continuous random variable There would be an infinite number of possible outcomes

Monte Carlo Methods The IF function in Excel determines a value based upon a logical TRUE/FALSE scenario If math formula is true, then one outcome happens If math formula is false, then another outcome happens

Monte Carlo Methods Ex. The situation where heads occurs 90% of the time can be simulated by using RAND and IF functions. =IF(RAND()<=0.90,1,0) We can use COUNTIF to count the number of times an outcome occurs

Monte Carlo Methods If we have a variable with a known distribution, we may construct the c.d.f. function Once we have this, a simulation can be run from the inverse of the c.d.f.

Monte Carlo Methods For example, if we have an exponential function with a known value The inverse function is Here x would be replaced by RAND( )

Monte Carlo Methods Focus on the Project: Enter mean time between arrivals for variable A in cell B31 of the sheet 1 ATM for the Excel file Queue Focus.xls.

Monte Carlo Methods Focus on the Project: The formula in cell G35 of the sheet 1 ATM for the Excel file Queue Focus.xls needs to be changed Original: =IF(ISNUMBER(F35),VLOOKUP(RANDBETWEEN(1, 7634 ), Data!$G$45:Data!$H$ 7678,2),"")

Monte Carlo Methods Focus on the Project: Change the numbers indicated to match your data Copy your new formula into cells G36:G194

Monte Carlo Methods Focus on the Project: Note that my simulation (from my posted SampleData.xls) must accommodate 170 customers Drag the information in cells B195:C195 down until the last value in column B is one more than the number of customers (for me, 171)

Monte Carlo Methods Focus on the Project: Drag the information in cells E195:F195 down until the last values are at the same row as the values in columns B and C. Drag the information in cells G194:L195 down until the last values are one row above the values in columns E and F.

Monte Carlo Methods Focus on the Project: The finished columns E through L should look like: 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: Finally, we need to modify the formulas in cells N35:S35 N35 contains (# of customers plus 1) =IF(MAX(E35:E 195 )= 161,"Overflow",MAX(E35:E 195 )) (new ending cell in column E)

Monte Carlo Methods Focus on the Project: O35 contains =SUM(J35:J 194 ) (new ending cell in column J) P35 contains =MAX(J35:J 194 ) (new ending cell in column J)

Monte Carlo Methods Focus on the Project: Q35 contains =COUNTIF(K35:K 194,”yes”) (new ending cell in column K) R35 contains =SUM(L35:L 194 ) (new ending cell in column L)

Monte Carlo Methods Focus on the Project: S35 contains =SUM(L35:L 194 ) (new ending cell in column L) Finally, run the Macro One_ATM Save the results in a folder (do not change the name of the Excel file Queue Focus.xls)

Monte Carlo Methods Focus on the Project: A summary of possible answers to five of the six claims appears in cells: P39 (Max waiting time) S39 (Max number in queue) U39 (Mean waiting time) V39 (Percent delayed) W39 (Mean number in queue)

Monte Carlo Methods Focus on the Project: The final claim (percent irritated) must be answered and will be addressed later. Save this document in one folder (do not change the name from Queue Focus.xls)

Monte Carlo Methods Focus on the Project: Summary (9 am) Mean Wait Time Max Wait Time Percent Delayed Mean # in Queue Max # in Queue Percent Irritated 1 ATM % TBD 2 ATMs %7.167TBD 3 ATMs %1.029TBD 3 ATMs Serp %2.331TBD Claims % %

Monte Carlo Methods Focus on the Project: Once you have saved the file in a folder, create a new folder for your 9 pm data Save the Queue Focus.xls file in your new folder

Monte Carlo Methods Focus on the Project: Modify the Queue Focus.xls file for your 9 pm data This only requires a change of the cell B31 (mean arrival) in the worksheet 1 ATM.

Monte Carlo Methods Focus on the Project: Summary (9 pm) Mean Wait Time Max Wait Time Percent Delayed Mean # in Queue Max # in Queue Percent Irritated 1 ATM %0.910TBD 2 ATMs %0.56TBD 3 ATMs %0.06TBD 3 ATMs Serp %0.06TBD Claims % %

Monte Carlo Methods Focus on the Project: Now that there are two folders (9am and 9pm) that contain a Queue Focus.xls file, we will create two more folders One folder should contain the Queue Focus.xls file using 9am data and one should have the Queue Focus.xls file using the 9pm data (we can call these folders “9am irritated” and “9pm irritated”

Monte Carlo Methods Focus on the Project: For the 9am irritated claim, we will open the third copy of Queue Focus.xls (in 9am irritated folder) We will find the percent irritated value for each of the four ATM models

Monte Carlo Methods Focus on the Project: In the sheet 1 ATM, column K contains Delayed information This will be changed to find Irritated information

Monte Carlo Methods Focus on the Project: Cell K35 contains the following formula: =IF(ISNUMBER(F35),IF( J35 >$D$31,"yes","no"),"") Change J35 to L35 and copy the formula to the end of the table

Monte Carlo Methods Focus on the Project: In addition, the value in cell D31 must be changed from 5 to 3 Recall, a customer is irritated if there are more than 3 customers waiting to use an ATM

Monte Carlo Methods Focus on the Project: Run the macro One_ATM The solution will appear in cell V39 (Percent Delayed label)

Monte Carlo Methods Focus on the Project: A summary of the findings appears below: Claim is that at most 3.0% will be irritated (3 ATMs) Percent Irritated 1 ATM95.1% 2 ATMs75.4% 3 ATMs2.7% 3 ATMs Serp2.5%

Monte Carlo Methods Focus on the Project: Summary (9 am) Mean Wait Time Max Wait Time Percent Delayed Mean # in Queue Max # in Queue Percent Irritated 1 ATM % % 2 ATMs % % 3 ATMs % % 3 ATMs Serp % % Claims % %

Monte Carlo Methods Focus on the Project: Save the new Queue Focus.xls file in your 9am irritated folder Do all of the same calculations for 9pm irritated

Monte Carlo Methods Focus on the Project: Summary (9 pm) Mean Wait Time Max Wait Time Percent Delayed Mean # in Queue Max # in Queue Percent Irritated 1 ATM % % 2 ATMs % % 3 ATMs % % 3 ATMs Serp % % Claims % %

Monte Carlo Methods Focus on the Project: Final steps are to determine the cost of the gift certificate program as is and to determine the cost if 70% of customers who are eligible use the gift certificates

Monte Carlo Methods Focus on the Project: During the 9 am hour, the mean time between arrivals was 0.48 (for my data) This gives customers per hour

Monte Carlo Methods Focus on the Project: It is estimated (from simulation) that 1.0% of customers will be delayed using 3 ATMs Serpentine This gives us delayed customers per hour

Monte Carlo Methods Focus on the Project: According to my sample data, the gift certificates are worth $35 Each hour would cost in gift certificates The maintenance cost is $21 per hour

Monte Carlo Methods Focus on the Project: The total cost would be $ $21 = $64.75 This is the cost if all customers who are eligible for gift certificates actually use them

Monte Carlo Methods Focus on the Project: However, some customers will not use the gift certificate program If 70% of those eligible to use the gift certificates actually use them, then the hourly cost of gift certificates changes from $43.75 to $43.75(0.70) = $30.63

Monte Carlo Methods Focus on the Project: The overall cost would be $ $21 = $51.63 This is the cost if 70% of eligible customers used their gift certificate