My Account Log in

3 options

Python for finance : build real-life Python applications for quantitative finance and financial engineering / Yuxing Yan ; cover image by Aniket Sawant.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central Academic Complete Available online

View online

Ebook Central College Complete Available online

View online
Format:
Book
Author/Creator:
Yan, Yuxing, author.
Contributor:
Sawant, Aniket, cover designer.
Series:
Community experience distilled.
Community Experience Distilled
Language:
English
Subjects (All):
Python (Computer program language).
Finance--Mathematical models--Computer programs.
Finance.
Physical Description:
1 online resource (408 p.)
Edition:
1st ed.
Place of Publication:
Birmingham, England : Packt Publishing, 2014.
Language Note:
English
Biography/History:
Yan Yuxing: Yuxing Yan graduated from McGill University with a PhD in finance. Over the years, he has been teaching various finance courses at eight universities: McGill University and Wilfrid Laurier University (in Canada), Nanyang Technological University (in Singapore), Loyola University of Maryland, UMUC, Hofstra University, University at Buffalo, and Canisius College (in the US). His research and teaching areas include: market microstructure, open-source finance and financial data analytics. He has 22 publications including papers published in the Journal of Accounting and Finance, Journal of Banking and Finance, Journal of Empirical Finance, Real Estate Review, Pacific Basin Finance Journal, Applied Financial Economics, and Annals of Operations Research. He is good at several computer languages, such as SAS, R, Python, Matlab, and C. His four books are related to applying two pieces of open-source software to finance: Python for Finance (2014), Python for Finance (2nd ed. , expected 2017), Python for Finance (Chinese version, expected 2017), and Financial Modeling Using R (2016). In addition, he is an expert on data, especially on financial databases. From 2003 to 2010, he worked at Wharton School as a consultant, helping researchers with their programs and data issues. In 2007, he published a book titled Financial Databases (with S. W. Zhu). This book is written in Chinese. Currently, he is writing a new book called Financial Modeling Using Excel in an R-Assisted Learning Environment. The phrase "R-Assisted" distinguishes it from other similar books related to Excel and financial modeling. New features include using a huge amount of public data related to economics, finance, and accounting; an efficient way to retrieve data: 3 seconds for each time series; a free financial calculator, showing 50 financial formulas instantly, 300 websites, 100 YouTube videos, 80 references, paperless for homework, midterms, and final exams; easy to extend for instructors; and especially, no need to learn R.
Summary:
Python is a free and powerful tool which can be used to build a financial calculator and price options, and can also explain many trading strategies and test various hypotheses. In addition to that, real-world data can be used to run CAPM (Capital Asset Pricing Model), the Fama-French 3-factor model, estimate VaR (Value at Risk), and estimate spread, illiquidity, and liquidity. This book explores the basics of programming in Python. It is a step-by-step tutorial that will teach you, with the help of concise, practical programs, how to run various statistic tests. With this book, you will learn
Contents:
Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introduction and Installation of Python; Introduction to Python; Installing Python; Different versions of Python; Ways to launch Python; Launching Python with GUI; Launching Python from the Python command line; Launching Python from our own DOS window; Quitting Python; Error messages; Python language is case sensitive; Initializing the variable; Finding the help window; Finding manuals and tutorials; Finding the version of Python; Summary; Exercises
Chapter 2: Using Python as an Ordinary Calculator Assigning values to variables; Displaying the value of a variable; Error messages; Can't call a variable without assignment; Choosing meaningful names; Using dir() to find variables and functions; Deleting or unsigning a variable; Basic math operations - addition, subtraction, multiplication, and division; The power function, floor, and remainder; A true power function; Choosing appropriate precision; Finding out more information about a specific built-in function; Listing all built-in functions; Importing the math module
The pi, e, log, and exponential functions""import math"" versus ""from math import *""; A few frequently used functions; The print() function; The type() function; Last expression _ (underscore); Combining two strings; The upper() function; The tuple data type; Summary; Exercises; Chapter 3: Using Python as a Financial Calculator; Writing a Python function without saving it; Default input values for a function; Indentation is critical in Python; Checking the existence of our functions; Defining functions from our Python editor; Activating our function using the import function
Debugging a program from a Python editor Two ways to call our pv_f() function; Generating our own module; Types of comments; The first type of comment; The second type of comment; Finding information about our pv_f() function; The if() function; Annuity estimation; Converting the interest rates; Continuously compounded interest rate; A data type - list; Net present value and the NPV rule; Defining the payback period and the payback period rule; Defining IRR and the IRR rule; Showing certain files in a specific subdirectory; Using Python as a financial calculator
Adding our project directory to the pathSummary; Exercises; Chapter 4: 13 Lines of Python to Price a Call Option; Writing a program - the empty shell method; Writing a program - the comment-all-out method; Using and debugging other programs; Summary; Exercises; Chapter 5: Introduction to Modules; What is a module?; Importing a module; Adopting a short name for an imported module; Showing all functions in an imported module; Comparing ""import math"" and ""from math import *""; Deleting an imported module; Importing only a few needed functions; Finding out all built-in modules
Finding out all the available modules
Notes:
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed May 17, 2014).
ISBN:
1-78328-438-2
OCLC:
880458043

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account