随笔分类 -  金融应用

摘要:一.基本数据类型 1.整形 2.浮点型 b.as_integer_ratio() Out[81]: (1, 4) import decimal from decimal import Decimal decimal.getcontext() Out[82]: Context(prec=8, roun 阅读全文
posted @ 2018-05-16 15:44 Jin_liang 阅读(923) 评论(0) 推荐(0)
摘要:一.基于不付息的欧式期权看涨BSM公式 假定股票服从下列微分方程: 期权定价公式: 二.蒙特卡洛模拟 7.124219040864565 0.0 阅读全文
posted @ 2018-05-16 15:20 Jin_liang 阅读(8833) 评论(0) 推荐(0)
摘要:1.1.创建DataFrame Out[6]: numa 10b 20c 30d 40 1.2 标签和索引 1.2.1行和列的标签 1.2..2 索引 ix可以索引某特定的行,也可以以列表的形式去索引 1.2.3 切片 1.2.4 apply函数 将lambda函数应用到每一个数值 1.3 维度的扩 阅读全文
posted @ 2018-05-11 11:33 Jin_liang 阅读(1349) 评论(0) 推荐(0)
摘要:matplotlib 库( http://www.matp1otlìb.org )的基本可视化功能。 主要是2-D绘图、金融绘图和3-D绘图 一.2-D绘图 1.1一维数据集 其实,不需要输入x参数也可以绘图,因为plot 会注意到何时传递了ndarray 对象。在这种情况下,没有必要提供x 值的" 阅读全文
posted @ 2018-05-10 11:15 Jin_liang 阅读(4343) 评论(0) 推荐(0)