課件計量經(jīng)濟學(xué)1-9英文_第1頁
課件計量經(jīng)濟學(xué)1-9英文_第2頁
課件計量經(jīng)濟學(xué)1-9英文_第3頁
課件計量經(jīng)濟學(xué)1-9英文_第4頁
課件計量經(jīng)濟學(xué)1-9英文_第5頁
已閱讀5頁,還剩21頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)

文檔簡介

1、Introductory Econometrics for Finance Chris Brooks 20021Chapter 10Simulation MethodsIntroductory Econometrics for Finance Chris Brooks 20022Simulation Methods in Econometrics and FinanceThe Monte Carlo MethodThis technique is often used in econometrics when the properties of a particular estimation

2、method are not known.Examples from econometrics include:Quantifying the simultaneous equations bias induced by treating an endogenous variable as exogenous.Determining the appropriate critical values for a Dickey-Fuller test.Determining what effect heteroscedasticity has upon the size and power of a

3、 test for autocorrelation.Simulations are also often extremely useful tools in finance, in situations such as:The pricing of exotic options, where an analytical pricing formula is unavailable.Determining the effect on financial markets of substantial changes in the macroeconomic environment.“Stress-

4、testing” risk management models to determine whether they generate capital requirements sufficient to cover losses in all situations.Introductory Econometrics for Finance Chris Brooks 20023Conducting Simulations ExperimentsIn all of the above examples, the basic way that such a study would be conduc

5、ted (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

6、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

7、 be sensitive to “odd” combinations of random number draws.Introductory Econometrics for Finance Chris Brooks 20024Random Number GenerationWe generate numbers that are a continuous uniform(0,1) according to the following recursion:yi+1 = (a yi + c) modulo mthen Ri+1 = yi+1 / m for i = 0, 1,.,Tfor T

8、random draws, where y0 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 numbersThe U(0,1) draws can be

9、transformed into other standard distributions (e.g normal, t, etc).Introductory Econometrics for Finance Chris Brooks 20025Variance Reduction TechniquesThe sampling variation in a Monte Carlo study is measured by the standard error estimate, denoted Sx:where var(x) is the variance of the estimates o

10、f the quantity of interest over the N replicationsIn 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 techniqueTwo of the intuitively simplest and mo

11、st widely used methods are antithetic variates and control variates.Introductory Econometrics for Finance Chris Brooks 20026Antithetic VariatesOne 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 pro

12、bability 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 con

13、ducted using random draws ut, an additional replication with errors given by - ut is also used.Suppose that the average value of the parameter of interest across 2 sets of Monte Carlo replications is given bywhere x1 and x2 are the average parameter values for replications set 1 and 2 respectively.I

14、ntroductory Econometrics for Finance Chris Brooks 20027Antithetic Variates (contd)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. Introdu

15、ctory Econometrics for Finance Chris Brooks 20028Control VariatesThe 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 prope

16、rties 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 20029Control Variates (contd)Denoting the simulation estimates of x and y using hats, a new esti

17、mate 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 Asi

18、an option, the control variate approach would be given byPA* = ( ) + PBSIntroductory Econometrics for Finance Chris Brooks 200210Recall, that the equation for a Dickey Fuller test applied to some series yt is the regressionyt = yt-1 + utThe test is one of H0: = 1 against H1: 1. The relevant test sta

19、tistic is given byUnder 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 Valu

20、es for a Dickey-Fuller TestIntroductory Econometrics for Finance Chris Brooks 200211An Example of the use of Monte Carlo Simulation in Econometrics: Deriving a Set of Critical Values for a Dickey-Fuller Test (contd)The simulation would be conducted in the following steps:Construct the data generatin

21、g process under the null hypothesis that is, obtain a series for y that follows a unit root process. This would be done byDraw a series of length T, the required number of observations, from a normal distribution. This will be the error series, so that ut N(0,1).Assume a first value for y, i.e. a va

22、lue for y at time t = 0.Construct the series for y recursively, starting with y1, y2, and so on:y1 = y0 + u1y2 = y1 + u2y3 = y2 + u3 yT = yT-1 + uTIntroductory Econometrics for Finance Chris Brooks 200212An Example of the use of Monte Carlo Simulation in Econometrics: Deriving a Set of Critical Valu

23、es for a Dickey-Fuller Test (contd)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 valu

24、e will be the 5th percentile of this distribution.Introductory Econometrics for Finance Chris Brooks 200213An Example of how to simulate the Price of a Financial OptionAlthough the example presented here is for a simple plain vanilla call option, the same basic approach would be used to value an exo

25、tic 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.Dra

26、w 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 ut N(0,1).Form a series of observations of length T on the underlying asset.Introductory Econometrics for Finance Chris Brooks 200214An Example o

27、f how to simulate the Price of a Financial Option (contd)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, PT K, the option expires in the money, and has value on that date equal to PT - K, which should be d

28、iscounted 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.Introd

29、uctory Econometrics for Finance Chris Brooks 200215Bootstrapping 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 alternativ

30、e 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 bu

31、t the former involves sampling from real data rather than creating new data.Suppose we have a sample of data, y = y1, y2, ., yT 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 sa

32、mples 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 200216Bootstrapping (contd)Advantage of bootstrapping: it allows the researcher to make inferences without making strong distributional

33、 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 stat

34、istic 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 200217An Example of the Use of Bootstrapping in a Regressio

35、n ContextConsider a standard regression model, y = X + u .The regression model can be bootstrapped in two ways.1. Resample the DataTake the data, and sample the entire rows corresponding to observation i together.The steps would then be1. Generate a sample of size T from the original data by samplin

36、g 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 Economet

37、rics for Finance Chris Brooks 200218An Example of the Use of Bootstrapping in a Regression Context (contd)The only random influence in the regression is the errors, u, so why not justbootstrap from those?2. Resampling from the ResidualsThe steps are1.Estimate the model on the actual data, obtain the

38、 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

39、stage 2, and repeat a total of N times.Introductory Econometrics for Finance Chris Brooks 200219Situations where the Bootstrap will be IneffectiveIf 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 whi

40、ch the sampling is done are independent. This would not hold, for example, if the data were autocorrelated.Introductory Econometrics for Finance Chris Brooks 200220An Example of the Use of Bootstrapping to Calculate Capital Risk Requirements (Hsieh, 1993)Financial MotivationAn important use of boots

41、trapping 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 = $100mHow do we calculate, say, the amount of capital required to cover 95% of the da

42、ily 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 J

43、apanese yen (JY), and the Swiss franc (SF). Introductory Econometrics for Finance Chris Brooks 200221An 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 u

44、sed 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.Introducto

45、ry Econometrics for Finance Chris Brooks 200222An 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 replacemen

46、t from these standardised residuals.From these, we can simulate a set of future paths for and then yt by bootstrapping from vt= ( ).Hsieh simulates the future path of returns for 180 days after the end of the estimation sample.Introductory Econometrics for Finance Chris Brooks 200223Calculating the

47、Capital Risk RequirementsIn each case, the maximum drawdown (loss) can be calculated over a given holding period byQ= (P0 - P1 ) number of contractswhere P0 is the initial value of the position, and P1 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.The maximum loss is calculated assuming holding periods of 1, 5, 10, 15, 20, 25, 30, 60, 90 and 180 d

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論