We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!
Presentation is loading. Please wait.
Published byJoy Reed
Modified about 1 year ago
‘Introductory Econometrics for Finance’ © Chris Brooks 20021 Chapter 10 Simulation Methods
‘Introductory Econometrics for Finance’ © Chris Brooks 20022 Simulation Methods in Econometrics and Finance The Monte Carlo Method This technique is often used in econometrics when the properties of a particular estimation method are not known. Examples from econometrics include: 1.Quantifying the simultaneous equations bias induced by treating an endogenous variable as exogenous. 2.Determining the appropriate critical values for a Dickey-Fuller test. 3.Determining what effect heteroscedasticity has upon the size and power of a test for autocorrelation. Simulations are also often extremely useful tools in finance, in situations such as: 1.The pricing of exotic options, where an analytical pricing formula is unavailable. 2.Determining the effect on financial markets of substantial changes in the macroeconomic environment. 3.“Stress-testing” risk management models to determine whether they generate capital requirements sufficient to cover losses in all situations.
‘Introductory Econometrics for Finance’ © Chris Brooks 20023 Conducting Simulations Experiments In all of the above examples, the basic way that such a study would be conducted (with additional steps and modifications where necessary) is as follows. 1.Generate the data according to the desired data generating process (DGP), with the errors being drawn from some given distribution. 2.Do the regression and calculate the test statistic. 3.Save the test statistic or whatever parameter is of interest. 4.Go back to stage 1 and repeat N times. N is the number of replications, and should be as large as is feasible. The central idea behind Monte Carlo is that of random sampling from a given distribution. Therefore, if the number of replications is set too small, the results will be sensitive to “odd” combinations of random number draws.
‘Introductory Econometrics for Finance’ © Chris Brooks 20024 Random Number Generation We generate numbers that are a continuous uniform(0,1) according to the following recursion: y i+1 = (a y i + c) modulo m then R i+1 = y i+1 / m for i = 0, 1,...,T for T random draws, where y 0 is the seed (the initial value of y), a is a multiplier and c is an increment. An example of a discrete uniform number generator would be a die or a roulette wheel. Computers generate continuous uniform random number draws. These are pseudo-random numbers The U(0,1) draws can be transformed into other standard distributions (e.g normal, t, etc).
‘Introductory Econometrics for Finance’ © Chris Brooks 20025 Variance Reduction Techniques The sampling variation in a Monte Carlo study is measured by the standard error estimate, denoted S x : where var(x) is the variance of the estimates of the quantity of interest over the N replications In order to achieve acceptable accuracy, the number of replications may have to be set at an infeasibly high level. An alternative way to reduce Monte Carlo sampling error is to use a variance reduction technique Two of the intuitively simplest and most widely used methods are antithetic variates and control variates.
‘Introductory Econometrics for Finance’ © Chris Brooks 20026 Antithetic Variates One reason that a lot of replications are typically required of a Monte Carlo study is that it may take many, repeated sets of sampling before the entire probability space is adequately covered. What is really required is for successive replications to cover different parts of the probability space. The antithetic variate technique involves taking the complement of a set of random numbers and running a parallel simulation on those. For each replication conducted using random draws u t, an additional replication with errors given by - u t is also used. Suppose that the average value of the parameter of interest across 2 sets of Monte Carlo replications is given by where x 1 and x 2 are the average parameter values for replications set 1 and 2 respectively.
‘Introductory Econometrics for Finance’ © Chris Brooks 20027 Antithetic Variates (cont’d) The variance of will be given by: If no antithetic variates are used: However, the use of antithetic variates would lead the covariance to be negative, and therefore the Monte Carlo sampling error to be reduced.
‘Introductory Econometrics for Finance’ © Chris Brooks 20028 Control Variates The application of control variates involves employing a variable similar to that used in the simulation, but whose properties are known prior to the simulation. Denote the variable whose properties are known by y, and that whose properties are under simulation by x. The simulation is conducted on x and also on y, with the same sets of random number draws being employed in both cases.
‘Introductory Econometrics for Finance’ © Chris Brooks 20029 Control Variates (cont’d) Denoting the simulation estimates of x and y using hats, a new estimate of x can be derived from: Again, it can be shown that the Monte Carlo sampling error of this quantity, x*, will typically be lower than that of x. In fact, it can be shown that control variates will reduce the Monte Carlo variance if For example, if the topic of interest is the pricing of an Asian option, the control variate approach would be given by P A * = ( ) + P BS
‘Introductory Econometrics for Finance’ © Chris Brooks 200210 Recall, that the equation for a Dickey Fuller test applied to some series y t is the regression y t = y t-1 + u t The test is one of H 0 : = 1 against H 1 : 1. The relevant test statistic is given by Under the null hypothesis of a unit root, the test statistic does not follow a standard distribution, and therefore a simulation would be required to obtain the relevant critical values. An Example of the use of Monte Carlo Simulation in Econometrics: Deriving a Set of Critical Values for a Dickey-Fuller Test
‘Introductory Econometrics for Finance’ © Chris Brooks 200211 An Example of the use of Monte Carlo Simulation in Econometrics: Deriving a Set of Critical Values for a Dickey-Fuller Test (cont’d) The simulation would be conducted in the following steps: Construct the data generating process under the null hypothesis – that is, obtain a series for y that follows a unit root process. This would be done by –Draw a series of length T, the required number of observations, from a normal distribution. This will be the error series, so that u t N(0,1). –Assume a first value for y, i.e. a value for y at time t = 0. –Construct the series for y recursively, starting with y 1, y 2, and so on: »y 1 = y 0 + u 1 »y 2 = y 1 + u 2 »y 3 = y 2 + u 3 » … »y T = y T-1 + u T
‘Introductory Econometrics for Finance’ © Chris Brooks 200212 An Example of the use of Monte Carlo Simulation in Econometrics: Deriving a Set of Critical Values for a Dickey-Fuller Test (cont’d) –Calculate the test statistic, . –Repeat steps 1 and 2 N times to obtain N replications of the experiment. A distribution of values for will be obtained across the replications. –Order the set of N values of from the lowest to the highest. The relevant 5% critical value will be the 5 th percentile of this distribution.
‘Introductory Econometrics for Finance’ © Chris Brooks 200213 An Example of how to simulate the Price of a Financial Option Although the example presented here is for a simple plain vanilla call option, the same basic approach would be used to value an exotic option. The steps are: –Specify a data generating process for the underlying asset. A random walk with drift model is usually assumed. Specify also the assumed size of the drift component and the assumed size of the volatility parameter. Specify also a strike price K, and a time to maturity, T. –Draw a series of length T, the required number of observations for the life of the option, from a normal distribution. This will be the error series, so that u t N(0,1). –Form a series of observations of length T on the underlying asset.
‘Introductory Econometrics for Finance’ © Chris Brooks 200214 An Example of how to simulate the Price of a Financial Option (cont’d) –Observe the price of the underlying asset at maturity observation T. For a call option, if the value of the underlying asset on maturity date, P T K, the option expires in the money, and has value on that date equal to P T - K, which should be discounted back to the present day using the risk free rate. –Repeat steps 1 to 4 N times, and take the average value of the option over the N replications. This average will be the price of the option. The data for the underlying can be generated according to a more empirically realistic process.
‘Introductory Econometrics for Finance’ © Chris Brooks 200215 Bootstrapping In finance, the bootstrap is often used instead of a pure simulation. This is mainly because financial asset returns do not follow the standard statistical distributions that are used in simulations. Bootstrapping provides an alternative where by definition, the properties of the artificially constructed series will be similar to those of the actual series. Bootstrapping is used to obtain a description of the properties of empirical estimators by using the sample data points themselves. Bootstrapping is similar to pure simulation but the former involves sampling from real data rather than creating new data. Suppose we have a sample of data, y = y 1, y 2,..., y T and we want to estimate some parameter . We can get an approximation to the statistical properties of by studying a sample of bootstrap estimators. We do this by taking N samples of size T with replacement from y and re- calculating with each new sample. We then get a series of estimates.
‘Introductory Econometrics for Finance’ © Chris Brooks 200216 Bootstrapping (cont’d) Advantage of bootstrapping: it allows the researcher to make inferences without making strong distributional assumptions. Instead of imposing a shape on the sampling distribution of the ’s, bootstrapping involves empirically estimating the sampling distribution by looking at the variation of the statistic within sample. We draw a set of new samples with replacement from the sample and calculate the test statistic of interest from each of these. Call the test statistics calculated from the new samples *. The samples are likely to be quite different from each other. We thus get a distribution of *’s.
‘Introductory Econometrics for Finance’ © Chris Brooks 200217 An Example of the Use of Bootstrapping in a Regression Context Consider a standard regression model, y = X + u. The regression model can be bootstrapped in two ways. 1. Resample the Data Take the data, and sample the entire rows corresponding to observation i together. The steps would then be 1. Generate a sample of size T from the original data by sampling with replacement from the whole rows taken together. 2.Calculate, the coefficient matrix for this bootstrap sample. 3.Go back to stage 1 and generate another sample of size T. Repeat this a total of N times. Problem with this approach is that we are sampling from the regressors.
‘Introductory Econometrics for Finance’ © Chris Brooks 200218 An Example of the Use of Bootstrapping in a Regression Context (cont’d) The only random influence in the regression is the errors, u, so why not just bootstrap from those? 2. Resampling from the Residuals The steps are 1.Estimate the model on the actual data, obtain the fitted values, and calculate the residuals,. 2.Take a sample of size T with replacement from these residuals (and call these ), and generate a bootstrapped dependent variable: 3.Then regress the original X data on this new dependent variable to get a bootstrapped coefficient vector,. 4.Go back to stage 2, and repeat a total of N times.
‘Introductory Econometrics for Finance’ © Chris Brooks 200219 Situations where the Bootstrap will be Ineffective If there are extreme outliers in the data, the conclusions of the bootstrap may be affected. Use of the bootstrap implicitly assumes that the data from which the sampling is done are independent. This would not hold, for example, if the data were autocorrelated.
‘Introductory Econometrics for Finance’ © Chris Brooks 200220 An Example of the Use of Bootstrapping to Calculate Capital Risk Requirements (Hsieh, 1993) Financial Motivation An important use of bootstrapping in a financial context is in the calculation of value at risk. VaR gives the amount in financial terms that is expected to be lost with a given probability over a given time interval. E.g. 95%, 10-day VaR = $100m How do we calculate, say, the amount of capital required to cover 95% of the daily losses on a particular position? This is a forecasting problem considered by Hsieh (1993). Data: daily log returns on foreign currency (against the US dollar) futures series from 22 February 1985 until 9 March 1990 (1275 observations) for the British pound (denoted BP), the German mark (GM), the Japanese yen (JY), and the Swiss franc (SF).
‘Introductory Econometrics for Finance’ © Chris Brooks 200221 An Example of the Use of Bootstrapping to Calculate Capital Risk Requirements (Hsieh, 1993) The first step in the analysis is to find a model that describes the main features of the data that can be used to construct the bootstraps. Hsieh shows that his fx returns have no linear or non-linear structure in the mean, but they have evidence of non-linear structure in the variance. What models are examples of this type? The GARCH family. Hsieh uses EGARCH and Autoregressive Volatility models.
‘Introductory Econometrics for Finance’ © Chris Brooks 200222 An Example of the Use of Bootstrapping to Calculate Capital Risk Requirements (Hsieh, 1993) The standardised residuals (e.g. for the EGARCH model) are tested for non-randomness; little evidence of any structure is found. We can thus sample with replacement from these standardised residuals. From these, we can simulate a set of future paths for and then y t by bootstrapping from v t = ( ). Hsieh simulates the future path of returns for 180 days after the end of the estimation sample.
‘Introductory Econometrics for Finance’ © Chris Brooks 200223 Calculating the Capital Risk Requirements l In each case, the maximum drawdown (loss) can be calculated over a given holding period by Q= (P 0 - P 1 ) number of contracts where P 0 is the initial value of the position, and P 1 is the lowest simulated price (for a long position) or highest simulated price (for a short position) over the holding period. Hsieh repeats this procedure 2,000 times to get 2,000 maximum losses. l The maximum loss is calculated assuming holding periods of 1, 5, 10, 15, 20, 25, 30, 60, 90 and 180 days. l It is assumed that the futures position is opened on the final day of the sample used to estimate the models, 9 March 1990. Then he takes the 90th percentile of these 2000 maximum losses to get the amount of capital required to cover losses on 90% of days.
‘Introductory Econometrics for Finance’ © Chris Brooks 200224 Minimum Capital Risk Requirements for Currency Futures as a Percentage of the Initial Value of the Position
‘Introductory Econometrics for Finance’ © Chris Brooks 200225 Minimum Capital Risk Requirements: Discussion The MCRRs derived from bootstrapping the price changes themselves (the “unconditional approach”) are in most cases higher than those generated from the other two methods, especially at short investment horizons. As the holding period increases from 1 towards 180 days, the MCRR estimates from the ARV model converge upon those of the unconditional densities. On the other hand, those of the EGARCH model do not converge, even after 180 days It can also be observed that the MCRRs for short positions are larger than those of comparative long positions.
‘Introductory Econometrics for Finance’ © Chris Brooks 200226 Problems with Simulation (including bootstrapping) 1.It might be computationally expensive 2.The results might not be precise 3.The results are often hard to replicate 4.Simulation results are experiment-specific. To conclude, simulation is an extremely useful tool that can be applied to an enormous variety of problems. The technique has grown in popularity over the past decade, and continues to do so. However, like all tools, it is dangerous in the wrong hands.
Resampling techniques Why resampling? Jacknife Cross-validation Bootstrap Examples of application of bootstrap.
Various topics Petter Mostad Overview Epidemiology Study types / data types Econometrics Time series data More about sampling –Estimation.
Chapter 11 Multiple Regression ©. Multiple Regression Model Multiple regression enables us to determine the simultaneous effect of several independent.
Options, Futures, and Other Derivatives, 5th edition © 2002 by John C. Hull 16.1 Value at Risk Chapter 16.
Module 1: Statistical Issues in Micro simulation Paul Sousa.
Cointegration and Error Correction Models. Introduction Assess the importance of stationary variables when running OLS regressions. Describe the Dickey-Fuller.
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?”
Options, Futures, and Other Derivatives 6 th Edition, Copyright © John C. Hull Chapter 18 Value at Risk.
Value at Risk Chapter 20 Options, Futures, and Other Derivatives, 7th International Edition, Copyright © John C. Hull
OPTIONS PRICING AND HEDGING WITH GARCH.THE PRICING KERNEL.HULL AND WHITE.THE PLUG-IN ESTIMATOR AND GARCH GAMMA.ENGLE-MUSTAFA – IMPLIED GARCH.DUAN AND EXTENSIONS.ENGLE.
Options, Futures, and Other Derivatives, 4th edition © 1999 by John C. Hull 14.1 Value at Risk Chapter 14.
Chapter 19 Monte Carlo Valuation. © 2013 Pearson Education, Inc., publishing as Prentice Hall. All rights reserved.19-2 Monte Carlo Valuation Simulation.
‘Introductory Econometrics for Finance’ © Chris Brooks Lecture 10 Modelling long-run relationship in finance: The Johansen Approach.
Calculating Value at Risk using Monte Carlo Simulation (Futures, options &Equity) Group members Najat Mohammed James Okemwa Mohamed Osman.
Random Regressors and Moment Based Estimation Prepared by Vera Tabakova, East Carolina University.
Alternative Measures of Risk. The Optimal Risk Measure Desirable Properties for Risk Measure A risk measure maps the whole distribution of one dollar.
Evaluating Hypotheses. Context ➔ Motivation ' Estimating Hypothesis Accuracy ' Basics of Sampling Theory ' Difference in Error of Two Hypotheses ' Comparing.
Statistical Decision Making. Almost all problems in statistics can be formulated as a problem of making a decision. That is given some data observed from.
CF-3 Bank Hapoalim Jun-2001 Zvi Wiener Computational Finance.
2008 Chingchun 1 Bootstrap Chingchun Huang ( 黃敬群 ) Vision Lab, NCTU.
Chapter 5 Parameter estimation. What is sample inference? Distinguish between managerial & financial accounting. Understand how managers can use accounting.
Elements of Financial Risk Management Second Edition © 2012 by Peter Christoffersen 1 Simulating the Term Structure of Risk Elements of Financial Risk.
Ewa Lukasik - Jakub Lawik - Juan Mojica - Xiaodong Xu.
Simulating the value of Asian Options Vladimir Kozak.
Copyright © Cengage Learning. All rights reserved. 5 Joint Probability Distributions and Random Samples.
Basic Numerical Procedures Chapter 19 1 Options, Futures, and Other Derivatives, 7th Edition, Copyright © John C. Hull 2008.
Lehrstuhl für Informatik 2 Gabriella Kókai: Maschine Learning 1 Evaluating Hypotheses.
Montecarlo Simulation LAB NOV ECON Montecarlo Simulations Monte Carlo simulation is a method of analysis based on artificially recreating.
Chapter 3 Simple Regression. What is in this Chapter? This chapter starts with a linear regression model with one explanatory variable, and states the.
Analysis of Individual Variables Descriptive – –Measures of Central Tendency Mean – Average score of distribution (1 st moment) Median – Middle score (50.
Pricing an Option Monte Carlo Simulation. We will explore a technique, called Monte Carlo simulation, to numerically derive the price of an option or.
Point estimation, interval estimation Point estimation Desirable properties of point estimations Interval estimations Confidence intervals.
Bootstrap in Finance Esther Ruiz and Maria Rosa Nieto (A. Rodríguez, J. Romo and L. Pascual) Department of Statistics UNIVERSIDAD CARLOS III DE MADRID.
The Lognormal Distribution The lognormal distribution is an asymmetric distribution with interesting applications for modeling the probability distributions.
Bootstrap Bootstrapping applied to t-tests. Problems with t Wilcox notes that when we sample from a non-normal population, assuming normality of the sampling.
Chapter 7 Point Estimation of Parameters. Learning Objectives Explain the general concepts of estimating Explain important properties of point estimators.
Review of Statistical Inference Prepared by Vera Tabakova, East Carolina University.
Determining Sample Size. Determining the sample size depends on many things. It requires much more thought than any theoretical discussion portrays. What.
Chapter 21 Value at Risk Options, Futures, and Other Derivatives, 8th Edition, Copyright © John C. Hull
1 CSI5388: Functional Elements of Statistics for Machine Learning Part I.
VI. Regression Analysis A. Simple Linear Regression 1. Scatter Plots Regression analysis is best taught via an example. Pencil lead is a ceramic material.
Value at Risk. “What loss level is such that we are X % confident it will not be exceeded in N business days?” Value at Risk is an attempt to provide.
Non-Linear Models. Non-Linear Growth models many models cannot be transformed into a linear model The Mechanistic Growth Model Equation: or (ignoring.
Chapter 19 Monte Carlo Valuation. Copyright © 2006 Pearson Addison-Wesley. All rights reserved Monte Carlo Valuation Simulation of future stock.
VAR. Options, Futures, and Other Derivatives 6 th Edition, Copyright © John C. Hull The Question Being Asked in VaR “What loss level is such.
Sampling Design and Analysis MTH 494 Lecture-21 Ossam Chohan Assistant Professor CIIT Abbottabad.
1 Confidential – Highly Restricted Copula Representation of Joint Risk Driver Distribution Why Copulas? Copulas provide a method of joining together individual.
Review of Statistical Inference Prepared by Vera Tabakova, East Carolina University ECON 4550 Econometrics Memorial University of Newfoundland.
18.1 Options, Futures, and Other Derivatives, 5th edition © 2002 by John C. Hull Numerical Procedures Chapter 18.
© 2017 SlidePlayer.com Inc. All rights reserved.