• 沒有找到結果。

Python Programming in Finance

N/A
N/A
Protected

Academic year: 2022

Share "Python Programming in Finance"

Copied!
54
0
0

加載中.... (立即查看全文)

全文

(1)

Python Programming in Finance

Zheng-Liang Lu (Arthur)

CSIE @ NTU

(2)

Zheng-Liang Lu

Pricing Theory

2

Lecture 6

(3)

Zheng-Liang Lu

套利利:在沒有承擔風 險的前提下,可以賺

取超額報酬。

3

(4)

Zheng-Liang Lu

風險趨避者

4

(5)

Zheng-Liang Lu

定價的精神就是 無套利利原則。

5

(6)

Zheng-Liang Lu

無風險資產只能賺取 無風險利利率的報酬。

6

(7)

Zheng-Liang Lu

天下沒有⽩白吃的午餐

7

(8)

Zheng-Liang Lu

8 買權

股票

(9)

Zheng-Liang Lu

9

(10)

Zheng-Liang Lu

10

做空這個組合

可以套利利的情況 1

(11)

Zheng-Liang Lu

11

做多這個組合

可以套利利的情況 2

(12)

Zheng-Liang Lu

12

(13)

Zheng-Liang Lu

無套利利

存在⼀一組合法的機率 ( 風險中立的機率測度,

即 Q-measure) 13

第⼀一定理理

(14)

Zheng-Liang Lu

為什什麼要談定價?

14

(15)

Zheng-Liang Lu

避險

15

(16)

Zheng-Liang Lu

避險 = 複製

16

(17)

Zheng-Liang Lu

完全市場

17

(18)

Zheng-Liang Lu

任何商品都可以被複製 的市場即完全市場。

18

(19)

Zheng-Liang Lu

完全市場

存在唯⼀一合法的機率

19

第⼆二定理理

(20)

Zheng-Liang Lu

Binomial Option Pricing Model

20

(21)

Zheng-Liang Lu

21

⼀一期模型

(22)

Zheng-Liang Lu

22

三期模型

(23)

Zheng-Liang Lu

23

(24)

Zheng-Liang Lu

24

C = e −rT E [(S T − X) + ]

(25)

Zheng-Liang Lu

C = e −rT E [(S T − X) + ]

25 折現因⼦子 風險中立測度

報酬函數 期望值

到期⽇日的標的物價格

履約價

買權價格

(26)

Zheng-Liang Lu

但, 是個隨機變數! S t

26

(27)

Zheng-Liang Lu

未來來的價格是不確定的(?)

27

(28)

Zheng-Liang Lu

隨機過程

28

(29)

Zheng-Liang Lu

布朗運動

29

Wiki

(30)

Zheng-Liang Lu

Wiener Process

30

(31)

Zheng-Liang Lu

31

(32)

Zheng-Liang Lu

32

(33)

Zheng-Liang Lu

隨機微分⽅方程式

33

(34)

Zheng-Liang Lu

34

(35)

Zheng-Liang Lu

35

(36)

Zheng-Liang Lu

36

(37)

Zheng-Liang Lu

Black, Scholes, and Merton

37

(38)

Zheng-Liang Lu

假設報酬率是布朗運動

38

(39)

Zheng-Liang Lu

dS t

S t = μdt + σdW t

39 報酬率

期望報酬率

市場波動率

不確定性的來來源

(40)

Zheng-Liang Lu

S T = S 0 e (μ− σ2 2 )T+σW T

40

By Ito’s lemma,

(41)

Zheng-Liang Lu

41

假設r = 0.1, v = 0.3, s0 = 160,模擬30個平⾏行行宇宙的價格路路徑:

(42)

Zheng-Liang Lu

42

在第250⽇日時,股價的機率分佈 (五千個平⾏行行宇宙):

價格的分佈很類似常態,精確的說為⼀一個對數常態分配 (log-normal)。

(43)

Zheng-Liang Lu

43

C = e −rT E [(S T − X) + ]

根據定價公式

我們可以透過蒙地卡羅法模擬價格路路徑,

進⽽而計算出該選擇權的價格!

(44)

Zheng-Liang Lu

C(S 0 , T) = S 0 N(d 1 ) − Xe −rT N(d 2 )

44

with

d 1 = ln( S X T ) + (r + σ 2 2 )T

σ T , d 2 = d 1 − σ T

歐式買權封閉解

Wiki

(45)

Zheng-Liang Lu

均值回歸

45

(46)

Zheng-Liang Lu

波動率微笑曲線

46

(47)

Zheng-Liang Lu

47

(48)

Zheng-Liang Lu

隨機波動率模型

48

(49)

Zheng-Liang Lu

⿊黑天鵝事件

49

https://www.moneydj.com/KMDJ/Wiki/WikiViewer.aspx?

KeyID=43c13f1c-68b9-45e8-b4e1-ed6a255cb6fe

(50)

Zheng-Liang Lu

Jump Model

50

(51)

Zheng-Liang Lu

模型校準

51

(52)

Zheng-Liang Lu

隱含波動率

52

(53)

Zheng-Liang Lu

C = f(S 0 , X, T, r, σ)

53

不可直接觀測

(54)

Zheng-Liang Lu

⽜牛頓法

54

數值⽅方法

參考文獻

相關文件

Keywords: Parisian options, barrier options, option pricing, algorithm, binomial tree model, combinatorial method, Monte Carol simulation, inverse Gaussian distribution,

• P u is the price of the i-period zero-coupon bond one period from now if the short rate makes an up move. • P d is the price of the i-period zero-coupon bond one period from now

撥開 Python, pip, site-packages

• You need to know programming (C, python, java, … anything)
 (but not necessarily Matlab).. • You need to know how to find

• Use the Black-Scholes formula with the stock price reduced by the PV of the dividends.. • This essentially decomposes the stock price into a riskless one paying known dividends and

The bivariate binomial values with 270 time steps are compared with the values generated by Hilliard and Schwartz [1996], the Hull-White stochastic volatility model [1987], and

Simonato, 1999, “An Analytical Approximation for the GARCH Option Pricing Model,” Journal of Computational Finance 2, 75- 116.

研發 生產 銷售 人事 會計及 財務