Example: confidence

Python for Finance

2n d Ed iti on Python for Finance mastering DATA-DRIVEN Finance . Yves Hilpisch SECOND EDITION. Python for Finance mastering Data-Driven Finance Yves Hilpisch Beijing Boston Farnham Sebastopol Tokyo Python for Finance by Yves Hilpisch Copyright 2019 Yves Hilpisch. All rights reserved. Printed in Canada. Published by O'Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O'Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles ( ).

Python for Finance MASTERING DATA-DRIVEN FINANCE n. Yves Hilpisch Python for Finance Mastering Data-Driven Finance SECOND EDITION Beijing Boston Farnham Sebastopol Tokyo. 978-1-492-02433-0 [MBP] ... Beyond the realm of finance, Python is also often the language of choice in introduc‐ ...

Tags:

  Finance, Python, Mastering, Python for finance, Mastering python for finance

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Python for Finance

1 2n d Ed iti on Python for Finance mastering DATA-DRIVEN Finance . Yves Hilpisch SECOND EDITION. Python for Finance mastering Data-Driven Finance Yves Hilpisch Beijing Boston Farnham Sebastopol Tokyo Python for Finance by Yves Hilpisch Copyright 2019 Yves Hilpisch. All rights reserved. Printed in Canada. Published by O'Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O'Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles ( ).

2 For more information, contact our corporate/institu . tional sales department: 800-998-9938 or Editors: Susan Conant and Jeff Bleiel Indexer: Judith McConville Production Editor: Kristen Brown Interior Designer: David Futato Copyeditor: Rachel Head Cover Designer: Karen Montgomery Proofreader: Kim Cofer Illustrator: Rebecca Demarest December 2014: First Edition December 2018: Second Edition Revision History for the Second Edition 2018-11-29: First Release 2019-01-18: Second Release 2019-05-31: Third Release 2019-12-13: Fourth Release 2020-03-20: Fifth Release 2020-07-31.

3 Sixth Release See for release details. The O'Reilly logo is a registered trademark of O'Reilly Media, Inc. Python for Finance , the cover image, and related trade dress are trademarks of O'Reilly Media, Inc. The views expressed in this work are those of the author, and do not represent the publisher's views. While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work.

4 Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights. 978-1-492-02433-0. [MBP]. Table of Contents Preface.. xiii Part I. Python and Finance 1. Why Python for Finance .. 3. The Python Programming Language 3. A Brief History of Python 5. The Python Ecosystem 6.

5 The Python User Spectrum 7. The Scientific Stack 8. Technology in Finance 9. Technology Spending 10. Technology as Enabler 10. Technology and Talent as Barriers to Entry 11. Ever-Increasing Speeds, Frequencies, and Data Volumes 12. The Rise of Real-Time Analytics 13. Python for Finance 14. Finance and Python Syntax 14. Efficiency and Productivity Through Python 18. From Prototyping to Production 23. Data-Driven and AI-First Finance 24. Data-Driven Finance 24. AI-First Finance 28. Conclusion 31. Further Resources 31. iii 2.

6 Python Infrastructure.. 33. conda as a Package Manager 35. Installing Miniconda 35. Basic Operations with conda 37. conda as a Virtual Environment Manager 41. Using Docker Containers 45. Docker Images and Containers 45. Building an Ubuntu and Python Docker Image 46. Using Cloud Instances 50. RSA Public and Private Keys 51. Jupyter Notebook Configuration File 52. Installation Script for Python and Jupyter Notebook 53. Script to Orchestrate the Droplet Setup 55. Conclusion 56. Further Resources 57. Part II. mastering the Basics 3.

7 Data Types and Structures.. 61. Basic Data Types 62. Integers 62. Floats 63. Booleans 66. Strings 69. Excursion: Printing and String Replacements 71. Excursion: Regular Expressions 74. Basic Data Structures 75. Tuples 75. Lists 76. Excursion: Control Structures 78. Excursion: Functional Programming 80. Dicts 81. Sets 82. Conclusion 84. Further Resources 84. 4. Numerical Computing with NumPy.. 85. Arrays of Data 86. Arrays with Python Lists 86. The Python array Class 88. Regular NumPy Arrays 90. iv | Table of Contents The Basics 90.

8 Multiple Dimensions 94. Metainformation 97. Reshaping and Resizing 98. Boolean Arrays 101. Speed Comparison 103. Structured NumPy Arrays 105. Vectorization of Code 106. Basic Vectorization 107. Memory Layout 110. Conclusion 112. Further Resources 112. 5. Data Analysis with pandas.. 113. The DataFrame Class 114. First Steps with the DataFrame Class 114. Second Steps with the DataFrame Class 119. Basic Analytics 123. Basic Visualization 126. The Series Class 128. GroupBy Operations 130. Complex Selection 132. Concatenation, Joining, and Merging 135.

9 Concatenation 136. Joining 137. Merging 139. Performance Aspects 141. Conclusion 143. Further Reading 143. 6. Object-Oriented Programming.. 145. A Look at Python Objects 149. int 149. list 150. ndarray 151. DataFrame 152. Basics of Python Classes 154. Python Data Model 159. The Vector Class 163. Conclusion 164. Further Resources 164. Table of Contents | v Part III. Financial Data Science 7. Data Visualization.. 167. Static 2D Plotting 168. One-Dimensional Data Sets 169. Two-Dimensional Data Sets 176. Other Plot Styles 183.

10 Static 3D Plotting 191. Interactive 2D Plotting 195. Basic Plots 195. Financial Plots 199. Conclusion 203. Further Resources 204. 8. Financial Time Series.. 205. Financial Data 206. Data Import 206. Summary Statistics 210. Changes over Time 212. Resampling 215. Rolling Statistics 217. An Overview 218. A Technical Analysis Example 220. Correlation Analysis 222. The Data 222. Logarithmic Returns 224. OLS Regression 226. Correlation 227. High-Frequency Data 228. Conclusion 230. Further Resources 230. 9. Input/Output Operations.