Skip to content
项目

关于

使用 Python 将蒙特卡洛方法应用于金融工程项目。

商业与金融

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Financial Engineering

Python projects in financial engineering.

Merton's Jump Diffusion Model (1976)

This is an application of Monte Carlo methods [1] to the pricing of options on stocks when the underlying asset has occasional jumps in the trajectories. Merton [2] describes such jumps as "idiosynchratic shocks affecting an individual company but not the market as a whole". The jump component makes the distribution of prices leptokurtic (high peak, heavy tails), a feature typical of market data.

The model builds on the standard Brownian motion, which can also be generated using the willow tree.

Link to Python module

merton-jump-diffusion-model

[1] Glasserman, P. (2003) Monte Carlo Methods in Financial Engineering, Springer Applications of Mathematics, Vol. 53

[2] Merton, R.C. (1976) Option pricing when underlying stock returns are discontinuous, Journal of Financial Economics, 3:125-144

Dependencies

financial-engineering requires Python 3.5+, and is built on top of the following libraries:

  • NumPy: v. 1.13+
  • SciPy: v. 0.19+
  • Matplotlib: v. 2.0+
  • Seaborn: v. 0.8+

Installation

The source code is currently hosted on GitHub at: https://github.com/federicomariamassari/financial-engineering. Either clone or download the git repository. To clone the repository, on either Terminal (macOS) or Command Prompt (Windows) enter the folder inside which you want the repository to be, possibly changing directory with cd <desired path>, and execute:

$ git clone https://github.com/federicomariamassari/financial-engineering.git

Contributing

This is a small but continuously evolving project open to anyone willing to contribute—simply fork the repository and modify its content. Any improvement, in terms of code speed and readability, or inclusion of new models (such as those from Glasserman's book), is more than welcome. For git commits, it is desirable to follow Udacity's Git Commit Message Style Guide.

Feel free to bookmark, or "star", the repository if you find this project interesting. Thank you for your support!

探索相关项目

加载中…