Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Options Futures and Other Derivatives 8th eDITION

NotificationsYou must be signed in to change notification settings

liangnnbcn/Options-Futures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 

Repository files navigation

Options Futures and Other Derivatives 8th eDITION

hello

chapter 13.Wiener Process and Ito Lemma

13.1 the markov property


a type of stochastic process,only time

13.2 CONTINUOUS-TIME STOCHASTIC PROCESSES


Wiener Process(Brownian Motion)
u=0,v=1
one type of markov

importpandasaspdimportnumpyasnpimportstatsmodels.apiassmimportscipy.statsassciimportmatplotlib.pyplotasplt# dz = e * (dt**0.5)T=1000dT=1k=dT**0.5N=T/dTport_er= []port_dT= []cer=0cdT=0forpinrange(T):    er=np.random.randn(1)# sigma*np.random.randn()+mu产生sigma&mu的分布cer=cer+er*kcdT=cdT+dTport_er.append(cer)port_dT.append(cdT)port_er=np.array(port_er)port_dT=np.array(port_dT)plt.figure(figsize=(8,4))# 整体区域大小plt.scatter(port_dT,port_er,c=port_er,marker='o')# 按c分成不同的颜色,五颜六色;marker是点的类型,o是小圆圈plt.grid(True)# 网格plt.xlabel('dT')#累积时间,dTplt.ylabel('Z')#累积Z,port_eplt.colorbar(label='Z')

Generalized Wiener Process

dx = adt + bdz

T=1000dT=1k=dT**0.5N=T/dTport_er= []port_dT= []port_x=[]port_y= []cer=0cdT=0a=0.03b=1.5cx=0cy=0forpinrange(T):    er=np.random.randn(1)# sigma*np.random.randn()+mu产生sigma&mu的分布cer=cer+er*kcdT=cdT+dTcx=cx+a*dT+b*er*kcy=cy+a*dTport_er.append(cer)port_dT.append(cdT)port_x.append(cx)port_y.append(cy)port_er=np.array(port_er)port_dT=np.array(port_dT)port_x=np.array(port_x)port_y=np.array(port_y)plt.figure(figsize=(8,4))# 整体区域大小plt.scatter(port_dT,port_er,c=port_er,marker='o')# 按c分成不同的颜色,五颜六色;marker是点的类型,o是小圆圈plt.scatter(port_dT,port_x,c=port_er,marker='o')plt.scatter(port_dT,port_y,c=port_er,marker='o')plt.grid(True)# 网格plt.xlabel('dT')#累积时间,dTplt.ylabel('Z')#累积Z,port_eplt.colorbar(label='Z')

ps.1.2.q world vs. p world

About

Options Futures and Other Derivatives 8th eDITION

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp