20.11.2012 Views

recent developments in high frequency financial ... - Index of

recent developments in high frequency financial ... - Index of

recent developments in high frequency financial ... - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The performance analysis <strong>of</strong> chart patterns 215<br />

function <strong>in</strong> order to approximate the time series <strong>of</strong> prices Pj,k, we set the state<br />

variable equal to time, XPj;k<br />

m(x) may be expressed as:<br />

¼ t: For any arbitrary x, a smooth<strong>in</strong>g estimator <strong>of</strong><br />

^mðxÞ ¼ 1<br />

l<br />

X l<br />

j¼1<br />

!jðxÞPj;k; (10)<br />

where the weight ωj(x) is large for the prices Pj,k with XPj;k near x and small for<br />

those with XPj;k far from x. For the kernel regression estimator, the weight function<br />

ωj(x) is built from a probability density function K(x), also called a kernel:<br />

KðxÞ 0;<br />

Z þ1<br />

1<br />

KðuÞdu ¼ 1: (11)<br />

By rescal<strong>in</strong>g the kernel with respect to a parameter h > 0, we can change its<br />

spread:<br />

1<br />

KhðuÞ<br />

h Kðu=hÞ;<br />

Zþ1 KhðuÞdu ¼ 1 (12)<br />

and def<strong>in</strong>e the weight function to be used <strong>in</strong> the weighted average (10) as:<br />

1<br />

!j;h Kh x XPj;k =ghðxÞ (13)<br />

ghðxÞ<br />

1<br />

l<br />

X l<br />

j¼l<br />

Kh x XPj;k : (14)<br />

Substitut<strong>in</strong>g (14) <strong>in</strong>to (10) yields the Nadaraya–Watson kernel estimator ^mhðxÞ<br />

<strong>of</strong> m(x):<br />

^mhðxÞ ¼ 1<br />

l<br />

X l<br />

j¼l<br />

!j;hðxÞPj;k ¼<br />

Pl j¼1 Kh x XPj;k Pj;k<br />

Pl j¼1 Kh<br />

: (15)<br />

x XPj;k<br />

If h is very small, the averag<strong>in</strong>g will be done with respect to a rather small<br />

neighborhood around each <strong>of</strong> the XPj;k ’s. If h is very large, the averag<strong>in</strong>g will be over<br />

larger neighborhoods <strong>of</strong> the XPj;k’s. Therefore, controll<strong>in</strong>g the degree <strong>of</strong> averag<strong>in</strong>g<br />

amounts to adjust<strong>in</strong>g the smooth<strong>in</strong>g parameter h, also known as the bandwidth.<br />

Choos<strong>in</strong>g the appropriate bandwidth is an important aspect <strong>of</strong> any local-averag<strong>in</strong>g<br />

technique. In our case we select a Gaussian kernel with a bandwidth, hopt,j ,<br />

computed by Silverman (1986):<br />

KhðxÞ ¼ 1<br />

h ffiffiffiffiffi p e<br />

2<br />

x2<br />

hopt;k ¼ 4<br />

3<br />

1=5<br />

2h 2 (16)<br />

kl 1=5 ; (17)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!