Financial Simulation N. Gershun. Overview is a spreadsheet add-in that has two advantages. provides easy access.

Slides:



Advertisements
Similar presentations
Value-at-Risk: A Risk Estimating Tool for Management
Advertisements

Option Valuation The Black-Scholes-Merton Option Pricing Model
Example 2.2 Estimating the Relationship between Price and Demand.
Decision Technology Modeling, Software and Applications Matthew J. Liberatore Robert L. Nydick John Wiley & Sons, Inc.
Chapter 18 If mathematical analysis is too difficult, we can try each possibility out on paper. That way we can find which alternative appears to work.
15-1. Copyright © 2005 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin 15 Option Valuation.
Valuation of Financial Options Ahmad Alanani Canadian Undergraduate Mathematics Conference 2005.
6 - 1 Lecture 4 Analysis Using Spreadsheets. Five Categories of Spreadsheet Analysis Base-case analysis What-if analysis Breakeven analysis Optimization.
Simulation Operations -- Prof. Juran.
Chapter 21 Value at Risk Options, Futures, and Other Derivatives, 8th Edition, Copyright © John C. Hull 2012.
Session 7a. Decision Models -- Prof. Juran2 Overview Monte Carlo Simulation –Basic concepts and history Excel Tricks –RAND(), IF, Boolean Crystal Ball.
 Known dividend to be paid before option expiration ◦ Dividend has already been announced or stock pays regular dividends ◦ Option should be priced on.
Sensitivity and Scenario Analysis
Probability Distributions and Stochastic Budgeting AEC 851 – Agribusiness Operations Management Spring, 2006.
Engineering Economic Analysis Canadian Edition
Spreadsheet Simulation
RISK VALUATION. Risk can be valued using : Derivatives Valuation –Using valuation method –Value the gain Risk Management Valuation –Using statistical.
Session 9b. Decision Models -- Prof. Juran2 Overview Finance Simulation Models Securities Pricing –Black-Scholes –Electricity Option Miscellaneous –Monte.
MBA7020_07.ppt/July 11, 2005/Page 1 Georgia State University - Confidential MBA 7020 Business Analysis Foundations Simulation July 11, 2005.
G12 Lecture 4 Introduction to Financial Engineering.
1 SIMULATION – PART I Introduction to Simulation and Its Application to Yield Management For this portion of the session, the learning objectives are:
Example 11.1 Simulation with Built-In Excel Tools.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 7 Sampling.
Improving the versatility of D.C.F. models by simple computer applications U seful references : 1) Glenn Kautt and Fred Wieland “Modeling the future: The.
Option Basics - Part II. Call Values When Future Stock Prices Are Certain to Be Above the Exercise Price Suppose the value of a stock one year from today.
Simulation.
Lecture 11 Implementation Issues – Part 2. Monte Carlo Simulation An alternative approach to valuing embedded options is simulation Underlying model “simulates”
Brandon Groeger April 6, I. Stocks a. What is a stock? b. Return c. Risk d. Risk vs. Return e. Valuing a Stock II. Bonds a. What is a bond? b. Pricing.
Spreadsheet-Based Decision Support Systems
Example 12.6 A Financial Planning Model | 12.2 | 12.3 | 12.4 | 12.5 | 12.7 |12.8 | 12.9 | | | | | | |
1-1 1 A Brief History of Risk and Return. 1-2 A Brief History of Risk and Return Two key observations: 1. There is a substantial reward, on average, for.
Options, Futures, and Other Derivatives 6 th Edition, Copyright © John C. Hull Chapter 18 Value at Risk.
Value at Risk.
Risk Management and Financial Institutions 2e, Chapter 13, Copyright © John C. Hull 2009 Chapter 13 Market Risk VaR: Model- Building Approach 1.
Ewa Lukasik - Jakub Lawik - Juan Mojica - Xiaodong Xu.
Lecture 5: Value At Risk.
6 - 1 Chapter 6: Analysis Using Spreadsheets The Art of Modeling with Spreadsheets S.G. Powell and K.R. Baker © John Wiley and Sons, Inc. PowerPoint Slides.
Example 16.1 Ordering calendars at Walton Bookstore
Advanced Risk Management I Lecture 6 Non-linear portfolios.
Calculating Value at Risk using Monte Carlo Simulation (Futures, options &Equity) Group members Najat Mohammed James Okemwa Mohamed Osman.
The Pricing of Stock Options Using Black- Scholes Chapter 12.
MBAD/F 619: Risk Analysis and Financial Modeling Instructor: Linda Leon Fall 2014
597 APPLICATIONS OF PARAMETERIZATION OF VARIABLES FOR MONTE-CARLO RISK ANALYSIS Teaching Note (MS-Excel)
Copyright © 2010 Lumina Decision Systems, Inc. Monte Carlo Simulation Analytica User Group Modeling Uncertainty Series #3 13 May 2010 Lonnie Chrisman,
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.
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.
LECTURE 22 VAR 1. Methods of calculating VAR (Cont.) Correlation method is conceptually simple and easy to apply; it only requires the mean returns and.
Contemporary Engineering Economics, 6 th edition Park Copyright © 2016 by Pearson Education, Inc. All Rights Reserved Risk Simulation Lecture No. 40 Chapter.
Engineering Economic Analysis Canadian Edition
1 Chapter 19 Monte Carlo Valuation. 2 Simulation of future stock prices and using these simulated prices to compute the discounted expected payoff of.
Crystal Ball: Risk Analysis  Risk analysis uses analytical decision models or Monte Carlo simulation models based on the probability distributions to.
Outline of Chapter 9: Using Simulation to Solve Decision Problems Real world decisions are often too complex to be analyzed effectively using influence.
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.
Value at Risk Chapter 16. The Question Being Asked in VaR “What loss level is such that we are X % confident it will not be exceeded in N business days?”
Actuarial Science Meets Financial Economics Buhlmann’s classifications of actuaries Actuaries of the first kind - Life Deterministic calculations Actuaries.
CTS130 Spreadsheet Lesson 19 Using What-If Analysis.
Chapter McGraw-Hill/IrwinCopyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved. A Brief History of Risk and Return 1.
FIN 614: Financial Management Larry Schrenk, Instructor.
Measurement of Market Risk. Market Risk Directional risk Relative value risk Price risk Liquidity risk Type of measurements –scenario analysis –statistical.
Simulation is the process of studying the behavior of a real system by using a model that replicates the system under different scenarios. A simulation.
Computer Simulation. The Essence of Computer Simulation A stochastic system is a system that evolves over time according to one or more probability distributions.
Value at Risk Chapter 20 Options, Futures, and Other Derivatives, 7th International Edition, Copyright © John C. Hull 2008.
Chapter 19 Monte Carlo Valuation. Copyright © 2006 Pearson Addison-Wesley. All rights reserved Monte Carlo Valuation Simulation of future stock.
Options, Futures, and Other Derivatives, 5th edition © 2002 by John C. Hull 16.1 Value at Risk Chapter 16.
Options, Futures, and Other Derivatives, 4th edition © 1999 by John C. Hull 14.1 Value at Risk Chapter 14.
Supplementary Chapter B Optimization Models with Uncertainty
Key Concepts and Skills
Monte Carlo Simulation
The Pricing of Stock Options Using Black-Scholes Chapter 12
Analysis Using Spreadsheets
Presentation transcript:

Financial Simulation N. Gershun

Overview is a spreadsheet add-in that has two advantages. provides easy access to many probability distributions. 2. Add-ins make it easier to develop simulation models than Excel alone.  Overview features:  Many built-in input probability distributions.  Output cells can be maintains statistics for these cells across replications.  The Risksimtable command allows the user to run the simulation several times for different values of input parameters.

Overview  The development of a simulation model is a two-step process: 1. Build the model, that is, the logic that transforms input (e.g., stock price) into output (e.g., profit/loss on a portfolio). automatically replicates the model with many random input values, reporting output as requested. takes any spreadsheet (e.g., income statement, cash flow statement) and specifies that some of the cells are then repeats the simulation many times and computes statistics across replications. is really an advanced sensitivity analysis since it studies how changes to key input parameters impacts output.  Although we a similar add-in is Crystal Ball.

Fitting a Probability Distribution  Historical data are needed to estimate probability distributions and values for uncertain parameters.  Suppose we believe that the probability distribution of stock returns can be estimated using the past data that was gathered and appears in the returns.xls file.

Fitting a Probability Distribution  We can use the “Fit Distributions to Data” button to analyze the data. After selecting this button, enter the following information: Excel Data Range, Type of Data (Sampled Values), No Filtering Options, Continuous Domain, and OK. will analyze the data and use goodness of fit statistical tests to rank order probability distributions and their parameters for the data entered.  We are now ready to create our model.

The problem  Suppose today is October 9 th 2010, and the current price of oil is $3.05 per gallon.  You want to purchase 500,000 gallons of heating oil 5 months from now (March 9 th, 2011).  To hedge your risk, today you long x futures which give you the right to receive x gallons of heating oil for $3.10 on April 9 th,  Suppose you buy the heating oil and also close out your futures contract on March 9 th, What can happen?

What can happen?  The price of heating oil increases between now and March 9 th, 2011  Cost of buying oil goes up (bad).  The value of futures contracts increases because you have the right to receive a more valuable commodity, sell it on the open market and make some money (good).  If the price of heating oil drops  Cost of purchasing oil decreases  the value of the futures drops  Going long the future has created a hedge that reduces the effect of change in the price of heating oil between now and March.

Brief Review of Futures Contracts  Buying (shorting) a futures contract means that you bought a right to buy (sell) a pre-specified asset (underlying asset) at a pre-specified price (called futures price, F) at a pre-specified time.  Pricing Formula (ignoring storage costs): F = Se rt(1) S = the current spot price of an underlying asset r = risk free rate t = time to expiration

What do you need to decide ? You need to determine how many futures to go long.

Assumptions :  Oil prices follow a Lognormal distribution  mean growth rate  = 0.38  standard deviation of the growth rate  = 0.30  We are hedging by buying oil futures that expire on April 9 th, We close out the futures on March 9 th, 2011.

Assumptions (cont.):  Equation (1) tells us that given the current risk free rate r and the current spot price S, a futures contract of duration t should sell for F= Se rt.  In reality futures prices will vary around this “expected price.”  Futures price follows normal distribution with the mean given by equation (1) and the standard deviation of 10%.

Assumptions (cont.):  Assume for the moment that we are buying 500,000 futures, the same number as the number of gallons of oil we have to purchase.  The risk free rate is constant at 2% per annum. PROCEED TO THE SIMULATION

Step 1: Input Parameters  In B6 enter the current market price of oil ($3.05)  In B7 enter the annual risk free rate (2%)  In B8 enter the annual volatility (standard deviation) of the oil prices (0.3)  In B9 enter the mean growth rate (drift) of oil prices (0.38)  In B10 enter the standard deviation of futures prices (0.1)

Step 1: Input Parameters (cont.)  In B11 enter the futures time to expiration (0.5 year or 6 months)  In B12 enter the price of April 9 th futures as of today (October 9 th ). It is $3.10  In B13 enter the amount of oil you want to buy (500,000 gallons)  Number of futures bought (500,000 as a starting point).

Step 2: Input Formulas  In B15 enter the formula to We use the formula for a log- normal random variable:  In B15 enter the formula to generate the March 9 th spot price of oil, five months from now (t = 5/12). We use the formula for a log- normal random variable: S t = S 0 exp[(  -0.5  2 )t+Z(0,1)  t] (2) S t = price of oil at time t S 0 = current spot price of oil Z(0,1) = standard normal random variable

Step 2: Input Formulas (cont.)  In B15 enter the formula: =B6*EXP((B9-0.5*B8^2)*(5/12) +risknormal(0,1)*SQRT(5/12)*B8)  In B16 enter the formula determining the mean price of oil on March 9 th, 2001 (use equation (1)): =B15*EXP((1/12)*B7)

Step 2: Input Formulas (cont.)  In B17  In B17 build in the 10% standard deviation of the actual future price from the expected future price, thus getting the actual price of the April 9 futures on March 9. = risknormal(B15,B10*B16)  In B19 compute the cost of buying oil at the March 9 th spot price =B15*B13  In B20 compute the revenue earned from selling futures on March 9 th as =B17*B14

Step 2: Input Formulas (cont.)  In B21 we compute the cost of buying our futures on October 9 th with the formula =B12*B14  In B22 find the total cost as: oil purchase cost +futures purchase cost –futures sales revenue =B19 + B21 – B20

AB Hedging Petroleum Risk 6October 9 oil price per gallon3.05 7Risk free rate0.02 8Volatility of oil price0.3 9Mean growth rate of oil price (drift) Percentage deviation of futures price from its expected value Futures duration0.5 12April futures price on October 9 th Gallons of oil bought500,000 14Number of futures long500,000 15March 9 th price of oil=B6*EXP((B9-0.5*B8^2)*(5/12)+RiskNormal(0,1)*SQRT(5/12)*B8) 16Mean of March 9 th price of April futures =B15*EXP((1/12)*B7) 17Actual March 9 th futures price=RiskNormal(B16,B10*B16) 18 19Cost of buying oil=B15*B13 20Revenue from futures=B17*B14 21Cost of buying futures on October 9 th =B12*B14 22Total cost=B19+B21-B20

Step 3: Select Simulation Settings With cell B22 highlighted, choose the Add Output button to make this the output cell.  Select B22 (total cost with futures) and B19 (total cost without futures, i.e., just buying the oil) as the outputs and run the simulation. With cell B22 highlighted, choose the Add Output button to make this the output cell. Do the same with B19.  Click on the Simulation Settings button and select 1000 iterations and 1 simulation in the Iterations tab.  In the sampling tab of the Simulation Settings button, select Latin Hypercube, Standard Recalc (Monte Carlo), Fixed = 1, All, check Save as Default, and OK.

Note on Sampling  Sampling is the process by which values are randomly drawn from the selected distribution.  during each iteration of the simulation, one observation is chosen from the input distribution.  As the number of iterations increases, the sample of observations more closely resembles the input distribution.  When running a simulation, it is important that all areas of the input distribution get sampled, especially the low probability (high uncertainty) areas. If not, uncertainty will seem less than it actually is.

The Concept of “Efficiency ”  Statisticians have developed different ways to sample (or draw) from distributions.  If we could do an infinite number of iterations in our simulation, these methods would produce equal results.  However, since we use a finite number of iterations, different sampling methods do not produce equivalent results.  A sampling method is considered more efficient than another if it approximates a distribution with fewer iterations.  Two popular sampling methods:  Monte Carlo Simulation  Latin Hypercube

Monte Carlo Simulation  Monte Carlo simulation draws samples from the full range of the distribution on each draw.  It is an entirely random sampling technique.  Requires a large number of iterations to adequately approximate the input distribution.  Why? Most observations drawn are closer to the mean. Creates clustering. The tails (areas of high uncertainty) are usually underrepresented in the sampling.

Latin Hypercube  Latin Hypercube samples from all parts of the distribution, reducing clustering.  Not entirely random (is a “stratified” sampling method)  Latin Hypercube divides a distribution into intervals (strata) of equal probability and randomly draws from each interval.  Insures that all portions of the distribution are sampled, including the tails.  Latin Hypercube sampling is more efficient than Monte Carlo sampling:  Requires fewer iterations.

Example :  Suppose we sample 8 times from a normal distribution. With Monte Carlo sampling we might get: Source: Modeling the Future: The Full Monte, the Latin Hypercube and Other Curiosities by Glenn Kautt, CFP, and Fred Wieland, Ph.D., FPA Journal Notice that the tails (high uncertainty areas) are not adequately represented. This results in underestimating risk

Example continued  With Latin Hypercube, we would get: Source: Modeling the Future: The Full Monte, the Latin Hypercube and Other Curiosities by Glenn Kautt, CFP, and Fred Wieland, Ph.D., FPA Journal Notice that even with only 8 observations, the tails are much more adequately represented. This results in a truer representation of risk. The area in each strata is equal but the width of each strata varies.

Step 4: Select Report Settings  Click on the Report Settings button and select:  Show Results Window  Generate Excel Reports Selected Below  Simulation Summary  Output Graphs,  Active Workbook  Metafile  Check Save as Default, and OK.

Step 5: Run the Simulation  To run the simulation, select the Start Simulation button. will create a Results window.  Choose the Detailed Statistics Window to display additional output.

Simulation Results NameCellMinMeanMax95% percentile Total cost without futures B19$903,680$1,786,812$3,644,913$2,406,835 Total cost with futures B22$789,661$1,544,200$2,145,186$1,842,001

Step 6: Choosing the Number of Futures to Buy (Long)  The objective of this problem is to choose the number of futures contracts that minimizes the cost of buying oil and reduces the risk of this transaction. can automatically evaluate several possibilities on the same set of random oil prices and futures prices. The Risksimtable command accomplishes this.  Enter “Number of Futures to Buy” in cell A25 and the desired quantities in cells B25 – F25: 200,000, 300,000, 400,000, 500,000, and 600,000.

Step 6: Choosing the Number of Futures (cont.)  In cell B9 enter: =Risksimtable(B25:F25)  Set number of iterations to  Set number of simulations to 5.  Run the simulation.

Simulation Results Number of Futures to Buy 200,000300,000400,000500,000600,000 Average Total Cost$1,690,943$1,643,084$1,595,225$1,547,366$1,499,507 SD Total Cost$223,889$179,717$163,056$181,640$226,971 95% Risk Percentile (VaR) $2,103,529$1,972,014$1,897,501$1,835,359$1,852,763