Details

Foundations of Computational Finance with MATLAB


Foundations of Computational Finance with MATLAB


1. Aufl.

von: Ed McCarthy

24,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 22.05.2018
ISBN/EAN: 9781119433910
Sprache: englisch
Anzahl Seiten: 368

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

Beschreibungen

<p><b>Graduate from Excel to MATLAB<sup>®</sup> to keep up with the evolution of finance data</b></p> <p><i>Foundations of Computational Finance with MATLAB<sup>®</sup></i> is an introductory text for both finance professionals looking to branch out from the spreadsheet, and for programmers who wish to learn more about finance. As financial data grows in volume and complexity, its very nature has changed to the extent that traditional financial calculators and spreadsheet programs are simply no longer enough. Today’s analysts need more powerful data solutions with more customization and visualization capabilities, and MATLAB provides all of this and more in an easy-to-learn skillset.</p> <p>This book walks you through the basics, and then shows you how to stretch your new skills to create customized solutions. Part I demonstrates MATLAB’s capabilities as they apply to traditional finance concepts, and PART II shows you how to create interactive and reusable code, link with external data sources, communicate graphically, and more.</p> <ul> <li>Master MATLAB’s basic operations including matrices, arrays, and flexible data structures</li> <li>Learn how to build your own customized solutions when the built-ins just won’t do</li> <li>Learn how to handle financial data and industry-specific variables including risk and uncertainty</li> </ul> <ul> <li>Adopt more accurate modeling practices for portfolios, options, time series, and more</li> </ul> <p>MATLAB is an integrated development environment that includes everything you need in one well-designed user interface. Available Toolboxes provide tested algorithms that save you hours of code, and the skills you learn using MATLAB make it easier to learn additional languages if you choose to do so. Financial firms are catching up to universities in MATLAB usage, so this is skill set that will follow you throughout your career. When you’re ready to step into the new age of finance, <i>Foundations of Computational Finance with MATLAB</i> provides the expert instruction you need to get started quickly. </p>
<p>Introduction xiii</p> <p>Why You Should Read This Book xiii</p> <p>The Intended Reader xiv</p> <p>Why MATLAB<sup>®</sup>? xiv</p> <p>How to Use This Book xvi</p> <p>Font Conventions xvi</p> <p>About the Author xvii</p> <p>MathWorks Information xviii</p> <p>References xviii</p> <p><b>Part I MATLAB Conventions and Basic Skills 1</b></p> <p><b>Chapter 1 Working with MATLAB<sup>®</sup> Data 3</b></p> <p>1.1 Introduction 3</p> <p>1.2 Arrays 3</p> <p>1.2.1 Numerical Arrays 4</p> <p>1.2.2 Math Calculations with Scalars,Vectors, and Matrices 10</p> <p>1.2.3 Statistical Calculations on Vectors and Matrices 16</p> <p>1.2.4 Extracting Values from Numerical Vectors and Matrices 19</p> <p>1.2.5 Counting Elements 26</p> <p>1.2.6 Sorting Vectors and Matrices 28</p> <p>1.2.7 Relational Expressions and Logical Arrays 31</p> <p>1.2.8 Dealing with NaNs (Not a Number) 35</p> <p>1.2.9 Dealing with Missing Data 39</p> <p>1.3 Character Arrays 40</p> <p>1.3.1 String Arrays 44</p> <p>1.4 Flexible Data Structures 46</p> <p>1.4.1 Cell Arrays 47</p> <p>1.4.2 Structure (“struct”) Arrays 49</p> <p>1.4.3 Tables 51</p> <p>References 60</p> <p>Further Reading 60</p> <p><b>Chapter 2 Working with Dates and Times 61</b></p> <p>2.1 Introduction 61</p> <p>2.2 Finance Background: Why Dates and Times Matter 61</p> <p>2.2.1 First Challenge: Day Count Conventions 62</p> <p>2.2.2 Second Challenge: Date Formats 63</p> <p>2.3 Dates and Times in MATLAB 64</p> <p>2.3.1 Datetime Variables 64</p> <p>2.3.2 Date Conversions 73</p> <p>2.3.3 Date Generation Functions with Serial Number Outputs 79</p> <p>2.3.4 Duration Arrays 83</p> <p>2.3.5 Calendar Duration Variables 86</p> <p>2.3.6 Date Calculations and Operations 89</p> <p>2.3.7 Plotting Date Variables Introduction 94</p> <p>References 95</p> <p><b>Chapter 3 Basic Programming with MATLAB<sup>®</sup> 97</b></p> <p>3.1 Introduction 97</p> <p>3.1.1 Algorithms 101 97</p> <p>3.1.2 Go DIY or Use Built-In Code? 98</p> <p>3.2 MATLAB Scripts and Functions 99</p> <p>3.2.1 Scripts 99</p> <p>3.2.2 Developing Functions 106</p> <p>3.2.3 If Statements 112</p> <p>3.2.4 Modular Programming 115</p> <p>3.2.5 User Message Formats 121</p> <p>3.2.6 Testing and Debugging 124</p> <p>References 127</p> <p><b>Chapter 4 Working with Financial Data 129</b></p> <p>4.1 Introduction 129</p> <p>4.2 Accessing Financial Data 129</p> <p>4.2.1 Closing Prices versus Adjusted Close Prices for Stocks 130</p> <p>4.2.2 Data Download Examples 131</p> <p>4.2.3 Importing Data Interactively 133</p> <p>4.2.4 Automating Data Imports with a Script 138</p> <p>4.2.5 Automating Data Imports with a Function 140</p> <p>4.2.6 Importing Data Programmatically 147</p> <p>4.3 Working with Spreadsheet Data 154</p> <p>4.3.1 Importing Spreadsheet Data with Import Tool 154</p> <p>4.3.2 Importing Spreadsheet Data Programmatically 154</p> <p>4.4 Data Visualization 156</p> <p>4.4.1 Built-In Plot Functions 156</p> <p>4.4.2 Using the Plot Tools 158</p> <p>4.4.3 Plotting with Commands 159</p> <p>4.4.4 Other Plot Tools 162</p> <p>4.4.5 Built-In Financial Charts 173</p> <p>References 176</p> <p><b>Part II Financial Calculations with MATLAB 177</b></p> <p><b>Chapter 5 The Time Value of Money 179</b></p> <p>5.1 Introduction 179</p> <p>5.2 Finance Background 180</p> <p>5.2.1 Future Value with Single Cash Flows 180</p> <p>5.2.2 Future Value with Multiple Cash Flows 185</p> <p>5.2.3 Present Value with Single Cash Flows 187</p> <p>5.2.4 Present Value with Multiple Variable Cash Flows 188</p> <p>5.3 MATLAB Time Value of Money Functions 189</p> <p>5.3.1 Future Value of Fixed Periodic Payments 190</p> <p>5.3.2 Future Value of Variable Payments 191</p> <p>5.3.3 Present Value of Fixed Payments 193</p> <p>5.3.4 Present Value of Variable Payments 194</p> <p>5.4 Internal Rate of Return 197</p> <p>5.5 Effective Interest Rates 198</p> <p>5.6 Compound Annual Growth Rate 198</p> <p>5.7 Continuous Interest 200</p> <p>5.8 Loans 200</p> <p>References 202</p> <p><b>Chapter 6 Bonds 203</b></p> <p>6.1 Introduction 203</p> <p>6.2 Finance Background 204</p> <p>6.2.1 Bond Classifications 204</p> <p>6.2.2 Bond Terminology 205</p> <p>6.3 MATLAB Bond Functions 206</p> <p>6.3.1 US Treasury Bills 206</p> <p>6.3.2 Bond Valuation Principles 208</p> <p>6.3.3 Calculating Bond Prices 209</p> <p>6.3.4 Calculating Bond Yields 212</p> <p>6.3.5 Calculating a Bond’s Total Return 214</p> <p>6.3.6 Pricing Discount Bonds 216</p> <p>6.4 Bond Analytics 216</p> <p>6.4.1 Interest Rate Risk 217</p> <p>6.4.2 Measuring Rate Sensitivity 219</p> <p>6.4.3 Yield Curves 227</p> <p>6.5 Callable Bonds 229</p> <p>References 231</p> <p>Further Reading 231</p> <p><b>Chapter 7 Dealing with Uncertainty and Risk 233</b></p> <p>7.1 Introduction 233</p> <p>7.2 Overview of Financial Risk 234</p> <p>7.3 Data Insights 234</p> <p>7.3.1 Visualizing Data 235</p> <p>7.3.2 Basic Single Series Plots 237</p> <p>7.3.3 Basic Multiple Series Plots 237</p> <p>7.3.4 Adding Plot Customization 238</p> <p>7.3.5 Histograms 239</p> <p>7.3.6 Measures of Central Location 241</p> <p>7.3.7 Measures of Data Dispersion 243</p> <p>7.4 Data Relationships 249</p> <p>7.4.1 Covariance and Correlation 251</p> <p>7.4.2 Correlation Coefficients 252</p> <p>7.5 Creating a Basic Simulation Model 253</p> <p>7.6 Value at Risk (VaR) 258</p> <p>References 261</p> <p>Further Reading 262</p> <p><b>Chapter 8 Equity Derivatives 263</b></p> <p>8.1 Introduction 263</p> <p>8.2 Options 264</p> <p>8.2.1 Option Quotes 265</p> <p>8.2.2 Market Mechanics 266</p> <p>8.2.3 Factors in Option Valuation 267</p> <p>8.3 Option Pricing Models 268</p> <p>8.3.1 Arbitrage 269</p> <p>8.3.2 Binomial Option Pricing 270</p> <p>8.3.3 Black-Scholes 274</p> <p>8.4 Options’ Uses 276</p> <p>8.4.1 Hedging 277</p> <p>8.4.2 Speculation and Leverage 277</p> <p>8.4.3 Customizing Payoff Profiles 278</p> <p>8.5 Appendix: Other Types of Derivatives 279</p> <p>8.5.1 Commodity and Energy 279</p> <p>8.5.2 Credit 279</p> <p>8.5.3 Exotic Options 280</p> <p>References 281</p> <p>Further Reading 281</p> <p><b>Chapter 9 Portfolios 283</b></p> <p>9.1 Introduction 283</p> <p>9.2 Finance Background 283</p> <p>9.3 Portfolio Optimization 285</p> <p>9.4 MATLAB Portfolio Object 286</p> <p>9.4.1 Object-Oriented Programming (OOP) 286</p> <p>9.4.2 A Basic Example 287</p> <p>9.4.3 Using Data Stored in a Table</p> <p>Format 294</p> <p>References 296</p> <p><b>Chapter 10 Regression and Time Series 297</b></p> <p>10.1 Introduction 297</p> <p>10.2 Basic Regression 297</p> <p>10.2.1 Understanding Least Squares 300</p> <p>10.2.2 Model Notation 301</p> <p>10.2.3 Fitting a Polynomial with polyfit and polyval 303</p> <p>10.2.4 Linear Regression Methods 305</p> <p>10.3 Working with Time Series 308</p> <p>10.3.1 Step 1: Load the Data (Single Series) 308</p> <p>10.3.2 Step 2: Create the FTS Object 309</p> <p>10.3.3 Step 3: Using FTS Tools 311</p> <p>References 314</p> <p><b>Appendix 1 Sharing Your Work 315</b></p> <p>A1.1 Introduction 315</p> <p>A1.2 Publishing a Script 316</p> <p>A1.2.1 Publishing with Code Sections 317</p> <p>A1.2.2 futureValueCalc3 319</p> <p>A1.2.3 Formatting Options 321</p> <p>A1.2.4 Working with Live Scripts 322</p> <p>A1.2.5 Editing and Control 325</p> <p>References 326</p> <p><b>Appendix 2 Reference for Included MATLAB<sup>®</sup> Functions 327</b></p> <p>Index 335</p>
<p><b>ED M<small>C</small>CARTHY</b> is a journalist, prolific finance writer, and MathWorks Certified MATLAB<sup>®</sup> Associate. His articles have appeared in <i>Bloomberg Wealth Manager, CFA Institute Magazine, Institutional Investor, Financial Planning, Journal of Accountancy,</i> and the<i> Journal of Financial Planning.</i> He is also author of <i>The Financial Advisor's Analytical Toolbox</i> and<i> Fast Forward MBA in Personal Finance.</i>
<p><b>Master a Key Tool in Quantitative Finance</b> <p><i>Foundations of Computational Finance with MATLAB</i><sup>®</sup> is the long-awaited introductory guide to one of the most flexible and powerful computational platforms for finance. <p>Whether you're planning for a career in corporate or investment finance, or you're looking to advance in one of those industries, this hands-on guide is your turnkey solution to understanding the ins and outs of MATLAB<sup>®</sup> and all the ways it enables you to get more out of your data sets, including nontraditional information, with new computational tools. <p>This single guidebook is all you need to: <ul> <li>Get up to speed quickly for real-world practice by mastering one of the best-suited platforms for quantitative finance</li> <li>Reinforce covered material with interactive learning by working through guided examples in the MATLAB<sup>®</sup> Command Window</li> <li>Develop the complete, up-to-date groundwork you need to build advanced skills</li> </ul> <p>Spreadsheets and calculators are a good start, but to keep pace with high- performing financial professionals, you need <i>Foundations of Computational Finance with MATLAB</i><sup>®</sup><i>.</i>

Diese Produkte könnten Sie auch interessieren:

Engineering Project Appraisal
Engineering Project Appraisal
von: Martin Rogers, Aidan Duffy
PDF ebook
50,99 €
Wiley Federal Government Auditing
Wiley Federal Government Auditing
von: Edward F. Kearney, Roldan Fernandez, Jeffrey W. Green, David M. Zavada
EPUB ebook
92,99 €
Wiley Federal Government Auditing
Wiley Federal Government Auditing
von: Edward F. Kearney, Roldan Fernandez, Jeffrey W. Green, David M. Zavada
PDF ebook
92,99 €