File:Girsanov.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this preview: 800 × 471 pixels. Other resolutions: 320 × 189 pixels | 640 × 377 pixels | 1,212 × 714 pixels.
Original file (1,212 × 714 pixels, file size: 62 KB, MIME type: image/png)
File information
Structured data
Captions
Summary
[edit]DescriptionGirsanov.png |
English: Visualisation of the Girsanov theorem — The left side shows a Wiener process with negative drift under a canonical measure P; on the right side each path of the process is colored according to its likelihood under the martingale measure Q. The density transformation from P to Q is given by the Girsanov theorem. |
Date | |
Source | created with GNU R, see source below |
Author | Martin Keller-Ressel (uploaded by Thomas Steiner) |
Permission (Reusing this file) |
Martin Keller-Ressel put it under the GFDL |
PNG development InfoField | |
Source code InfoField | R codeset.seed(145)
par("mar"=c(4,2,2,2))
npath <- 30
N <- 1000
t <- seq(0,1,length=N+1)
sigma = 0.5
nu = - 0.7
hue = 0.03
dampen = 0.25
BM.norm <- matrix(rnorm(npath*N,sd=1/sqrt(N),mean=0),ncol = npath)
BM.norm <- rbind(0,apply(BM.norm,2,cumsum))
tmat <- matrix(rep(t,npath),ncol=npath,byrow=FALSE)
BM <- sigma*BM.norm + tmat*nu
weights.orig <- matrix(1,ncol=npath,nrow=1)
png(file="girsanov.png",height=714,width=1212)
par(mfrow=c(1,2))
plot.new()
plot.window(xlim = c(0,1),ylim=range(BM))
col.orig <- hsv(h=hue,s=0.6*weights.orig,v=.95)
for(i in 1:npath) {
lines(t,BM[,i],cex=1.5,col=col.orig[i])
}
box(col="grey",cex=1.5)
title(sub="30 paths of a Brownian motion with negative drift",line=2,col.sub="grey10")
girsanov.weights <- exp(dampen * (-nu/sigma*BM.norm[N,] - 0.5*(nu/sigma)^2))
girsanov.weights <- (girsanov.weights - min(girsanov.weights)) / diff(range(girsanov.weights))
col.girsanov <- hsv(h=hue,s=girsanov.weights,v=0.95)
plot.new()
plot.window(xlim = c(0,1),ylim=range(BM))
for(i in 1:npath) {
lines(t,BM[,i],cex=1.5,col=col.girsanov[i])
}
title(sub="The same paths reweighted according to the Girsanov formula",line=2,col.sub="grey10")
box(col="grey",cex=1.5)
dev.off()
|
Licensing
[edit]Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 12:43, 7 July 2006 | 1,212 × 714 (62 KB) | Thire (talk | contribs) | {{Information| |Description = visualisation of the girsanov theorem by a change of measure of a brownian motion which removes the (negiave) drift |Source = chreated with GNU R, see source below |Date = 7. july 2006 |Author = Martin Keller-Ressel (uploaded |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on de.wikipedia.org
- Usage on en.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on pt.wikipedia.org
- Usage on uk.wikipedia.org