Python for finance : (Record no. 22698)

MARC details
000 -LEADER
fixed length control field 11908nam a22001817a 4500
020 ## - INTERNATIONAL STANDARD BOOK NUMBER
ISBN 9781787125698
082 ## - DEWEY DECIMAL CLASSIFICATION NUMBER
Classification number 005.133
Item number YAN
100 ## - MAIN ENTRY--AUTHOR NAME
Author name Yan, Yuxing
245 ## - TITLE STATEMENT
Title Python for finance :
Sub Title apply powerful finance models and quantitative analysis with Python /
Statement of responsibility, etc Yuxing Yan
250 ## - EDITION STATEMENT
Edition statement 2nd ed.
260 ## - PUBLICATION, DISTRIBUTION, ETC. (IMPRINT)
Place of publication Mumbai :
Name of publisher Packet ,
Year of publication 2017.
300 ## - PHYSICAL DESCRIPTION
Number of Pages xvii, 558 pages ;
Other physical details illustration ;
Dimensions 28 cm.
505 ## - FORMATTED CONTENTS NOTE
Formatted contents note Python for Finance Second Edition<br/>Table of Contents<br/>Python for Finance Second Edition<br/>Credits<br/>About the Author<br/>About the Reviewers<br/>www.PacktPub.com<br/>eBooks, discount offers, and more<br/>Why subscribe?<br/>Customer Feedback<br/>Preface<br/>A few words for the second edition<br/>Why Python?<br/>A programming book written by a finance professor<br/>What this book covers<br/>Small-program oriented<br/>Using real-world data<br/>What you need for this book<br/>Who this book is for<br/>Conventions<br/>Reader feedback<br/>Customer support<br/>Downloading the example code<br/>Errata<br/>Piracy<br/>Questions<br/>1. Python Basics<br/>Python installation<br/>Installation of Python via Anaconda<br/>Launching Python via Spyder<br/>Direct installation of Python<br/>Variable assignment, empty space, and writing our own programs<br/>Writing a Python function<br/>Python loops<br/>Python loops, if...else conditions<br/>Data input<br/>Data manipulation<br/>Data output<br/>Exercises<br/>Summary<br/>2. Introduction to Python Modules<br/>What is a Python module?<br/>Introduction to NumPy<br/>Introduction to SciPy<br/>Introduction to matplotlib<br/>How to install matplotlib<br/>Several graphical presentations using matplotlib<br/>Introduction to statsmodels<br/>Introduction to pandas<br/>Python modules related to finance<br/>Introduction to the pandas_reader module<br/>Two financial calculators<br/>How to install a Python module<br/>Module dependency<br/>Exercises<br/>Summary<br/>3. Time Value of Money<br/>Introduction to time value of money<br/>Writing a financial calculator in Python<br/>Definition of NPV and NPV rule<br/>Definition of IRR and IRR rule<br/>Definition of payback period and payback period rule<br/>Writing your own financial calculator in Python<br/>Two general formulae for many functions<br/>Appendix A – Installation of Python, NumPy, and SciPy<br/>Appendix B – visual presentation of time value of money<br/>Appendix C – Derivation of present value of annuity from present value of one future cash flow and present value of perpetuity<br/>Appendix D – How to download a free financial calculat<br/>Appendix E – The graphical presentation of the relationship between NPV and R<br/>Appendix F – graphical presentation of NPV profile with two IRRs<br/>Appendix G – Writing your own financial calculator in Python<br/>Exercises<br/>Summary<br/>4. Sources of Data<br/>Diving into deeper concepts<br/>Retrieving data from Yahoo!Finance<br/>Retrieving data from Google Finance<br/>Retrieving data from FRED<br/>Retrieving data from Prof. French's data library<br/>Retrieving data from the Census Bureau, Treasury, and BLS<br/>Generating two dozen datasets<br/>Several datasets related to CRSP and Compustat<br/>Appendix A – Python program for return distribution versus a normal distribution<br/>Appendix B – Python program to a draw candle-stick picture<br/>Appendix C – Python program for price movement<br/>Appendix D – Python program to show a picture of a stock's intra-day movement<br/>Appendix E –properties for a pandas DataFrame<br/>Appendix F –how to generate a Python dataset with an extension of .pkl or .pickle<br/>Appendix G – data case #1 -generating several Python datasets<br/>Exercises<br/>Summary<br/>5. Bond and Stock Valuation<br/>Introduction to interest rates<br/>Term structure of interest rates<br/>Bond evaluation<br/>Stock valuation<br/>A new data type – dictionary<br/>Appendix A – simple interest rate versus compounding interest rate<br/>Appendix B – several Python functions related to interest conversion<br/>Appendix C – Python program for rateYan.py<br/>Appendix D – Python program to estimate stock price based on an n-period model<br/>Appendix E – Python program to estimate the duration for a bond<br/>Appendix F – data case #2 – fund raised from a new bond issue<br/>Summary<br/>6. Capital Asset Pricing Model<br/>Introduction to CAPM<br/>Moving beta<br/>Adjusted beta<br/>Scholes and William adjusted beta<br/>Extracting output data<br/>Outputting data to text files<br/>Saving our data to a .csv file<br/>Saving our data to an Excel file<br/>Saving our data to a pickle dataset<br/>Saving our data to a binary file<br/>Reading data from a binary file<br/>Simple string manipulation<br/>Python via Canopy<br/>References<br/>Exercises<br/>Summary<br/>7. Multifactor Models and Performance Measures<br/>Introduction to the Fama-French three-factor model<br/>Fama-French three-factor model<br/>Fama-French-Carhart four-factor model and Fama-French five-factor model<br/>Implementation of Dimson (1979) adjustment for beta<br/>Performance measures<br/>How to merge different datasets<br/>Appendix A – list of related Python datasets<br/>Appendix B – Python program to generate ffMonthly.pkl<br/>Appendix C – Python program for Sharpe ratio<br/>Appendix D – data case #4 – which model is the best, CAPM, FF3, FFC4, or FF5, or others?<br/>References<br/>Exercises<br/>Summary<br/>8. Time-Series Analysis<br/>Introduction to time-series analysis<br/>Merging datasets based on a date variable<br/>Using pandas.date_range() to generate one dimensional time-series<br/>Return estimation<br/>Converting daily returns to monthly ones<br/>Merging datasets by date<br/>Understanding the interpolation technique<br/>Merging data with different frequencies<br/>Tests of normality<br/>Estimating fat tails<br/>T-test and F-test<br/>Tests of equal variances<br/>Testing the January effect<br/>52-week high and low trading strategy<br/>Estimating Roll's spread<br/>Estimating Amihud's illiquidity<br/>Estimating Pastor and Stambaugh (2003) liquidity measure<br/>Fama-MacBeth regression<br/>Durbin-Watson<br/>Python for high-frequency data<br/>Spread estimated based on high-frequency data<br/>Introduction to CRSP<br/>References<br/>Appendix A – Python program to generate GDP dataset usGDPquarterly2.pkl<br/>Appendix B – critical values of F for the 0.05 significance level<br/>Appendix C – data case #4 - which political party manages the economy better?<br/>Exercises<br/>Summary<br/>9. Portfolio Theory<br/>Introduction to portfolio theory<br/>A 2-stock portfolio<br/>Optimization – minimization<br/>Forming an n-stock portfolio<br/>Constructing an optimal portfolio<br/>Constructing an efficient frontier with n stocks<br/>References<br/>Appendix A – data case #5 - which industry portfolio do you prefer?<br/>Appendix B – data case #6 - replicate S&P500 monthly returns<br/>Exercises<br/>Summary<br/>10. Options and Futures<br/>Introducing futures<br/>Payoff and profit/loss functions for call and put options<br/>European versus American options<br/>Understanding cash flows, types of options, rights and obligations<br/>Black-Scholes-Merton option model on non-dividend paying stocks<br/>Generating our own module p4f<br/>European options with known dividends<br/>Various trading strategies<br/>Covered-call – long a stock and short a call<br/>Straddle – buy a call and a put with the same exercise prices<br/>Butterfly with calls<br/>The relationship between input values and option values<br/>Greeks<br/>Put-call parity and its graphic presentation<br/>The put-call ratio for a short period with a trend<br/>Binomial tree and its graphic presentation<br/>Binomial tree (CRR) method for European options<br/>Binomial tree (CRR) method for American options<br/>Hedging strategies<br/>Implied volatility<br/>Binary-search<br/>Retrieving option data from Yahoo! Finance<br/>Volatility smile and skewness<br/>References<br/>Appendix A – data case 6: portfolio insurance<br/>Exercises<br/>Summary<br/>11. Value at Risk<br/>Introduction to VaR<br/>Normality tests<br/>Skewness and kurtosis<br/>Modified VaR<br/>VaR based on sorted historical returns<br/>Simulation and VaR<br/>VaR for portfolios<br/>Backtesting and stress testing<br/>Expected shortfall<br/>Appendix A – data case 7 – VaR estimation for individual stocks and a portfolio<br/>References<br/>Exercises<br/>Summary<br/>12. Monte Carlo Simulation<br/>Importance of Monte Carlo Simulation<br/>Generating random numbers from a standard normal distribution<br/>Drawing random samples from a normal distribution<br/>Generating random numbers with a seed<br/>Random numbers from a normal distribution<br/>Histogram for a normal distribution<br/>Graphical presentation of a lognormal distribution<br/>Generating random numbers from a uniform distribution<br/>Using simulation to estimate the pi value<br/>Generating random numbers from a Poisson distribution<br/>Selecting m stocks randomly from n given stocks<br/>With/without replacements<br/>Distribution of annual returns<br/>Simulation of stock price movements<br/>Graphical presentation of stock prices at options' maturity dates<br/>Replicating a Black-Scholes-Merton call using simulation<br/>Exotic option #1 – using the Monte Carlo Simulation to price average<br/>Exotic option #2 – pricing barrier options using the Monte Carlo Simulation<br/>Liking two methods for VaR using simulation<br/>Capital budgeting with Monte Carlo Simulation<br/>Python SimPy module<br/>Comparison between two social policies – basic income and basic job<br/>Finding an efficient frontier based on two stocks by using simulation<br/>Constructing an efficient frontier with n stocks<br/>Long-term return forecasting<br/>Efficiency, Quasi-Monte Carlo, and Sobol sequences<br/>Appendix A – data case #8 - Monte Carlo Simulation and blackjack<br/>References<br/>Exercises<br/>Summary<br/>13. Credit Risk Analysis<br/>Introduction to credit risk analysis<br/>Credit rating<br/>Credit spread<br/>YIELD of AAA-rated bond, Altman Z-score<br/>Using the KMV model to estimate the market value of total assets and its volatility<br/>Term structure of interest rate<br/>Distance to default<br/>Credit default swap<br/>Appendix A – data case #8 - predicting bankruptcy by using Z-score<br/>References<br/>Exercises<br/>Summary<br/>14. Exotic Options<br/>European, American, and Bermuda options<br/>Chooser options<br/>Shout options<br/>Binary options<br/>Rainbow options<br/>Pricing average options<br/>Pricing barrier options<br/>Barrier in-and-out parity<br/>Graph of up-and-out and up-and-in parity<br/>Pricing lookback options with floating strikes<br/>Appendix A – data case 7 – hedging crude oil<br/>References<br/>Exercises<br/>Summary<br/>15. Volatility, Implied Volatility, ARCH, and GARCH<br/>Conventional volatility measure – standard deviation<br/>Tests of normality<br/>Estimating fat tails<br/>Lower partial standard deviation and Sortino ratio<br/>Test of equivalency of volatility over two periods<br/>Test of heteroskedasticity, Breusch, and Pagan<br/>Volatility smile and skewness<br/>Graphical presentation of volatility clustering<br/>The ARCH model<br/>Simulating an ARCH (1) process<br/>The GARCH model<br/>Simulating a GARCH process<br/>Simulating a GARCH (p,q) process using modified garchSim()<br/>GJR_GARCH by Glosten, Jagannanthan, and Runkle<br/>References<br/>Appendix A – data case 8 - portfolio hedging using VIX calls<br/>References<br/>Appendix B – data case 8 - volatility smile and its implications<br/>Exercises<br/>Summary<br/>Index
520 ## - SUMMARY, ETC.
Summary, etc This book is organized according to various finance subjects. In other words, the first edition focuses more on Python, while the second edition is truly trying to apply Python to finance.<br/><br/>The book starts by explaining topics exclusively related to Python. Then we deal with critical parts of Python, explaining concepts such as time value of money stock and bond evaluations, capital asset pricing model, multi-factor models, time series analysis, portfolio theory, options and futures.<br/><br/>This book will help us to learn or review the basics of quantitative finance and apply Python to solve various problems, such as estimating IBM’s market risk, running a Fama-French 3-factor, 5-factor, or Fama-French-Carhart 4 factor model, estimating the VaR of a 5-stock portfolio, estimating the optimal portfolio, and constructing the efficient frontier for a 20-stock portfolio with real-world stock, and with Monte Carlo Simulation. Later, we will also learn how to replicate the famous Black-Scholes-Merton option model and how to price exotic options such as the average price call option.
650 ## - SUBJECT ADDED ENTRY--TOPICAL TERM
Subject Python
650 ## - SUBJECT ADDED ENTRY--TOPICAL TERM
Subject Finance
942 ## - ADDED ENTRY ELEMENTS (KOHA)
Source of classification or shelving scheme Dewey Decimal Classification
Koha item type Books
Holdings
Withdrawn status Lost status Source of classification or shelving scheme Damaged status Not for loan Home library Current library Shelving location Date acquired Source of acquisition Cost, normal purchase price Bill Date Full call number Accession Number Price effective from Koha item type
    Dewey Decimal Classification     Institute of Public Enterprise, Library Institute of Public Enterprise, Library S Campus 08/21/2023 Professional Book Services 3899.00 09-08-2023 005.133 YAN 47713 08/21/2023 Books
    Dewey Decimal Classification     Institute of Public Enterprise, Library Institute of Public Enterprise, Library S Campus 08/21/2023 Professional Book Services 3899.00 09-08-2023 005.133 YAN 47714 08/21/2023 Books

Maintained and Designed by
2cqr automation private limited, Chennai. All Rights Reserved.

You are Visitor Number

PHP Hits Count