16.04.2014 Views

Embedding R in Windows applications, and executing R remotely

Embedding R in Windows applications, and executing R remotely

Embedding R in Windows applications, and executing R remotely

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Option pric<strong>in</strong>g us<strong>in</strong>g R<br />

John R<strong>and</strong>al<br />

February 11, 2004<br />

Abstract<br />

R has a contributed package RQuantLib which provides access to<br />

some of the QuantLib libraries, <strong>and</strong> common, practitioner-oriented option<br />

pric<strong>in</strong>g tools. These functions are fairly limited <strong>in</strong> their scope<br />

<strong>and</strong> applicability from a research perspective, <strong>in</strong> the sense that they<br />

are based around the st<strong>and</strong>ard Black-Scholes assumptions.<br />

We review extensions to the Black-Scholes pric<strong>in</strong>g equation, <strong>in</strong><br />

particular the constant elasticity of variance, <strong>and</strong> the compound option<br />

pric<strong>in</strong>g models, focuss<strong>in</strong>g on problems relat<strong>in</strong>g to computability<br />

of their closed form solutions. In each case, R offers probability tables<br />

that are otherwise fairly obscure, <strong>in</strong> particular, the non-central<br />

chi-squared distributions, <strong>and</strong> the multivariate normal distributions<br />

available <strong>in</strong> the package mvtnorm.<br />

We present a further extension, the extended compound option<br />

pric<strong>in</strong>g model, which also has a closed form solution, <strong>and</strong> which has<br />

<strong>applications</strong> <strong>in</strong> stock, stock option, <strong>and</strong> debt pric<strong>in</strong>g. The model can<br />

be implemented <strong>in</strong> R, however evaluat<strong>in</strong>g the pric<strong>in</strong>g formula presents<br />

some challenges. These challenges are discussed.<br />

1

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

Saved successfully!

Ooh no, something went wrong!