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
BU BU Decision Models Simulation1 Simulation Summer 2013.
Advertisements

Understanding Microsoft Excel
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.
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.
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.
Database Functions & Filtering.  Excel has two special functions for analyzing lots of data with more than one set of criteria DCOUNT: counts the number.
Probability Distributions
Test 2 Stock Option Pricing
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.
1 Binomial Probability Distribution Here we study a special discrete PD (PD will stand for Probability Distribution) known as the Binomial PD.
Introduction to Spreadsheets Microsoft Excel. What is a spreadsheet? Enter data. Analyze data. Make graphs.
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). 
Monte Carlo Simulation in Excel Jake Blanchard Spring 2010 Uncertainty Analysis for Engineers1.
Plots and Random #s EXCEL Functions. Obtaining a Density Function l Create a column with a range of values of x containing a large portion of the density.
Objectives: Upon completion of this lesson the trainee should be able to: -Identify the basic components of a spread sheet -Utilize the help dialogue.
Simulation.
Spreadsheet. Objectives Create a new blank workbook. Create a new blank workbook. Identify user interface elements that you can use to accomplish basic.
Guide to Using Excel For Basic Statistical Applications To Accompany Business Statistics: A Decision Making Approach, 6th Ed. Chapter 5: Discrete and Continuous.
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.
Lesson 1 – Microsoft Excel The goal of this lesson is for students to successfully explore and describe the Excel window and to create a new worksheet.
Dynamic Black-Box Testing Part 2
5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete Probability Distributions.
The AIE Monte Carlo Tool The AIE Monte Carlo tool is an Excel spreadsheet and a set of supporting macros. It is the main tool used in AIE analysis of a.
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.
Excel Ch 6 Review.
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.
Using Technology to ease the administration burden CAPS Recording Mark Sheets.
Understanding Randomness
Other Useful Features of Excel n Scenario Manager n Freezing Panes n OLE.
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.
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.
Lesson 1 – Microsoft Excel * The goal of this lesson is for students to successfully explore and describe the Excel window and to create a new worksheet.
Introduction to the Essentials of Excel COMP 066.
Project Planning with PERT and CPM Chapter 14
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
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.
Understanding Microsoft Excel Lesson 1 – Microsoft Excel 2013.
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.
How to Grade with Excel Basics and Formulas. How to Grade with Excel  A cell is the cross-section of row and column  Whatever cell is selected is shown.
Introduction to Excel RETC – Center for Professional Development.
How to graph your stock project performance vs. the 3 major indexes.
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.
Understanding Microsoft Excel
Understanding Microsoft Excel
Computer Simulation Henry C. Co Technology and Operations Management,
Understanding Microsoft Excel
Using Advanced Functions and Conditional Formatting
MS-EXCEL PART 2.
Day 7 Agenda: DG minutes For today’s lesson, U1 L6, you will need a graphing calculator.
MS-Excel Part 1.
Understanding Microsoft Excel
Advanced Microsoft Excel
Excel Formulas, Macros & More
Assessed to Sale Ratio Worksheet Instructions
MS Excel Scaffolding START.
Lesson 4 – Count, CountIF, V Lookup
Probability Key Questions
Understanding Microsoft Excel
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 formulas in column L need a special modification The formulas in cell L193 is: =IF(ISNUMBER(F193),DCOUNT($I$34:I192,,Y349: Y350),"") The formula in cell L194 is: =IF(ISNUMBER(F194),DCOUNT($I$34:I193,,Y351: Y352),"") Notice as we go down 1 row, Y349:Y350 becomes Y351:Y352

Monte Carlo Methods Focus on the Project: You must modify the formulas according to this pattern So for cell L195, the formulas would be: =IF(ISNUMBER(F195),DCOUNT($I$34:I194,,Y353: Y354),"") Continue this pattern for the extra rows you added... In my example, I added 10 rows in column L, so my last modification appears in cell L204: =IF(ISNUMBER(F204),DCOUNT($I$34:I203,,Y371: Y372),"")

Monte Carlo Methods Focus on the Project: Cells Y351 and Y352 should be copied and pasted several times My simulation must accommodate 170 customers (compared to 160 from the original class file) This means I must copy and paste Y351 and Y352 ten times

Monte Carlo Methods Focus on the Project: Cell Y351 is blank, so new cells Y353, Y355, Y357, etc. will also be blank Cell Y352 contained the formula =($F$194<=I35)

Monte Carlo Methods Focus on the Project: Cell Y352 contained the formula =($F$194<=I35) Cell Y354 should have the formula =($F$195<=I35) Cell Y356 should have the formula =($F$196<=I35) Cell Y358 should have the formula =($F$197<=I35) And so on … (Be careful, you must carefully change all of the new formulas)

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)