Decision Trees November 18, 2013. Example: we have a machine which may break down at any time over the next three years. We can replace it now, at a cost.

Slides:



Advertisements
Similar presentations
Introduction to Risk Analysis Using Excel. Learning Objective.
Advertisements

Risk Analysis November 3, Risk analysis is used when one or more of the numbers going into our analysis is a random variable.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Statistics.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Pearson Prentice-Hall, Inc.Chap 5-1 Statistics for Managers Using Microsoft® Excel 5th Edition.
Sampling Distributions (§ )
McGraw-Hill Ryerson Copyright © 2011 McGraw-Hill Ryerson Limited. Adapted by Peter Au, George Brown College.
Engineering Economic Analysis Canadian Edition
4.1 Option Prices: numerical approach Lecture Pricing: 1.Binomial Trees.
Resampling techniques Why resampling? Jacknife Cross-validation Bootstrap Examples of application of bootstrap.
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 6 Introduction to Sampling Distributions.
Chapter 4 Probability Distributions
Variability Measures of spread of scores range: highest - lowest standard deviation: average difference from mean variance: average squared difference.
Discrete Probability Distributions
Continuous Random Variables and Probability Distributions
Chapter 5 Discrete Probability Distributions
Experimental Evaluation
Ka-fu Wong © 2004 ECON1003: Analysis of Economic Data Lesson6-1 Lesson 6: Sampling Methods and the Central Limit Theorem.
Variance Fall 2003, Math 115B. Basic Idea Tables of values and graphs of the p.m.f.’s of the finite random variables, X and Y, are given in the sheet.
5.4 The Central Limit Theorem Statistics Mrs. Spitz Fall 2008.
Monte Carlo Simulation 1.  Simulations where random values are used but the explicit passage of time is not modeled Static simulation  Introduction.
© 2010 Pearson Education Inc.Goldstein/Schneider/Lay/Asmar, CALCULUS AND ITS APPLICATIONS, 12e – Slide 1 of 15 Chapter 12 Probability and Calculus.
Engineering Economy, Sixteenth Edition Sullivan | Wicks | Koelling Copyright ©2015, 2012, 2009 by Pearson Education, Inc. All rights reserved. TABLE 12-1.
1 Sampling and Sampling Distributions Dr. Jerrell T. Stracener, SAE Fellow Leadership in Engineering EMIS 7370/5370 STAT 5340 : PROBABILITY AND STATISTICS.
Lesson 8 – R Taken from And modified slightlyhttp://
5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete Probability Distributions.
5.5 Distributions for Counts  Binomial Distributions for Sample Counts  Finding Binomial Probabilities  Binomial Mean and Standard Deviation  Binomial.
Slide 1 Copyright © 2004 Pearson Education, Inc..
Monte Carlo Simulation and Personal Finance Jacob Foley.
1 Theoretical Physics Experimental Physics Equipment, Observation Gambling: Cards, Dice Fast PCs Random- number generators Monte- Carlo methods Experimental.
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.
Using Probability and Discrete Probability Distributions
Sampling Distributions. What is a sampling distribution? Grab a sample of size N Compute a statistic (mean, variance, etc.) Record it Do it again (until.
Engineering Economic Analysis Canadian Edition
5.3 Random Variables  Random Variable  Discrete Random Variables  Continuous Random Variables  Normal Distributions as Probability Distributions 1.
Sampling W&W, Chapter 6. Rules for Expectation Examples Mean: E(X) =  xp(x) Variance: E(X-  ) 2 =  (x-  ) 2 p(x) Covariance: E(X-  x )(Y-  y ) =
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
Math 4030 – 4a Discrete Distributions
Outline of Chapter 9: Using Simulation to Solve Decision Problems Real world decisions are often too complex to be analyzed effectively using influence.
Section 5.4 Sampling Distributions and the Central Limit Theorem Larson/Farber 4th ed.
Chapter 8 Sampling Variability and Sampling Distributions.
Selecting Input Probability Distribution. Simulation Machine Simulation can be considered as an Engine with input and output as follows: Simulation Engine.
Stat 13 Lecture 19 discrete random variables, binomial A random variable is discrete if it takes values that have gaps : most often, integers Probability.
12/4/2015 Vijit Mittal (NBS, Gr. Noida) 1 Monte Carlo Simulation,Real Options and Decision Tree.
COMPLETE f o u r t h e d i t i o n BUSINESS STATISTICS Aczel Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., l Using Statistics l Sample.
Computer Simulation. The Essence of Computer Simulation A stochastic system is a system that evolves over time according to one or more probability distributions.
Chapter 7 Statistical Inference: Estimating a Population Mean.
The Practice of Statistics Chapter 9: 9.1 Sampling Distributions Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates.
Ka-fu Wong © 2003 Chap 6- 1 Dr. Ka-fu Wong ECON1003 Analysis of Economic Data.
Lesson Discrete Random Variables. Objectives Distinguish between discrete and continuous random variables Identify discrete probability distributions.
Chapter 5 Sampling Distributions. The Concept of Sampling Distributions Parameter – numerical descriptive measure of a population. It is usually unknown.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 5-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Review of Statistical Terms Population Sample Parameter Statistic.
Introduction to Inference Sampling Distributions.
Contemporary Engineering Economics, 6 th edition Park Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Probabilistic Cash Flow Analysis.
MAT 4830 Mathematical Modeling 04 Monte Carlo Integrations
Ka-fu Wong © 2007 ECON1003: Analysis of Economic Data Lesson0-1 Supplement 2: Comparing the two estimators of population variance by simulations.
Welcome to MM305 Unit 8 Seminar Prof. Dan Statistical Quality Control.
Probabilistic Cash Flow Analysis
Math 4030 – 4a More Discrete Distributions
Random Variables and Probability Distribution (2)
CHAPTER 6 Random Variables
AP Statistics: Chapter 7
Monte Carlo Simulation Managing uncertainty in complex environments.
Section 7.1 Sampling Distributions
Random Variables 7.1.
CHAPTER 12 More About Regression
The estimate of the proportion (“p-hat”) based on the sample can be a variety of values, and we don’t expect to get the same value every time, but the.
Sampling Distributions (§ )
Review of Chapter 8 Discrete PDFs Binomial and Geometeric
Presentation transcript:

Decision Trees November 18, 2013

Example: we have a machine which may break down at any time over the next three years. We can replace it now, at a cost of $40,000, or we can keep it in service till it breaks. That will cost us $10,000 in lost production, and we will have to pay to have it replaced. Every year, there is a 30% chance that the cost of a replacement will go up by $5,000, though we don’t expect there to be more than one such increase in the next three years. Our MARR is 20%.

Example: we have a machine which may break down at any time over the next three years. We can replace it now, at a cost of $40,000, or we can keep it in service till it breaks. That will cost us $10,000 in lost production, and we will have to pay to have it replaced. Every year, there is a 30% chance that the cost of a replacement will go up by $5,000, though we don’t expect there to be more than one such increase in the next three years. Our MARR is 20%.

Your company has developed a new design of mobile phone. You need to decide whether to manufacture and market it in China or North America. If you manufacture in China, the fixed costs will be $4,000,000, and the variable costs per phone will be $15. If you manufacture in North America, the fixed costs may be anywhere from $3,000,000 to $4,000,000, and the variable costs per phone will be between $15 and $20. Shipping across the Pacific will add $10 per phone. If you sell at $30 in China, you expect to sell 300, ,000 units. If you sell for $40, you can expect these figures to be halved. In North America, if you sell at $40 you expect to sell 100,000 to 300,000, and these figures will be halved if you sell at $50.

North America China Start with a decision node…

Make further decisions… Make in China Make in NA Sell in China Sell in NA

Make further decisions… $30 $40 $50 $40 $50 Sell China Sell NA Sell China Sell NA

Label leaf nodes… $30 $40 $50 $40 $50 Sell China Sell NA Sell China Sell NA NN40 NN50 CC3 0

Construct `chance’ trees from leaf nodes… CC30 Sell 300,000 Sell 400,000

Calculate PW (omit (P/F) factors, since they’re the same on all branches; figures in $000’s) CC30 Sell 300,000 Sell 400,000 PW = -4, (30-15) = -4,000+4,500 = 500 PW = -4, (30-15) = -4,000+6,000 = 2,000

Calculate average PW CC30 Sell 300,000 Sell 400,000 PW = 500 PW = 2,000 E(x)=1,250

Calculate variance and standard deviation CC30 Sell 300,000 Sell 400,000 PW = 500 PW = 2,000 E(x)=1,250 Var(x) = 0.5 × (1, ) × (1,250-2,000) 2 = 562,500 s.d. = 750

For some leaf nodes, the process is more complicated… NN40 Fixed cost 300,000 Fixed cost 400,000 VC 15 VC 20 Sell 100,000 Sell 300,000

NN40NN40 NN40NN40 VC 15 VC 20 Sell 100K Sell 300K FC 300K PW=-3, (40-15) = -500 PW=-3, (40-15) = 5,500

NN40NN40 NN40NN40 VC 15 VC 20 Sell 100K Sell 300K FC 300K PW=-3, (40-15) = -500 PW=-3, (40-15) = 5,500 FC 400K PW= -1,000 PW= 3,000 PW= -1,500 PW= 4,500 PW= -2,000 PW= 2,000

NN30NN30 NN30NN30 VC 15 VC 20 Sell 100K Sell 300K FC 300K PW= -500 PW= 5,500 FC 400K PW= -1,000 PW= 3,000 PW= -1,500 PW= 4,500 PW= -2,000 PW= 2,000 E(x) = 1,250 Var = 4,570,000 s.d. = 2,137

Mark these results on the decision tree $30 $40 $50 $40 $50 Sell China Sell NA Sell China Sell NA Mean = 1,250, sd = 750 Mean = 375, sd = 625 Mean = -1,000, sd = 1,500 Mean = -1,500, sd = 1,250 Mean = 1,250, sd = 2,137 Mean = -250, sd = 1,639 Make in China Make in NA

Mark these results on the decision tree $30 $40 $50 $40 $50 Sell China Sell NA Sell China Sell NA Mean = 1,250, sd = 750 Mean = 375, sd = 625 Mean = -1,000, sd = 1,500 Mean = -1,500, sd = 1,250 Mean = 1,250, sd = 2,137 Mean = -250, sd = 1,639 Make in China Make in NA

The China/China option is mean-variance dominant $30 $40 $50 $40 $50 Sell China Sell NA Sell China Sell NA Mean = 1,250, sd = 750 Mean = 375, sd = 625 Mean = -1,000, sd = 1,500 Mean = -1,500, sd = 1,250 Mean = 1,250, sd = 2,137 Mean = -250, sd = 1,639 Make in China Make in NA

The Monte Carlo Method

Illustrative example: How to calculate π using a shotgun

Step One:Draw a circle in a square

Note that, if the side of the square is 2, then the area of the square is 4 and the area of the circle is π 2

Blast the target with your shotgun

Count the number of holes inside the circle and the number inside the square. Their ratio approximates π /4 

In this case, we find that π is about 4 × 10 ⁄ 13 = 3.08 

To get an improved estimate, we take more shots

j = 0; for (i=1; i <= ; i++) { x = rnd(); y = rnd(); if ((x 2 + y 2 ) < 1) j++; pi_Estimate = 4 * real(i)/real(j) }

j = 0; for (i=1; i <= ; i++) { x = rnd(); y = rnd(); if ((x 2 + y 2 ) < 1) j++; pi_Estimate = 4 * real(i)/real(j) } In the square

j = 0; for (i=1; i <= ; i++) { x = rnd(); y = rnd(); if ((x 2 + y 2 ) < 1) j++; pi_Estimate = 4 * real(i)/real(j) } Is it in the circle?

π

π

π

π

Applying Monte Carlo analysis to economic problems:

Your company has developed a new design of mobile phone. You need to decide whether to manufacture and market it in China or North America. If you manufacture in China, the fixed costs will be $4,000,000, and the variable costs per phone will be $15. If you manufacture in North America, the fixed costs may be anywhere from $3,000,000 to $4,000,000, and the variable costs per phone will be between $15 and $20. Shipping across the Pacific will add $10 per phone. If you sell at $30 in China, you expect to sell 300, ,000 units. If you sell for $40, you can expect these figures to be halved. In North America, if you sell at $40 you expect to sell 100,000 to 300,000, and these figures will be halved if you sell at $50. It will take 2 to 4 years to begin manufacture, and your MARR is between 10 and 15%.

Step 1: Build the deterministic model (this may be a computer program or set of spreadsheet formulae) PW(NN30) = (Fixed_Cost – Sales(30 -Variable_Cost))(P/F, i, N) PW(NN40) = (Fixed_Cost – Sales(40 -Variable_Cost))(P/F, i, N) Do a sample calculation to make sure it works.

Step 2: Decide what the probability distribution is for each random variable: Fixed Cost p(Fixed Cost) $3M$3.5M$4M

Step 3: The random numbers you are going to generate will be uniformly distributed between 0 and 1. This is fine if the variable you are modelling happens to be uniformly distributed between 0 and 1, but what if it’s normally distributed between $3M and $4M?

First form the cumulative distribution function Fixed Cost $3M$4M p(Fixed Cost < x)

Then discretize it x2x2 $3M$4M x1x1 x3x3 p(x<x 1 ) p(x<x 2 ) p(x<x 3 )

Pick z = rnd() x2x2 $3M$4M x1x1 x3x3 p(x<x 1 ) p(x<x 2 ) p(x<x 3 ) z

Now if p(x<x 2 ) < z < p(x<x 3 ), X =(x 2 +x 3 )/2 x2x2 $3M$4M x1x1 x3x3 p(x<x 1 ) p(x<x 2 ) p(x<x 3 ) z X

Step 3a: The random numbers you are going to generate will be uniformly distributed between 0 and 1. This is fine if the variable you are modelling happens to be uniformly distributed between 0 and 1, but what if it’s a discrete random variable?

For example: ``There is a 30% probability that the government will levy a surcharge on phones imported from China.’’ Let z = rnd(); if z > 0.3, no surcharge

In this way, we generate random estimates for each parameter in the problem. Then we plug these parameters into the deterministic model, and get one possible value of the present worth. PW(NN30) 1 = (Fixed_Cost 1 – Sales 1 (30 -Variable_Cost 1 ))(P/F, i 1, N 1 ) Now do this a thousand times. PW(NN30) 1000 = (Fixed_Cost 1000 – Sales 1000 (30 -Variable_Cost 1000 ))(P/F, i 1000, N 1000 ) PW(NN30) 2 = (Fixed_Cost 2 – Sales 2 (30 -Variable_Cost 2 ))(P/F, i 2, N 2 )......

What do we do with the 1,000 PW’s? We create a histogram: Find highest and lowest PW’s. Divide the interval between them into N bins of equal size. (N could be 10 or thereabouts) Count the number of cases in each bin. Then repeat for other possible strategies

Cases in Bin Present worth ($000’s) NN30

Cases in Bin Present worth ($000’s) NN30 CC30

Making a decision: The histogram provides somewhat more information than mean + variance. We may want to choose the strategy that has no chance of making a loss.

Other applications of the Monte Carlo method: First used in the Manhattan project N. Metropolis and S. Ulam, "The Monte Carlo Method", Journal of the American Statistical Association, volume 44, number 247, pp. 335–341 (1949)

Used to simulate combustion in diesel engines:

Start with N 1 packets of air and N 2 packets of fuel. Each packet of fuel has an N 1 /(N 1 +N 2 ) chance of mixing with a packet of air.

After mixing has taken place, there is a delay for vaporization, then a second delay before combustion starts.

After combustion starts, each packet of fuel has a certain chance of mixing with air, and a certain chance of mixing with an already-combusted packet.

The outputs of the process are histograms of various output parameters: Soot emissionsNo x emissions