File:VaR graph.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (1,223 × 686 pixels, file size: 6 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents
Description Illustration of the 10% Value at Risk with normally distibuted portfoliovalue
Date
Source Created with GNU R, see source below
Author Thomas Steiner
Permission
(Reusing this file)
Thomas Steiner put it under the GFDL


This diagram image could be re-created using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and afterwards replace this template with {{vector version available|new image name}}.


It is recommended to name the SVG file “VaR graph.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.


GNU head 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.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
 
This chart was created with R.

R-source code

#value at risk graph

quant=0.10

min=-1.7
max=4.6
mean=2.1
s=seq(min,max,length=10000)
d=dnorm(s,mean=mean)
q=qnorm(quant,mean=mean)
sq=c(s[s<q],q,min)
dq=c(d[s<q],0,0)
 
png(filename = "VaR_graph.png", width=1300, height=800, pointsize=12)
par(bg="whitesmoke")
plot(s,d,type="n",xlab="Portfoliowert [in Mio. EUR]",ylab="Wahrscheinlichkeit",main="Value at Risk",xlim=range(s)*0.935)
abline(h=0,col="grey")
polygon(x=c(s,max,min),y=c(d,0,0),col="snow3")

polygon(x=sq,y=dq,col="skyblue")

text(x=(q-min)*0.93+min,y=dnorm(q,mean=mean)*0.3,label=paste(format(100*quant),"%",sep=""),col="blue",cex=1.7)
lines(x=c(q,q),y=c(0,dnorm(q,mean=mean)*1.35),col="red",lwd=3)
text(x=(q-min)*0.9+min,y=dnorm(q,mean=mean)*1.4,label=paste("VaR=",format(q, digits=2)," Mio EUR",sep=""),col="red",cex=1.6)

lines(x=c(mean,mean)*0.9,y=c(0,dnorm(mean,mean=mean)*0.95),col="darkgrey",lwd=2)
text(x=mean*0.87,y=dnorm(mean*0.9,mean=mean)*0.66,label=paste("Portfoliowert heute: ",mean*0.9," Mio EUR",sep=""),col="black",srt=90)

dev.off()

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:37, 12 October 2007Thumbnail for version as of 18:37, 12 October 20071,223 × 686 (6 KB)Skies (talk | contribs){{Information| |Description = illustration of the 10% Value at Risk with normally distibuted portfoliovalue |Source = craeted with GNU R, see source below |Date = 27 may 2006 |Author = Thomas Steiner |Permission = [[:de:Benutzer:Thi
11:29, 27 May 2006Thumbnail for version as of 11:29, 27 May 20061,300 × 800 (10 KB)Thire (talk | contribs){{Information| |Description = illustration of the 10% Value at Risk with normally distibuted portfoliovalue |Source = craeted with GNU R, see source below |Date = 27 may 2006 |Author = Thomas Steiner |Permission = [[:de:Benutzer:Thi

The following page uses this file:

File usage on other wikis

The following other wikis use this file: