파일:Zins-Vasicek.png
testwiki
둘러보기로 이동
검색으로 이동
미리 보기 크기: 800 × 514 픽셀 다른 해상도: 320 × 205 픽셀 | 640 × 411 픽셀 | 1,003 × 644 픽셀
원본 파일 (1,003 × 644 픽셀, 파일 크기: 12 KB, MIME 종류: image/png)
이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.
| 설명Zins-Vasicek.png | a path of a gaussion ornstein uhlenbeck short rate process and the corresponding yield curve at T=0 (purple) and some points in time later. |
| 날짜 | |
| 출처 | created by myself with GNU R, see source below |
| 저자 | Thomas Steiner |
| 저작권 (이 파일을 인용하기) |
Thomas Steiner put it under the CC-by-SA 2.5. |
이 파일은 크리에이티브 커먼즈 저작자표시-동일조건변경허락 2.5 일반 라이선스로 배포됩니다.
- 이용자는 다음의 권리를 갖습니다:
- 공유 및 이용 – 저작물의 복제, 배포, 전시, 공연 및 공중송신
- 개작 – 저작물의 개작, 수정, 2차적저작물 창작
- 다음과 같은 조건을 따라야 합니다:
- 저작자표시 – 적절한 저작자 표시를 제공하고, 라이선스에 대한 링크를 제공하고, 변경사항이 있는지를 표시해야 합니다. 당신은 합리적인 방식으로 표시할 수 있지만, 어떤 방식으로든 사용권 허가자가 당신 또는 당신의 사용을 지지하는 방식으로 표시할 수 없습니다.
- 동일조건변경허락 – 만약 당신이 이 저작물을 개작 또는 변형하거나 이 저작물을 기반으로 제작하는 경우, 당신은 당신의 기여물을 원저작물과 동일하거나 호환 가능한 라이선스에 따라 배포하여야 합니다.
R-source:
## einfachstes bsp, yields in Vasicek, Notation wie Brigo/Mercurio
#übernimmt log(z) als Parameter (nichtnegativ)
yvas<-function(ttm,para,rt) {
lambda=exp(para$lambda)
theta=exp(para$theta)
sigma2=(exp(para$sigma))^2
B=1/lambda*(1-exp(-lambda*ttm))
lnA=(theta-sigma2/(2*lambda^2))*(B-ttm)-sigma2/(4*lambda)*B^2
return( -(lnA-B*rt)/ttm )
}
### OU-levy processes ################################
## starting at time t=0 at Z_0=para$r until time t=T in "steps" equidistant steps; mean reversion "mr"
## parameters of the distribution of the bdlp are stored in param
process.ou<-function(para,type,T=1,steps=500) {
dt=T/(steps-1)
ou=array(para$r,dim=steps)
if (type=="cauchy") {
dLt=rcauchy(steps-1, location=para$location, scale=para$scale*dt)
} else if (type=="gamma") {
dLt=rgamma(n=steps-1, shape=para$shape, scale=para$scale*dt)
} else if (type=="IG") {
dLt=rinvGauss(n=steps-1, nu=(para$delta*dt)/para$gamma, lambda=(para$delta*dt)^2)
} else if (type=="norm") {
dLt=rnorm(n=steps-1, mean=para$lambda*para$theta*dt, sd=para$sigma*dt)
} else {
print("process.ou:: this type of OU-process is not yet implemented")
}
for (tm in 1:(steps-1)) {
ou[tm+1]=ou[tm]-para$lambda*ou[tm]*dt+dLt[tm]
}
return (ou)
}
set.seed(28019180)
time=seq(0,14,length=700)
pa=list(lambda=2,theta=0.04,sigma=0.2,r=0.08)
lpa=list(lambda=log(pa$lambda),theta=log(pa$theta),sigma=log(pa$sigma)) #log-parameter
gou=process.ou(pa,"norm",T=14,steps=length(time))
plot(time,gou,type="l",lwd=2,axes=F,xlab="Zeit",ylab="Zins",main="Zinsen im Vasicek-Modell",cex.main=2)
abline(h=pa$theta-pa$sigma^2/(2*pa$lambda^2),lty="dotted",col="grey")
lines(time,yvas(time,lpa,pa$r),col="purple",lwd=2)
yticks=axTicks(2)
axis(1)
axis(side=2,at=yticks,labels=paste(format(100*yticks,digits=3),"%",sep=""))
text(x=10.4,y=0.0325,expression(paste("d",r[t]==2(0.04-r[t]),"dt+",0.2,r[t],"d", W[t])),cex=1.4)
설명
이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다
3 7 2007
파일 역사
날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.
| 날짜/시간 | 섬네일 | 크기 | 사용자 | 설명 | |
|---|---|---|---|---|---|
| 현재 | 2011년 10월 16일 (일) 07:15 | 1,003 × 644 (12 KB) | wikimediacommons>Thire | 2 neue kurven |
이 파일을 사용하는 문서
이 파일을 사용하는 문서가 없습니다.