Details

Derivatives Analytics with Python


Derivatives Analytics with Python

Data Analysis, Models, Simulation, Calibration and Hedging
The Wiley Finance Series 1. Aufl.

von: Yves Hilpisch

63,99 €

Verlag: Wiley
Format: EPUB
Veröffentl.: 15.06.2015
ISBN/EAN: 9781119038009
Sprache: englisch
Anzahl Seiten: 384

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<b>Supercharge options analytics and hedging using the power of Python</b> <p><i>Derivatives Analytics with Python</i> shows you how to implement market-consistent valuation and hedging approaches using advanced financial models, efficient numerical techniques, and the powerful capabilities of the Python programming language. This unique guide offers detailed explanations of all theory, methods, and processes, giving you the background and tools necessary to value stock index options from a sound foundation. You'll find and use self-contained Python scripts and modules and learn how to apply Python to advanced data and derivatives analytics as you benefit from the 5,000+ lines of code that are provided to help you reproduce the results and graphics presented. Coverage includes market data analysis, risk-neutral valuation, Monte Carlo simulation, model calibration, valuation, and dynamic hedging, with models that exhibit stochastic volatility, jump components, stochastic short rates, and more. The companion website features all code and IPython Notebooks for immediate execution and automation.</p> <p>Python is gaining ground in the derivatives analytics space, allowing institutions to quickly and efficiently deliver portfolio, trading, and risk management results. This book is the finance professional's guide to exploiting Python's capabilities for efficient and performing derivatives analytics.</p> <ul> <li>Reproduce major stylized facts of equity and options markets yourself</li> <li>Apply Fourier transform techniques and advanced Monte Carlo pricing</li> <li>Calibrate advanced option pricing models to market data</li> <li>Integrate advanced models and numeric methods to dynamically hedge options</li> </ul> <p>Recent developments in the Python ecosystem enable analysts to implement analytics tasks as performing as with C or C++, but using only about one-tenth of the code or even less. <i>Derivatives Analytics with Python — Data Analysis, Models, Simulation, Calibration and Hedging</i> shows you what you need to know to supercharge your derivatives and risk analytics efforts.</p>
<p>List of Tables xi</p> <p>List of Figures xiii</p> <p>Preface xvii</p> <p><b>Chapter 1 A Quick Tour 1</b></p> <p>1.1 Market-Based Valuation 1</p> <p>1.2 Structure of the Book 2</p> <p>1.3 Why Python? 3</p> <p>1.4 Further Reading 4</p> <p><b>Part One The Market</b></p> <p><b>Chapter 2 What is Market-Based Valuation? 9</b></p> <p>2.1 Options and their Value 9</p> <p>2.2 Vanilla vs. Exotic Instruments 13</p> <p>2.3 Risks Affecting Equity Derivatives 14</p> <p>2.3.1 Market Risks 14</p> <p>2.3.2 Other Risks 15</p> <p>2.4 Hedging 16</p> <p>2.5 Market-Based Valuation as a Process 17</p> <p><b>Chapter 3 Market Stylized Facts 19</b></p> <p>3.1 Introduction 19</p> <p>3.2 Volatility, Correlation and Co. 19</p> <p>3.3 Normal Returns as the Benchmark Case 21</p> <p>3.4 Indices and Stocks 25</p> <p>3.4.1 Stylized Facts 25</p> <p>3.4.2 DAX Index Returns 26</p> <p>3.5 Option Markets 30</p> <p>3.5.1 Bid/Ask Spreads 31</p> <p>3.5.2 Implied Volatility Surface 31</p> <p>3.6 Short Rates 33</p> <p>3.7 Conclusions 36</p> <p>3.8 Python Scripts 37</p> <p>3.8.1 GBM Analysis 37</p> <p>3.8.2 DAX Analysis 40</p> <p>3.8.3 BSM Implied Volatilities 41</p> <p>3.8.4 EURO STOXX 50 Implied Volatilities 43</p> <p>3.8.5 Euribor Analysis 45</p> <p><b>Part Two Theoretical Valuation</b></p> <p><b>Chapter 4 Risk-Neutral Valuation 49</b></p> <p>4.1 Introduction 49</p> <p>4.2 Discrete-Time Uncertainty 50</p> <p>4.3 Discrete Market Model 54</p> <p>4.3.1 Primitives 54</p> <p>4.3.2 Basic Definitions 55</p> <p>4.4 Central Results in Discrete Time 57</p> <p>4.5 Continuous-Time Case 61</p> <p>4.6 Conclusions 66</p> <p>4.7 Proofs 66</p> <p>4.7.1 Proof of Lemma 1 66</p> <p>4.7.2 Proof of Proposition 1 67</p> <p>4.7.3 Proof of Theorem 1 68</p> <p><b>Chapter 5 Complete Market Models 71</b></p> <p>5.1 Introduction 71</p> <p>5.2 Black-Scholes-Merton Model 72</p> <p>5.2.1 Market Model 72</p> <p>5.2.2 The Fundamental PDE 72</p> <p>5.2.3 European Options 74</p> <p>5.3 Greeks in the BSM Model 76</p> <p>5.4 Cox-Ross-Rubinstein Model 81</p> <p>5.5 Conclustions 84</p> <p>5.6 Proofs and Python Scripts 84</p> <p>5.6.1 Itô’s Lemma 84</p> <p>5.6.2 Script for BSM Option Valuation 85</p> <p>5.6.3 Script for BSM Call Greeks 88</p> <p>5.6.4 Script for CRR Option Valuation 92</p> <p><b>Chapter 6 Fourier-Based Option Pricing 95</b></p> <p>6.1 Introduction 95</p> <p>6.2 The Pricing Problem 96</p> <p>6.3 Fourier Transforms 97</p> <p>6.4 Fourier-Based Option Pricing 98</p> <p>6.4.1 Lewis (2001) Approach 98</p> <p>6.4.2 Carr-Madan (1999) Approach 101</p> <p>6.5 Numerical Evaluation 103</p> <p>6.5.1 Fourier Series 103</p> <p>6.5.2 Fast Fourier Transform 105</p> <p>6.6 Applications 107</p> <p>6.6.1 Black-Scholes-Merton (1973) Model 107</p> <p>6.6.2 Merton (1976) Model 108</p> <p>6.6.3 Discrete Market Model 110</p> <p>6.7 Conclusions 114</p> <p>6.8 Python Scripts 114</p> <p>6.8.1 BSM Call Valuation via Fourier Approach 114</p> <p>6.8.2 Fourier Series 119</p> <p>6.8.3 Roots of Unity 120</p> <p>6.8.4 Convolution 121</p> <p>6.8.5 Module with Parameters 122</p> <p>6.8.6 Call Value by Convolution 123</p> <p>6.8.7 Option Pricing by Convolution 123</p> <p>6.8.8 Option Pricing by DFT 124</p> <p>6.8.9 Speed Test of DFT 125</p> <p><b>Chapter 7 Valuation of American Options by Simulation 127</b></p> <p>7.1 Introduction 127</p> <p>7.2 Financial Model 128</p> <p>7.3 American Option Valuation 128</p> <p>7.3.1 Problem Formulations 128</p> <p>7.3.2 Valuation Algorithms 130</p> <p>7.4 Numerical Results 132</p> <p>7.4.1 American Put Option 132</p> <p>7.4.2 American Short Condor Spread 135</p> <p>7.5 Conclusions 136</p> <p>7.6 Python Scripts 137</p> <p>7.6.1 Binomial Valuation 137</p> <p>7.6.2 Monte Carlo Valuation with LSM 139</p> <p>7.6.3 Primal and Dual LSM Algorithms 140</p> <p><b>Part Three Market-Based Valuation</b></p> <p><b>Chapter 8 A First Example of Market-Based Valuation 147</b></p> <p>8.1 Introduction 147</p> <p>8.2 Market Model 147</p> <p>8.3 Valuation 148</p> <p>8.4 Calibration 149</p> <p>8.5 Simulation 149</p> <p>8.6 Conclusions 155</p> <p>8.7 Python Scripts 155</p> <p>8.7.1 Valuation by Numerical Integration 155</p> <p>8.7.2 Valuation by FFT 157</p> <p>8.7.3 Calibration to Three Maturities 160</p> <p>8.7.4 Calibration to Short Maturity 163</p> <p>8.7.5 Valuation by MCS 165</p> <p><b>Chapter 9 General Model Framework 169</b></p> <p>9.1 Introduction 169</p> <p>9.2 The Framework 169</p> <p>9.3 Features of the Framework 170</p> <p>9.4 Zero-Coupon Bond Valuation 172</p> <p>9.5 European Option Valuation 173</p> <p>9.5.1 PDE Approach 173</p> <p>9.5.2 Transform Methods 175</p> <p>9.5.3 Monte Carlo Simulation 176</p> <p>9.6 Conclusions 177</p> <p>9.7 Proofs and Python Scripts 177</p> <p>9.7.1 Itô’s Lemma 177</p> <p>9.7.2 Python Script for Bond Valuation 178</p> <p>9.7.3 Python Script for European Call Valuation 180</p> <p><b>Chapter 10 Monte Carlo Simulation 187</b></p> <p>10.1 Introduction 187</p> <p>10.2 Valuation of Zero-Coupon Bonds 188</p> <p>10.3 Valuation of European Options 192</p> <p>10.4 Valuation of American Options 196</p> <p>10.4.1 Numerical Results 198</p> <p>10.4.2 Higher Accuracy vs. Lower Speed 201</p> <p>10.5 Conclusions 203</p> <p>10.6 Python Scripts 204</p> <p>10.6.1 General Zero-Coupon Bond Valuation 204</p> <p>10.6.2 CIR85 Simulation and Valuation 205</p> <p>10.6.3 Automated Valuation of European Options by Monte Carlo Simulation 209</p> <p>10.6.4 Automated Valuation of American Put Options by Monte Carlo Simulation 215</p> <p><b>Chapter 11 Model Calibration 223</b></p> <p>11.1 Introduction 223</p> <p>11.2 General Considerations 223</p> <p>11.2.1 Why Calibration at All? 224</p> <p>11.2.2 Which Role Do Different Model Components Play? 226</p> <p>11.2.3 What Objective Function? 227</p> <p>11.2.4 What Market Data? 228</p> <p>11.2.5 What Optimization Algorithm? 229</p> <p>11.3 Calibration of Short Rate Component 230</p> <p>11.3.1 Theoretical Foundations 230</p> <p>11.3.2 Calibration to Euribor Rates 231</p> <p>11.4 Calibration of Equity Component 233</p> <p>11.4.1 Valuation via Fourier Transform Method 235</p> <p>11.4.2 Calibration to EURO STOXX 50 Option Quotes 236</p> <p>11.4.3 Calibration of H93 Model 236</p> <p>11.4.4 Calibration of Jump Component 237</p> <p>11.4.5 Complete Calibration of BCC97 Model 239</p> <p>11.4.6 Calibration to Implied Volatilities 240</p> <p>11.5 Conclusions 243</p> <p>11.6 Python Scripts for Cox-Ingersoll-Ross Model 243</p> <p>11.6.1 Calibration of CIR85 243</p> <p>11.6.2 Calibration of H93 Stochastic Volatility Model 248</p> <p>11.6.3 Comparison of Implied Volatilities 251</p> <p>11.6.4 Calibration of Jump-Diffusion Part of BCC97 252</p> <p>11.6.5 Calibration of Complete Model of BCC97 256</p> <p>11.6.6 Calibration of BCC97 Model to Implied Volatilities 258</p> <p><b>Chapter 12 Simulation and Valuation in the General Model Framework 263</b></p> <p>12.1 Introduction 263</p> <p>12.2 Simulation of BCC97 Model 263</p> <p>12.3 Valuation of Equity Options 266</p> <p>12.3.1 European Options 266</p> <p>12.3.2 American Options 268</p> <p>12.4 Conclusions 268</p> <p>12.5 Python Scripts 269</p> <p>12.5.1 Simulating the BCC97 Model 269</p> <p>12.5.2 Valuation of European Call Options by MCS 274</p> <p>12.5.3 Valuation of American Call Options by MCS 275</p> <p><b>Chapter 13 Dynamic Hedging 279</b></p> <p>13.1 Introduction 279</p> <p>13.2 Hedging Study for BSM Model 280</p> <p>13.3 Hedging Study for BCC97 Model 285</p> <p>13.4 Conclusions 289</p> <p>13.5 Python Scripts 289</p> <p>13.5.1 LSM Delta Hedging in BSM (Single Path) 289</p> <p>13.5.2 LSM Delta Hedging in BSM (Multiple Paths) 293</p> <p>13.5.3 LSM Algorithm for American Put in BCC97 295</p> <p>13.5.4 LSM Delta Hedging in BCC97 (Single Path) 300</p> <p><b>Chapter 14 Executive Summary 303</b></p> <p><b>Appendix A Python in a Nutshell 305</b></p> <p>A.1 Python Fundamentals 305</p> <p>A.1.1 Installing Python Packages 305</p> <p>A.1.2 First Steps with Python 306</p> <p>A.1.3 Array Operations 310</p> <p>A.1.4 Random Numbers 313</p> <p>A.1.5 Plotting 314</p> <p>A.2 European Option Pricing 316</p> <p>A.2.1 Black-Scholes-Merton Approach 316</p> <p>A.2.2 Cox-Ross-Rubinstein Approach 318</p> <p>A.2.3 Monte Carlo Approach 323</p> <p>A.3 Selected Financial Topics 325</p> <p>A.3.1 Approximation 325</p> <p>A.3.2 Optimization 328</p> <p>A.3.3 Numerical Integration 329</p> <p>A.4 Advanced Python Topics 330</p> <p>A.4.1 Classes and Objects 330</p> <p>A.4.2 Basic Input-Output Operations 332</p> <p>A.4.3 Interacting with Spreadsheets 334</p> <p>A.5 Rapid Financial Engineering 336</p> <p>Bibliography 341</p> <p>Index 347</p>
<p><b>YVES HILPISCH</b> is founder and Managing Partner of The Python Quants, a group that focuses on Python & Open Source Software for Quantitative Finance. Yves is also a Computational Finance Lecturer on the CQF Program. He works with clients in the financial industry around the globe and has ten years of experience with Python. Yves is the organizer of Python and Open Source for Quant Finance conferences and meetup groups in Frankfurt, London and New York City.
<p>Market-based valuation of stock index options is an essential task for every buy-side and sell-side decision maker in the derivatives analytics domain. In <i>Derivatives Analytics with Python</i>, you'll discover why Python has established itself in the financial industry and how to leverage this powerful programming language so you can implement market-consistent valuation and hedging approaches. <p>Written for Quant developers, traders, risk managers, compliance officers, and model validators, this reliable resource skillfully covers the four areas necessary to effectively value options: market-based valuation as a process; sound market model; numerical techniques; and technology. Presented in three parts, Part One looks at the risks affecting the value of equity index options and empirical facts regarding stocks and interest rates. Part Two covers arbitrage pricing theory, risk-neutral valuation in discrete time, continuous time, and introduces the two popular methods of Carr-Madan and Lewis for Fourier-based option pricing. Finally, Part Three considers the whole process of a market-based valuation effort and the Monte Carlo simulation as the method of choice for the valuation of exotic and complex index options and derivatives. <p>Practical and informative, with self-contained Python scripts and modules and 5,000+ lines of code provided to help you reproduce the results and graphics presented. In addition, the companion website (http://wiley.quant-platform.com) features all code and IPython Notebooks for immediate execution and automation. <p>Author Yves Hilpisch explores market-based valuation as a process, as well as empirical findings about market realities. By reading this book, you'll be equipped to develop much-needed tools during a market-based valuation with balanced coverage of: <ul> <li>Market-based valuation</li> <li>Risk-neutral valuation</li> <li>Discrete market models</li> <li>Black-Scholes-Merton Model</li> <li>Fourier-based option pricing</li> <li>Valuation of American options</li> <li>Stochastic volatility and jump-diffusion models</li> <li>Model calibration</li> <li>Simulation and valuation</li> </ul> <p>Python is gaining ground in the derivatives analytics space, allowing institutions to quickly and efficiently deliver pricing, trading, and risk management results. Learn to implement market-consistent valuation and hedging approaches for European and American options with the solid guidance found in <i>Derivatives Analytics with Python</i>.

Diese Produkte könnten Sie auch interessieren:

Agile Project Management
Agile Project Management
von: Project Management Journal
EPUB ebook
23,99 €
Make Change Work
Make Change Work
von: Randy Pennington
PDF ebook
14,99 €
Nonprofit Law Made Easy
Nonprofit Law Made Easy
von: Bruce R. Hopkins
EPUB ebook
53,99 €