Fitxer:Girsanov.png

De testwiki
Salta a la navegació Salta a la cerca
Fitxer original (1.212 × 714 píxels, mida del fitxer: 62 Ko, tipus MIME: image/png)

Aquest fitxer prové de Wikimedia Commons i pot ser usat per altres projectes. La descripció de la seva pàgina de descripció es mostra a continuació.

Resum

Descripció
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.
Data
Font created with GNU R, see source below
Autor Martin Keller-Ressel (uploaded by Thomas Steiner)
Permís
(Com reutilitzar aquest fitxer)
Martin Keller-Ressel put it under the GFDL
PNG genesis
InfoField
 Aquesta PNG imatge rasteritzada ha estat creada amb R
Codi font
InfoField

R code

set.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()

Llicència

GNU head S'autoritza la còpia, la distribució i la modificació d'aquest document sota els termes de la llicència de documentació lliure GNU versió 1.2 o qualsevol altra versió posterior que publiqui la Free Software Foundation; sense seccions invariants, ni textos de portada, ni textos de contraportada. S'inclou una còpia d'aquesta llicència en la secció titulada GNU Free Documentation License.
w:ca:Creative Commons
reconeixement compartir igual
Aquest fitxer està subjecte a la llicència Creative Commons Reconeixement-CompartirIgual 3.0 No adaptada.
Sou lliure de:
  • compartir – copiar, distribuir i comunicar públicament l'obra
  • adaptar – fer-ne obres derivades
Amb les condicions següents:
  • reconeixement – Heu de donar la informació adequada sobre l'autor, proporcionar un enllaç a la llicència i indicar si s'han realitzat canvis. Podeu fer-ho amb qualsevol mitjà raonable, però de cap manera no suggereixi que l'autor us dóna suport o aprova l'ús que en feu.
  • compartir igual – Si modifiqueu, transformeu, o creeu a partir del material, heu de distribuir les vostres contribucions sota una llicència similar o una de compatible amb l'original.
Aquest avís de llicència s'ha afegit a aquest fitxer d'acord amb l'actualització de la llicència GFDL.

Llegendes

Afegeix una explicació d&#039;una línia del que representa aquest fitxer

Elements representats en aquest fitxer

representa l'entitat

Historial del fitxer

Cliqueu una data/hora per veure el fitxer tal com era aleshores.

Data/horaMiniaturaDimensionsUsuari/aComentari
actual13:43, 7 jul 2006Miniatura per a la versió del 13:43, 7 jul 20061.212 × 714 (62 Ko)wikimediacommons>Thire{{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

La pàgina següent utilitza aquest fitxer: