Python for Finance
暫譯: 金融中的 Python
Yuxing Yan
- 出版商: Packt Publishing
- 出版日期: 2014-04-27
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 408
- 裝訂: Paperback
- ISBN: 1783284374
- ISBN-13: 9781783284375
-
相關分類:
Python、程式語言
已過版
商品描述
If your interest is finance and trading, then using Python to build a financial calculator makes absolute sense. As does this book which is a hands-on guide covering everything from option theory to time series.
Overview- Estimate market risk, form various portfolios, and estimate their variance-covariance matrixes using real-world data
- Explains many financial concepts and trading strategies with the help of graphs
- A step-by-step tutorial with many Python programs that will help you learn how to apply Python to finance
In Detail
Python is a free and powerful tool that can be used to build a financial calculator and price options, and can also explain many trading strategies and test various hypotheses. This book details the steps needed to retrieve time series data from different public data sources.
Python for Finance 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. This book introduces you to the basic concepts and operations related to Python. You will also learn how to estimate illiquidity, Amihud (2002), liquidity measure, Pastor and Stambaugh (2003), Roll spread (1984), spread based on high-frequency data, beta (rolling beta), draw volatility smile and skewness, and construct a binomial tree to price American options.
This book is a hands-on guide with easy-to-follow examples to help you learn about option theory, quantitative finance, financial modeling, and time series using Python.
What you will learn from this book
- Build a financial calculator based on Python
- Learn how to price various types of options such as European, American, average, lookback, and barrier options
- Write Python programs to download data from Yahoo! Finance
- Estimate returns and convert daily returns into monthly or annual returns
- Form an n-stock portfolio and estimate its variance-covariance matrix
- Estimate VaR (Value at Risk) for a stock or portfolio
- Run CAPM (Capital Asset Pricing Model) and the Fama-French 3-factor model
- Learn how to optimize a portfolio and draw an efficient frontier
- Conduct various statistic tests such as T-tests, F-tests, and normality tests
Approach
A hands-on guide with easy-to-follow examples to help you learn about option theory, quantitative finance, financial modeling, and time series using Python.
商品描述(中文翻譯)
如果您的興趣在於金融和交易,那麼使用 Python 建立一個金融計算器是非常合理的。本書也是如此,它是一個實用的指南,涵蓋了從選擇權理論到時間序列的所有內容。
**概述**
- 使用真實世界數據估算市場風險,形成各種投資組合,並估算其變異數-協方差矩陣
- 透過圖表解釋許多金融概念和交易策略
- 一個逐步的教程,包含許多 Python 程式,幫助您學習如何將 Python 應用於金融
**詳細內容**
Python 是一個免費且強大的工具,可以用來建立金融計算器和定價選擇權,並且可以解釋許多交易策略和測試各種假設。本書詳細說明了從不同公共數據來源檢索時間序列數據所需的步驟。
《Python for Finance》探討了 Python 編程的基本知識。這是一個逐步的教程,將通過簡潔、實用的程式教您如何執行各種統計測試。本書介紹了與 Python 相關的基本概念和操作。您還將學習如何估算流動性不足、Amihud (2002) 的流動性測量、Pastor 和 Stambaugh (2003)、Roll spread (1984)、基於高頻數據的價差、beta (滾動 beta)、繪製波動率微笑和偏度,以及構建二項樹來定價美式選擇權。
本書是一個實用的指南,提供易於遵循的範例,幫助您使用 Python 學習選擇權理論、量化金融、金融建模和時間序列。
**您將從本書中學到什麼**
- 基於 Python 建立金融計算器
- 學習如何定價各類型的選擇權,如歐式、美式、平均、回溯和障礙選擇權
- 編寫 Python 程式從 Yahoo! Finance 下載數據
- 估算回報並將每日回報轉換為每月或每年回報
- 形成 n 隻股票的投資組合並估算其變異數-協方差矩陣
- 估算股票或投資組合的 VaR (風險價值)
- 執行 CAPM (資本資產定價模型) 和 Fama-French 三因子模型
- 學習如何優化投資組合並繪製有效邊界
- 進行各種統計測試,如 T 測試、F 測試和常態性測試
**方法**
這是一個實用的指南,提供易於遵循的範例,幫助您使用 Python 學習選擇權理論、量化金融、金融建模和時間序列。