13
Monte-carlo and Bootstrapping Fin250f: Lecture 9 Spring 2010 Brooks, chapter 12.1-12.4

Monte-carlo and Bootstrapping

Embed Size (px)

DESCRIPTION

Fin250f: Lecture 9 Spring 2010 Brooks, chapter 12.1-12.4. Monte-carlo and Bootstrapping. Outline. Computer simulation Monte-carlo Bootstrapping. Why Simulations?. Small samples Complex expressions (no analytics) Ease of use (hard to get analytics). Examples from Finance. - PowerPoint PPT Presentation

Citation preview

Page 1: Monte-carlo and Bootstrapping

Monte-carlo and Bootstrapping

Fin250f: Lecture 9Spring 2010

Brooks, chapter 12.1-12.4

Page 2: Monte-carlo and Bootstrapping

Outline

Computer simulationMonte-carloBootstrapping

Page 3: Monte-carlo and Bootstrapping

Why Simulations?

Small samplesComplex expressions (no analytics)

Ease of use (hard to get analytics)

Page 4: Monte-carlo and Bootstrapping

Examples from Finance

Risk management Value-at-Risk/Stress testing

Option pricingTrading rules and data snooping

Stationarity testing

Page 5: Monte-carlo and Bootstrapping

Monte-carlo procedure

Postulate "data generating process" DGP

Simulate with random number generator y = b*x + e

Estimate bStore distributionExamples: simplemc.m, snooprule.m

Page 6: Monte-carlo and Bootstrapping

Random Number Generators

Fake random numbersRandom seed to startMatlab and seeds

newSeed.m

Page 7: Monte-carlo and Bootstrapping

Bootstrapping

Use actual dataDraw new set of data independentlyStock returns

Write on paper Throw in urn Draw returns at random with replacement

Sample.mgenRandomWalk.m

Page 8: Monte-carlo and Bootstrapping

Bootstrapping a Regression

Two methodsMethod 1

Resample (y,x) pairsMethod 2

Resample e = y-bx residuals Then regenerate y from scrambled e

Page 9: Monte-carlo and Bootstrapping

Power of the Bootstrap

No distributional assumptionsData speaks for itself

Page 10: Monte-carlo and Bootstrapping

Problems with Bootstrap

Outliers in the dataToo little dataNonstationary dataNonindependent dataMax's and mins

Page 11: Monte-carlo and Bootstrapping

Antithetic Sampling

If distribution is symmetric about zero Simulate with bootstrap Randomly flip sign

Like having twice as much data

Page 12: Monte-carlo and Bootstrapping

Bootstrap Examples

bootcapm.mbootquantile.m

Page 13: Monte-carlo and Bootstrapping

Monte-carlo Examples

mclinearsnoop.m In sample/out sample

snooprule.m Trading rule snooping Best rules out of a group

mcmse.m