ファイル:OrnsteinUhlenbeck3.png
提供: testwiki
ナビゲーションに移動
検索に移動
OrnsteinUhlenbeck3.png (800 × 600 ピクセル、ファイルサイズ: 42キロバイト、MIME タイプ: image/png)
このファイルはウィキメディア・コモンズのものであり、他のプロジェクトで使用されている可能性があります。 ウィキメディア・コモンズでのファイル解説ページにある説明を以下に示します。
| 解説OrnsteinUhlenbeck3.png |
three sample paths of an Ornstein-Uhlenbeck Process English: three sample paths of different OU-processes with θ=1, μ=1.2, σ=0.3: navy: initial value a=0 (a.s.) |
| 日付 | |
| 原典 | made with the free software R, see the source code at the bottom |
| 作者 | Thomas Steiner |
| 許可 (ファイルの再利用) |
Thomas Steiner put it under the GFDL |
| その他のバージョン | Image:OrnsteinUhlenbeck.png (replaced because such a filename exists in the german wikipedia) |
| この文書は、フリーソフトウェア財団発行のGNUフリー文書利用許諾書 (GNU Free Documentation License) 1.2またはそれ以降のバージョンの規約に基づき、複製や再配布、改変が許可されます。不可変更部分、表紙、背表紙はありません。このライセンスの複製は、GNUフリー文書利用許諾書という章に含まれています。http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
| このファイルはクリエイティブ・コモンズ 表示-継承 3.0 非移植ライセンスのもとに利用を許諾されています。 | ||
| ||
| このライセンスのテンプレートは、GFDLのライセンス・アップデートによりこのファイルに追加されたものです。http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
R-Quelltext:
#Orenstein-Uhlenbeck Prozess mit normalverteiltem Anfangswert
ou<-function(theta=1, mu=1.2, sigma=0.3, init=c(mu, sigma^2/(2*theta)), from=0, to=2, steps=500*(to-from)) {
t<-seq(from,to,length=steps)
oup<-rnorm(n=1,mean=init[1],sd=sqrt(init[2]))
for (i in (1:(steps-1))) {
oup[i+1]=oup[i] + theta*(mu-oup[i])*(to-from)/steps+sigma*rnorm(n=1,mean=0,sd=sqrt(sigma^2*(to-from)/steps))
}
return(oup)
}
cols=c("navy", "darkolivegreen4", "red")
t<-seq(0,2,length=1000)
set.seed(311051)
png(filename="OrnsteinUhlenbeck3.png", width=1200, height=900, pointsize=12)
par(bg="lightgrey")
matplot(t,ou(init=c(0,0)),type="l", xlab="", ylab="",col=cols[1], lwd=2, ylim=c(0,2))
lines(t,ou(init=c(2,0)),col=cols[2], lwd=2)
lines(t,ou(),col=cols[3], lwd=2)
title(main="Ornstein - Uhlenbeck", cex.main=2.5)
text(x=1.85,y=0,expression(list(theta==1, mu==1.2, sigma == 0.3)) )
text(x=1.55,y=1.75,expression(paste("d",X[t]==theta(mu-X[t]),"dt+",sigma,"d", W[t])),cex=2.5)
text(x=0,y=0.07, expression(X[0]==0),col=cols[1])
text(x=0,y=1.92, expression(X[0]==2),col=cols[2])
text(x=0.03,y=1.29, expression(paste(X[0], "~N(", mu,",", frac(sigma^2,2*theta), ")") ),col=cols[3])
abline(h=1.2, lty=3, col="grey25")
dev.off()
キャプション
このファイルの内容を1行で記述してください
このファイルに描写されている項目
題材
20 12 2005
image/png
ファイルの履歴
過去の版のファイルを表示するには、その版の日時をクリックしてください。
| 日時 | サムネイル | 寸法 | 利用者 | コメント | |
|---|---|---|---|---|---|
| 現在の版 | 2017年1月29日 (日) 04:55 | 800 × 600 (42キロバイト) | wikimediacommons>Vitez Hirald | high contrast |
ファイルの使用状況
以下のページがこのファイルを使用しています:
