on trades, volume, and the martingale estimating function ... · on trades, volume, and the...

33
On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich Hubalek (Joint work with Petra Posedel) Johann Radon Institute for Computational and Applied Mathematics (RICAM) Special Semester on Stochastics with Emphasis on Finance Concluding Workshop Linz, December 2–4, 2008.

Upload: others

Post on 25-Oct-2019

22 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

On Trades, Volume, and the MartingaleEstimating Function Approach for Stochastic

Volatility Models with Jumps

Friedrich Hubalek (Joint work with Petra Posedel)

Johann Radon Institute for Computational and AppliedMathematics (RICAM)

Special Semester on Stochastics with Emphasis on FinanceConcluding Workshop

Linz, December 2–4, 2008.

Page 2: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Our papers

I Friedrich Hubalek and Petra Posedel, Joint analysis andestimation of stock prices and trading volume inBarndorff-Nielsen and Shephard stochastic volatility models,arXiv:0807.3464 (July 2008)

I Friedrich Hubalek and Petra Posedel, Asymptotic analysis fora simple explicit estimator in Barndorff-Nielsen and Shephardstochastic volatility models, arXiv:0807.3479 (July 2008)

I Friedrich Hubalek and Petra Posedel, Asymptotic analysis foran optimal estimating function for Barndorff-Nielsen-Shephardstochastic volatility models, Work in progress.

Page 3: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

The Barndorff-Nielsen and Shephard stochastic volatilitymodels with jumps

I Logarithmic returns (discounted)

dX (t) = (µ + βV (t−))dt +√

V (t−)dW (t) + ρdZλ(t)

I Instantaneous variance

dV (t) = −λV (t−)dt + dZλ(t)

W . . . Brownian motion, Z . . . subordinator,Zλ(t) = Z (λt) [. . . ]

I Parameters: µ ∈ R. . . linear drift, β ∈ R. . . Ito drift,ρ ∈ R. . . leverage, λ > 0. . . acf parameter.

Page 4: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Analytical tractability

I (X (t),V (t), t ≥ 0). . .Markov, affine model (in continuoustime)

I simple Riccati-type equations for characteristic resp. momentgenerating function

I general solution (up to one integral)

I Γ-OU and IG-OU completely explicitly in terms of elementaryfunctions

Exploited in

I Option pricing (Nicolato and Venardos)

I Portfolio optimization (Benth et al.)

I Minimum entropy martingale measure (Benth et al.,Rheinlander and Steiger)

I Semimartingal Esscher transform (Hubalek and Sgarra)

I . . .

Page 5: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

But statistical inference seems difficult! Bayesian, MCMC— computer intensive approaches!

I Barndorff-Nielsen O.E., Shephard N. (2001), Non-GaussianOrnstein-Uhlenbeck-based models and some of their uses infinancial economics.

I Roberts G.O., Papaspiliopoulos O., Dellaportas P. (2004),Bayesian inference for non-Gaussian Ornstein-Uhlenbeckstochastic volatility processes,

I J.E. Griffin, M.F.J. Steel (2006), Inference with non-GaussianOrnstein-Uhlenbeck processes for stochastic volatility

I Matthew P.S. Gandera and David A. Stephens (2007),Stochastic volatility modelling in continuous time with generalmarginal distributions: Inference, prediction and modelselection

I Sylvia Fruhwirth-Schnatter and Leopold Sogner (2007?),Bayesian estimation of stochastic volatility models based onOU processes with marginal Gamma laws.

Page 6: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Discrete observations

Grid ti = iδ, i ≥ 0, fixed width ∆ > 0, discrete time observations

Xi = X (ti )− X (ti−1), Vi = V (ti )

Discrete dynamics

Xi = µ∆ + βYi +√

YiWi + ρZi , Vi = eλ∆Vi−1 + Ui

Auxiliary quantities (no discretization error!)

Zi = Zλ(ti )− Zλ(ti−1), Ui =

∫ ti

ti−1

e−λ(ti−s)dZλ(s)

and

Yi =

∫ ti

ti−1

V (s−)ds, Wi =1√Yi

∫ ti

ti−1

√V (s−)dW (s).

(Xi ,Vi , i ∈ N). . .Markov affine model (in discrete time)

Page 7: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Construction and moments

Two starting points

I L . . . infinitely divisible distribution on R+ ⇒ subordinator Z

with Z (1)d= L ⇒ (OU-L)

I D . . . self-decomposable distribution on R+ ⇒ stationary

Ornstein-Uhlenbeck process V with V (t)d= D ⇒ (D-OU)

Moments of D resp. L → all (mixed, conditional, unconditional)integer moments by simple algebra (multivariate Faa di Brunoformula resp. Bell polynomials, practical calculations best byrecursions!)

E [X ni ],E [V n

i ],E [Xmi V n

i ],E [X `i V m

i V ni−1],

E [X ni |Vi−1],E [V n

i |Vi−1],E [Xmi V n

i |Vi−1], . . .

⇒ method of moments estimation

Page 8: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Various methods of moments

I Method of moments — MM (Pearson 1893)

I Generalized method of moments — GMM (Hansen 1982)

I Simulated method of moments — SMM (. . . )

I Efficient method of moments — EMM (Gallant and Tauchen1996),

I . . .

I [Methods of moments for weak convergence]

Page 9: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Estimation: Setting and problems

Grid, fixed width, horizon (number of observations) going toInfinity for asymptotics! (Several other possibilities. . . )

I Rich, well-informed financial institutions and traders observeand trade in continous-time

I Poor, academic statisticians and econometers do inferencewith daily (or less frequent!) observations

I [But: High-frequence analyses . . . ]

Discrete time observations ⇒ Vi not observed, BNS becomesnon-Markovian, (a hidden Markov model)!

Page 10: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Remedies

I Substitute unobserved Vi 7→ model-implied Vi from optiondata, i.e., joint analysis of P and Q. Cf.

I Jun Pan, The Jump-Risk Premia Implicit in Options: Evidencefrom an Integrated Time-Series Study (2002).

(GMM, realistic, complicated, many assumptions.)Also our long term goal!

I Ignore the problem. Purely theoretical study, exhibitsmethodology, provides an upper bound for the accuracy forthis type of methods. See our first paper!

I NOW: Substitute unobserved Vi by an observable proxy,volume or number of trades.

Page 11: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Prices, volatility, trading intensity

Our incentive

I Carl Lindberg, The estimation of the Barndorff-Nielsen andShephard model from daily data based on measures of tradingintensity. Applied Stochastic Models in Business and Industry24 (4), 2008.

Some earlier/classical references

I J. M. Karpoff, The relation between price changes and tradingvolume: a survey. JFQA 22, 1987.

I R.P.E. Gallant, A.R. and G. Tauchen, Stock prices andvolume, Rev.Fin.Stud. 5:199–242, 1992.

I K.G. Jones, C. and M.L. Lipson, Transactions, volume andvolatility. Rev.Fin.Stud. 7:631–651, 1994.

I G.E. Tauchen and M.Pitts, The Price Variability-VolumeRelationship on Speculative Markets Econometrica 51,(1983).

Page 12: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

The new variant/interpretation of the BNS models

Bold simplification/assumption: Instantaneous variance IS a(constant) multiple of the trading volume resp. number of trades.Introduce a proportionality parameter σ > 0. [. . . ]

I Logarithmic returns

dX (t) = (µ + βV (t−))dt + σ√

V (t−)dW (t) + ρdZλ(t)

I Trading volume (or number of trades)

dV (t) = −λV (t−)dt + dZλ(t)

W . . . Brownian motion, Z . . . subordinator,Zλ(t) = Z (λt) [. . . ]

I Parameters: µ ∈ R. . . linear drift, β ∈ R. . . Ito drift,σ > 0. . . proportionality, ρ ∈ R. . . leverage, λ > 0. . . acfparameter.

Page 13: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

What about maximum likelihood ?

I Practical issue: Bivariate Markov, known transition probability(in terms of characteristic resp. cumulant function) ⇒ invertfor each observation in each iterations [Possible remedies,approximate inversions, LeCam’s trick,. . . ]

I Theoretical issue: For infinite activity BDLP (e.g., IG-OU)fine, for finite activity (e.g., Γ-OU with exponential compoundPoisson BDLP)

Pλ[V1 = ve−λ∆|V0 = v ] = e−λ∆ (no jump)

⇒ No dominating sigma-finite measure! ⇒ Usual MLframework does not apply!

I Generalized ML (Kiefer and Wolfowitz 1956) [. . . ]I Much better than

√n by ad hoc (?) methods! [. . . ]

Page 14: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Martingale estimating functions

E.g., Γ(ν, α)-OU: Parameter vector (3 + 4 = 7)

θ = (λ, ν, α, µ, β, σ, ρ)

Moments

Ξi = (Vi ,ViVi−1,V2i ,Xi ,XiVi−1,XiVi ,X

2i ), Υi = (Vi−1,V

2i−1)

Martingale estimating function

Gn(θ) =1

n

n∑i=1

[Ξi − f (Vi−1, θ)] , f (v , θ) = Eθ[Ξ1|V0 = v ]

Estimator: Solve Gn(θ) = 0 ! Sample moments

ξn =1

n

n∑i=1

Ξi , υn =1

n

n∑i=1

Υi ,

Page 15: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

The explicit estimator

Unique solution exists on Cn ={ξ2n − ξ1

nυ1n > 0, υ2

n − (υ1n)

2 > 0}

and is given by

γn = (ξ2n − ξ1

nυ1n)/(υ2

n − (υ1n)

2); ζn =γnυ

1n − ξ1

n

−1 + γnλn = − log(γn)/∆;

ηn = − (−1 + γ2n)(υ

1n)

2 − γ2nυ

2n + ξ3

n

−1 + γ2n

εn = (1− γn)/λn;

βn =(ξ5

n − υ1nξ

4n)

εn(υ2n − (υ1

n)2)

;

ρn =(− βnεn(−(υ1

n)2 + εnλn(ηn + (υ1

n)2 − υ2

n) + υ2n)− ξ1

nξ4n + ξ6

n

)/(2εnηnλn);

µn =(−∆λnρnζn − βn(∆ζn + εn(−ζn + υ1

n)) + ξ4n

)/∆;

σn =√

an/bn; bn = ∆ζn + εn(−ζn + υ1n);

an = λ−1n

[4βn(−∆ + εn)ηnλnρn + β2

n(−2∆ηn + εn(ηn(2 + εnλn)+εnλn((υ

1n)

2 − υ2n))) + λn(−2∆ηnλnρ

2n − (ξ4

n)2 + ξ7

n)];

Structure: First λn, νn, αn are simple AR(1) estimators, then µn, βn, ρn

from a simple linear system, finally σn from a quadratic equation.

Page 16: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Consistency

The basic (and only!) assumption: V0 self-decomposable rv on R+

withE [V n

0 ] < ∞ ∀n ∈ N.

The basic convergence result

1

n

n∑i=1

X pi V q

i V ri−1

a.s.−→ E [X p1 V q

1 V r0 ] ∀p, q, r ∈ N.

Remark: Ergodicity vs. simple proof. Martingale differences ⇒uncorreclated ⇒ elementary convergence result.

TheoremWe have P(Cn) → 1 and the estimator θn is consistent on Cn,namely

θnICn

a.s.−→ θ0

as n →∞.

Page 17: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Asymptotic normality — delta method

I Explicit estimator ⇒ Delta-Method applies: Sample moments

(ξn, υn)D−→ N(0,Σ)

estimatorθn = h(ξn, υn)

result √n(θn − θ0)

D−→ N(0,T ) T = JΣJ>

Jacobian J = ∇h. Messy.I Better: General framework (implicit function theorem)

I Michael Sørensen, Statistical inference for discretely observeddiffusions, Lecture Notes, Berlin, 1997.

I Michael Sørensen, On asymptotics of estimating functions,Brazil. J. Prob. Stat. (1999).

Also when estimating functions Gn(θ) explicit, but estimatorθn is not [. . . optimal estimating functions].

Page 18: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Asymptotic normality — general framework

Basic result: asymptotic normality of estimating functions

1√nGn(θ0)

D−→ N(0,Λ), Λ = E [Var[Ξ1]|V0]

Proof by multivariate martingale central limit theorem.

TheoremThe estimator θnICn is asymptotically normal, namely

√n[θn − θ0

] D−→ N(0,T ), T = A−1Λ(A−1)>

as n →∞, with Jacobian A = E [∇f (V0, θ0)].

I Recall f (v , θ) = Eθ[Ξ1|V0 = v ] and E = Eθ0 .

I Matrices A and Λ simple, explicit, (slightly lengthy).

Page 19: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Finite sample performance — the controlled simulationexperiment

Γ-OU: Volume V (t) ∼ Γ(ν, α) stationary, BDLP Z compoundPoisson, intensity λ exponential jumps with mean 1/α.

I Parameter values (annual, 250 trading days)

ν = 6.17, α = 1.42, λ = 177.95,

β = −0.015, ρ = −0.00056, µ = 0.435, σ = 0.087.

I BDLP: 4.4 jumps per day (interesting pieces of newsarriving?), each jump with mean and stddev 0.704.

I Volume (in Mio): Stationary mean 4.35, variance 0.033 ⇒Volatility ≈ 18%. ACF half-life ≈1 day.

I Log returns: Mean -6.5%, volatility 18%.

I Experiments: n=2500 (10 years), n = 8000 (32 years,theoretical check).

Page 20: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Simulated paths 1

Volume

0 500 1000 1500 2000 25000

5

10

15

τ t

Volatility

0 500 1000 1500 2000 25000.05

0.1

0.15

0.2

0.25

0.3

0.35

Volatili

ty t

Page 21: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Simulated paths 2

Returns

0 500 1000 1500 2000 2500−0.04

−0.03

−0.02

−0.01

0

0.01

0.02

0.03

0.04

0.05

X t

Page 22: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Asymptotic performance

I True values θ = (ν, α, λ, β, ρ, µ, σ)

θ = (6.17, 1.42, 177.95,−0.015,−0.00056, 0.435, 0.087)

I Asymptotic stddev s/√

n

s = (12.0, 2.8, 440, 9.0, 2.6, 0.066, 0.007)

I Asymptotic correlation r

r =

1 0.9 0.6 0.007 0.05 0.006 −0.0030.9 1 0.6 0.007 0.05 0.01 −0.0040.6 0.6 1 0.01 0.09 −0.0006 0.00

0.007 0.008 0.01 1 −0.8 −0.01 0.030.05 0.05 0.09 −0.8 1 0.01 −0.50.006 0.01 −0.0006 −0.01 0.01 1 −0.005−0.003 −0.004 0.00 0.03 −0.5 −0.005 1

I Big r in AR(1)-part! ⇒ Optimal estimating function.

Page 23: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Histograms: m = 1000 replications, each n = 2500observations, volume parameters

5.5 6 6.5 70

0.2

0.4

0.6

0.8

1

1.2

1.4

1.6

1.8nu

1.2 1.3 1.4 1.5 1.6 1.70

1

2

3

4

5

6

7

8alpha

150 160 170 180 190 200 2100

0.005

0.01

0.015

0.02

0.025

0.03

0.035

0.04

0.045

0.05lambda

Page 24: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Histograms : m = 1000 replications, each n = 2500observations, return parameters

−0.25 −0.2 −0.15 −0.1 −0.05 0 0.05 0.1 0.15 0.20

1

2

3

4

5

6

7

8beta

−10 −8 −6 −4 −2 0

x 10−4

0

500

1000

1500

2000

2500

3000

3500rho

−0.4 −0.2 0 0.2 0.4 0.6 0.8 1 1.20

0.5

1

1.5

2

mu

0.082 0.084 0.086 0.088 0.09 0.092 0.0940

50

100

150

200

250

300

sigma

Page 25: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

A first empirical analysis — data

Closing price and volume

I IBM: March 23, 2003 – March 23, 2008 [NYSE], 1259observations

I MSFT: April 11, 2003 – Feb 4, 2008 [Nasdaq], 1212observations

Page 26: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

IBM dataPrice

2004 2005 2006 2007 200870

80

90

100

110

120

130

Volume

2004 2005 2006 2007 2008

2

4

6

8

10

12

14

16

18

20

Page 27: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

MSFT dataPrice

2004 2005 2006 2007 200820

22

24

26

28

30

32

34

36

38

Volume

2004 2005 2006 2007 20080

0.1

0.2

0.3

0.4

0.5

0.6

0.7

Page 28: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Estimation results

IBM stddevν 6.17 0.339α 1.42 0.079

λ 177.95 12.509µ 0.435 0.254

β -0.015 0.072σ 0.087 0.002ρ -0.00056 0.0002

MSFT stddevν 4.496 0.247α 67.895 3.773

λ 201.99 14.420µ 0.4162 0.265

β -0.464 5.059σ 0.81 0.018ρ -0.025 0.013

Interpretation: [. . . ]

Page 29: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Unconditional return distributionsTheoretical BNS (dashed) versus kernel estimates (solid)

−0.1 −0.08 −0.06 −0.04 −0.02 0 0.02 0.04 0.060

5

10

15

20

25

30

35

40

45

−0.15 −0.1 −0.05 0 0.05 0.10

5

10

15

20

25

30

35

40

45

Log densities

−8 −6 −4 −2 0 2 4 6−25

−20

−15

−10

−5

0

−8 −6 −4 −2 0 2 4 6−35

−30

−25

−20

−15

−10

−5

0

Page 30: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Autocorrelation function (volume)

0 5 10 15 200

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1Autocorrelation for variance

ACF IBMestimated theoretical ACF

0 5 10 15 200

0.2

0.4

0.6

0.8

1

1.2Autocorrelation for variance

ACF MSFTestimated theoretical ACF

⇒ BNS with Superposition of OU-processes [. . . ]

Page 31: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Model fit — residual analysis

I Volume: Usual (and exact) AR(1) analysis, though with funnyinnovations (Ui ) iid,

Vi − e−λ∆ = Ui , Ui =

∫ ti

ti−1

e−λ(ti−s)dZλ(s)

I Returns: Not exact (?), Euler approximation

. . .

Page 32: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Further developments and directions 1

Superposition

V (t) = w1V1(t)+· · ·+wmVm(t), dVi (t) = −λiVi (t−)dt+dZi (λi t)

(X ,V1, . . . ,Vm) Markov affine ⇒ Observations?

I V1. . . common factor (market volume,. . . )

I V2. . . idiosyncratic factor (asset volume,. . . )

I V3. . . ? (similar asset? . . . ?)

Page 33: On Trades, Volume, and the Martingale Estimating Function ... · On Trades, Volume, and the Martingale Estimating Function Approach for Stochastic Volatility Models with Jumps Friedrich

Further developments and directions 2

I Number of trades (Lindberg!)I Optimal martingale estimating functions

Gn(θ) =n∑

i=1

B(θ, Vi−1) [Ξi − f (θ, Vi−1)) f (θ, v) = Eθ[Ξi |Vi−1 = v ]

I Comparison with ML and related methods (for infinite activity)

I Comparison with GMM

I Hybrid approaches

I Other moments (trigonometric, c.f., Singleton, . . . )

I Other time-scales (!!!)

I Integrated analysis for asset and derivatives