Lecture 9: Random Walk Models Steven Skiena. skiena

Similar documents
Lecture 12: The Black-Scholes Model Steven Skiena. skiena

Monte Carlo Methods in Finance

3. Monte Carlo Simulations. Math6911 S08, HM Zhu

Quantitative Methods for Finance

Network Security. Chapter 6 Random Number Generation

Network Security. Chapter 6 Random Number Generation. Prof. Dr.-Ing. Georg Carle

An introduction to Value-at-Risk Learning Curve September 2003

General Sampling Methods

Lecture 25: Money Management Steven Skiena. skiena

FEGYVERNEKI SÁNDOR, PROBABILITY THEORY AND MATHEmATICAL

The normal approximation to the binomial

Generating Random Numbers Variance Reduction Quasi-Monte Carlo. Simulation Methods. Leonid Kogan. MIT, Sloan , Fall 2010

Probability density function : An arbitrary continuous random variable X is similarly described by its probability density function f x = f X

BINOMIAL OPTIONS PRICING MODEL. Mark Ioffe. Abstract

Financial Risk Management Exam Sample Questions/Answers

Introduction to the Monte Carlo method

Lecture 23: Pairs Trading Steven Skiena. skiena

Pricing Barrier Option Using Finite Difference Method and MonteCarlo Simulation

Financial Risk Management Exam Sample Questions

Multiple Choice: 2 points each

Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

Binomial lattice model for stock prices

The normal approximation to the binomial

Department of Mathematics, Indian Institute of Technology, Kharagpur Assignment 2-3, Probability and Statistics, March Due:-March 25, 2015.

Generating Random Variables and Stochastic Processes

Variance Reduction. Pricing American Options. Monte Carlo Option Pricing. Delta and Common Random Numbers

ARE STOCK PRICES PREDICTABLE? by Peter Tryfos York University

PITFALLS IN TIME SERIES ANALYSIS. Cliff Hurvich Stern School, NYU

Generating Random Variables and Stochastic Processes

CHAPTER 6: Continuous Uniform Distribution: 6.1. Definition: The density function of the continuous random variable X on the interval [A, B] is.

Monte Carlo simulations and option pricing

Notes on Continuous Random Variables

Java Modules for Time Series Analysis

Betting with the Kelly Criterion

The Performance of Option Trading Software Agents: Initial Results

QUANTITATIVE METHODS BIOLOGY FINAL HONOUR SCHOOL NON-PARAMETRIC TESTS

IEOR 6711: Stochastic Models I Fall 2012, Professor Whitt, Tuesday, September 11 Normal Approximations and the Central Limit Theorem

Chapter 3 RANDOM VARIATE GENERATION

Probability Calculator

SOLUTIONS: 4.1 Probability Distributions and 4.2 Binomial Distributions

Random variables, probability distributions, binomial random variable

Lecture 24: Market Microstructure Steven Skiena. skiena

Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur

ACTUARIAL MATHEMATICS FOR LIFE CONTINGENT RISKS

Dirichlet forms methods for error calculus and sensitivity analysis

Data Preparation and Statistical Displays

Section 6.1 Discrete Random variables Probability Distribution

Monte Carlo simulation techniques

Chapter 4: Vector Autoregressive Models

Important Probability Distributions OPRE 6301

5.1 Identifying the Target Parameter

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10

Nonparametric statistics and model selection

Probability and Random Variables. Generation of random variables (r.v.)

Pricing American Options on Leveraged Exchange. Traded Funds in the Binomial Pricing Model

Lecture 6: Option Pricing Using a One-step Binomial Tree. Friday, September 14, 12

Monte Carlo Estimation of Project Volatility for Real Options Analysis

Trading and Price Diffusion: Stock Market Modeling Using the Approach of Statistical Physics Ph.D. thesis statements. Supervisors: Dr.

6 Scalar, Stochastic, Discrete Dynamic Systems

Basics of Statistical Machine Learning

Hypothesis testing - Steps

Markov Chain Monte Carlo Simulation Made Simple

Lecture 5 : The Poisson Distribution

Should we Really Care about Building Business. Cycle Coincident Indexes!

EC3070 FINANCIAL DERIVATIVES

Tutorial on Markov Chain Monte Carlo

MATH 140 Lab 4: Probability and the Standard Normal Distribution

Integrated Resource Plan

Simple linear regression

Math 425 (Fall 08) Solutions Midterm 2 November 6, 2008

Overview of Monte Carlo Simulation, Probability Review and Introduction to Matlab

Volatility at Karachi Stock Exchange

Lecture 4: Futures and Options Steven Skiena. skiena

5. Continuous Random Variables

VALUATION OF FIXED INCOME SECURITIES. Presented By Sade Odunaiya Partner, Risk Management Alliance Consulting

Stephane Crepey. Financial Modeling. A Backward Stochastic Differential Equations Perspective. 4y Springer

Lecture 7: Continuous Random Variables

PCHS ALGEBRA PLACEMENT TEST

Statistiek I. Proportions aka Sign Tests. John Nerbonne. CLCG, Rijksuniversiteit Groningen.

Pricing complex options using a simple Monte Carlo Simulation

Chapter 3: DISCRETE RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS. Part 3: Discrete Uniform Distribution Binomial Distribution

2WB05 Simulation Lecture 8: Generating random variables

A successful market segmentation initiative answers the following critical business questions: * How can we a. Customer Status.

Lecture 6: Portfolios with Stock Options Steven Skiena. skiena

LDA at Work: Deutsche Bank s Approach to Quantifying Operational Risk

Coin Flip Questions. Suppose you flip a coin five times and write down the sequence of results, like HHHHH or HTTHT.

Betting on Volatility: A Delta Hedging Approach. Liang Zhong

1. (First passage/hitting times/gambler s ruin problem:) Suppose that X has a discrete state space and let i be a fixed state. Let

Examining the Relationship between ETFS and Their Underlying Assets in Indian Capital Market

The sample space for a pair of die rolls is the set. The sample space for a random number between 0 and 1 is the interval [0, 1].

A Simple Pseudo Random Number algorithm

This document is published at Feb. 2008, as part of a software package.

1 The Brownian bridge construction

Chapter 5 Discrete Probability Distribution. Learning objectives

Chapter 10. Key Ideas Correlation, Correlation Coefficient (r),

Institute of Actuaries of India Subject CT3 Probability and Mathematical Statistics

Point and Interval Estimates

The Heston Model. Hui Gong, UCL ucahgon/ May 6, 2014

Module 5: Multiple Regression Analysis

Transcription:

Lecture 9: Random Walk Models Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena

Financial Time Series as Random Walks J. P. Morgan s famous stock market prediction was that Prices will fluctuate. Bachelier s Theory of Speculation in 1900 postulated that prices fluctuate randomly. Indeed, simple random processes can generate time series which closely resemble real financial time series.

Why Random Price Changes? Random price movements makes sense in a world where Most price changes result from temporary imbalances between buyers and sellers, Stronger price shocks are inherently unpredictable, and The efficient market hypothesis, where the current price of a stock reflects all information about it. If the next price movement was predictable, the market would have previously predicted it, leaving only random fluctuations.

Monte Carlo Methods Monte Carlo methods use statistics gathered from random sampling to model and simulate a complicated distribution. Generating random walks with the properties of financial time series and analyzing the resulting price distributions is a powerful technique in options pricing.

Models and Randomness Models are useful when they have predictive power. Simple models which capture large-scale phenomena are useful. The model that the earth is flat is a very useful model. If the future is the random selection of one sequence of events from a probability space, our focus should revolve around modeling the distribution more so than identifying the ultimate future path. Random walk models give us a simple but powerful tool to model financial price distributions.

Binomial Random Walks In a simple discrete random walk model, each step we move a distance of 1 either up or down, with the probability p of an upward move and 1 p of a downward move. The path we take as a function of such moves defined a random walk, and is akin to flipping a biased coin. The probability that we get exactly h heads and n h tails with a coin that comes up heads with probability p is Pr(h, n,p) = ( n h)p h (1 p) n h Closed forms eliminate the need to simulate random walks for computing the underlying distribution, but typically exist only for measuring very simple properties of very simple walk models.

Mean and Variance The expected number of heads on a binomial distribution is np, with variance np(1 p). For an unbiased coin (p = 0.5), the expected difference between heads and tails is 0, but the expected absolute difference between heads and tails is O( n).

Additive Random Walks A time series {V t } is a additive random walk if V t = V t 1 + a t where a t is a random variable. The binomial walk above is an example of an additive walk. Selecting a t from a normal distribution defines a continuous random walk model. Price series that tend to increase with time can be modeled as a random walk with drift: V t = µ + V t 1 + a t

Multiplicative Random Walks A time series {V t } is a multiplicative random walk if V t = a t V t 1 where a t is a random variable. The simplest discrete case is when a t = c with probability p and a t = 1/c with probability (1 p). Up-moves still cancel down-moves, but the changes are fixed percentages instead of fixed values, so they stay equally significant as V t grows.

Logarithmic Returns Observe that V t = a t V t 1 ln V t = ln a t + ln V t 1 Additive random walks make sense to model a financial time series only when modeling changes in the log price or returns, since otherwise the impact of {a t } will diminish with time.

Caveats of Random Walk Models Random walk models of prices does not make sense if you believe in technical analysis, where it assume the price trajectory to this point offers insight into the future. One downside of conventional random walk models is that they predict returns as being normally or log-normally distributed. Such distributions tend to underestimate the frequency of extreme events. Still, random walks can be very useful in modeling financial risks and returns.

Applications of Random Walks Estimating the probability distribution for the price of a stock at a given future time t is critical to pricing certain options. This probability distribution can be modeled as the distribution of positions after f(t) steps of a random walk. Simulations of random walks enable one to compute the probabilities of more complicated events... Suppose you want to know the probability that a stock will hit a given price at some point between now and time t, or what is the expected high price reached over this interval.

Bankruptcy Prediction Suppose you want to know the probability a company will go bankrupt at some point between now and time t. We can define a company as bankrupt, say, when its capitalization falls to less than its debt minus its assets. Random walk models can simulate the fluctuations in stock price and debt-levels. The probability of bankruptcy is estimated by the fraction of simulated runs ending in doom.

Generating Random Numbers Simulating random walks require a source of random numbers, but truly random numbers cannot be produced by a deterministic computer. The accuracy of a simulation depends on generating truly pseudo-random numbers. Would a random walk alternating up and down look like a price series? Statistical tests can measure the validity of a random number generator, but library functions should be good until you exceed the period where they start to repeat.

Linear Congruential Generators Linear congruential generators are a reliable source of random numbers, where r n = (ar n 1 + c) mod m for appropriate constants a, c, and m. 00 0 1 2 3... 00 0 1 2 3... 34 33 35.. 36 00 0 1 2 20 16 19 18 17 3 4 6... 5... 3 2 1.0 00..... 3 2 1.0 00.. 00 0 1 2 3... 00 0 1 2 3...... 3 2 1.0 00..... 3 2 1.0 00.. 00 0 1 2 3... 00 0 1 2 3... 18 17 16...... 3 2 1.0 00.. They generate random numbers by the same principle as a roulette wheel!

Non-Uniform Random Number Generation Complications exist when generating numbers from a given, non-uniform distribution using a uniform generator. How can you select random points in a disk? Selecting the radius and angle either uniformly or normally gives the wrong distribution! The accept-reject method generates uniform points over a volume, and discards all points outside the target region.

Generating Normal Variables Random numbers can be generated for any distribution D by mapping uniform random numbers to the corresponding value on the inverse cummulative distribution function of D. But performing the interpolation incurs some cost in time and accuracy...

The Box-Muller Method A clever, efficient method to constuct random normal numbers relies on a polar transformation. Let x 1 and x 2 be independent, uniformly generated (0,1] random variables. Then y 1 = 2 lnx 1 cos(2πx 2 ), and y 2 = 2 ln x 1 sin(2πx 2 ) are both independent and normally distributed!

Generating Corrolated Random Sequences Suppose we are generating two random time series, representing the price of Google and Yahoo stock. These sequences are not independent but are correlated with a coefficient of say ρ = 0.8 Let X 1 and X 2 be two uncorrelated random sequences. Define Y 1 = ρx 1 + 1 ρ 2 X 2. Then sequences X 1 and Y 1 have a correlation of ρ.

Cholesky factorization can be used to generate d random sequences with a specified pairwise correlation matrix.