21
1 An introduction to Taiwan market by using Markov model • models • examples • the kernel density estimation

1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

  • View
    218

  • Download
    2

Embed Size (px)

Citation preview

Page 1: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

1

An introduction to Taiwan market

by using Markov model• models • examples • the kernel density estimation

Page 2: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

2

股票

價格

ρ + (x)

ρ - (x)

ρ + (x1)

ρ - (x1)

ρ + (x2)

ρ - (x2)

第一天

收盤價

第二天

收盤價

第三天

收盤價

紅線 :St

黑線 :Xt

Page 3: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

3

Markov model {Xn}

)}(or )(:0inf{

where

),,(),(

)(),( 1

xxSt

dyxpdyxp

dySPdyxp

t

dc

x

Page 4: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

4

St :表示沒有上下限的股票價格且它的 generator 是

xxb

xxL

)( )(2

12

22 +σ

Page 5: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

5

股票價格

第一天收盤價

)(x

)(x

開盤價 x

Xt

St

Page 6: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

6

股票價格

)(x

)(x

開盤價 xXt St

第一天收盤價

Page 7: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

7

)(x

)(x

開盤價 xSt≡Xt

第一天收盤價

股票價格

Page 8: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

8

Examples

• Binary model (Cox-Ross-Rubinstein)

.)()(

)())(,(

,)()(

)())(,(

xx

xxxxp

xx

xxxxp

Page 9: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

9

Binary model

• {Xn} is a martingale

• If the state space of {Xn} is R+,then lim Xn =0.

• If the state space of {Xn} is R,then {Xn} is recurrent.

Page 10: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

10

European call

)(1|1

),())(()())(()(

Then

.)()(Let

nnNnN

nNxnN

n XfTrFXfErC

xxfxxfxTf

Kxxf

Page 11: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

11

.ˆ clear that isIt .)1(ˆ fact,In

)(ˆ)(ˆ)(ˆ

))(ˆ,(,)(ˆ)(ˆ

)(ˆ))(ˆ,(

by ˆ Define

,0for )1()1()(ˆ),1()1()(ˆLet

))(,(,))(,(

by define ),,0(Let

,0for )1()(,)1()(let ,0,0Fix

1

11

xXEXrX

xx

xxxxp

xx

xxxxp

X

xaxrxbxrx

ab

rbxxp

ab

arxxp

Xbr

xxaxxbxba

xnn

n

n

n

Example

Page 12: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

12

nN

j

jnNjjnNjnN

nnNxnN

n

KbaxppjjnN

nNr

n,xc

Xn,cFKXErC

n

xxaxxbx

ba

0

)(

)(

)1()1()1(!)!(

)!(1

)(

where

),ˆ( toequal is |)ˆ()1(

at time callEuropean of price Then the

,0for )1()(,)1()(

let ,0,0Fix

European call

ab

rbp

Page 13: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

13

.for

),,0(for (x)

)(1Esup)(1E(x)

.,),0(:0inf and 1

Let

.1 ofsolution a is 1 Suppose

,0for )(,)(

xx

1

xKx

xxK

KXrKXr

XnK

rqepe

xxexxex

n

tt

Optimal stopping time

Page 14: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

14

Kernel density estimation

a.e. )( )()(1

)(

i.i.d. ,, Suppose

1

21

nxFxXIn

xF

XXn

iin

a.e. )( )()(1

)(1

nxFh

XxK

nhxF

n

i n

i

nn

Page 15: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

15

).1,()(

)()(),(

,),(),(

by defined is

).1,()(

1,for )(,)(

1,for )(,)(

)1,0(,,1,1 Assume

.0)(limLet

)(

2

x

x

xd

c

n

x

PxQ

dyxQdyxp

dyyxqdyxp

X

PxQ

xcxxdxx

xaxxbxx

dacb

xmx

Positive recurrent Markov chain

Page 16: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

16

Steps of the kernel density estimation

• estimate q(x,y) such that pc(x,y)=q(x,y)dy

• estimate Q+(x) such that pd(x,dy)=Q+(x)δρ+(dy)

• estimate Q-(x) such that pd(x,dy)=Q-(x)δρ-(dy)

• define estimatorsnn ˆ,ˆ

Page 17: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

17

5

1

1

,)(1

)(ˆ

Let

nh

h

XxK

nhx

n

n

i n

i

nn

Kernel density estimator

Page 18: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

18

)( if )(

,)(),( if ),(),(

,),(1

)(ˆ

Let1

0

xyxQ

xxyyxqyxk

yXkn

yn

iin

Another density estimator

Page 19: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

19

Page 20: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

20

Page 21: 1 An introduction to Taiwan market by using Markov model models examples the kernel density estimation

21

敬請批評指教