Image:VaR graph.png

From Wikipedia, the free encyclopedia

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.
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
(Reusing this image)

Thomas Steiner put it under the GFDL


This diagram image should be recreated 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 already available, please upload it. After uploading an SVG, replace this template with template {{Vector version available|new image name.svg}} in this image.

العربية | Български | Català | Česky | Dansk | Deutsch | English | Esperanto | Español | Français | 한국어 | Italiano | Magyar | Lietuvių | Nederlands | 日本語 | Polski | Português | Română | Русский | Suomi | Svenska | Türkçe | Українська | Tiếng Việt | मराठी | ‪中文(繁體)‬ | ‪中文(简体)‬ | +/-


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".

Aragonés | العربية | Asturianu | Български | বাংলা | ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী | Brezhoneg | Bosanski | Català | Cebuano | Česky | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Gaeilge | Galego | עברית | Hrvatski | Magyar | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Kurdî / كوردی | Latina | Lëtzebuergesch | Lietuvių | Bahasa Melayu | Nnapulitano | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Occitan | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | తెలుగు | ไทย | Türkçe | Українська | اردو | Tiếng Việt | Volapük | Yorùbá | ‪中文(中国大陆)‬ | ‪中文(台灣)‬ | +/-

R-source code

#value at risk graph

quant=0.10

min=-1.7
max=2.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/TimeDimensionsUserComment
current18:37, 12 October 20071,223×686 (6 KB)Skies ({{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 20061,300×800 (10 KB)Thire ({{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 pages on the English Wikipedia link to this file (pages on other projects are not listed):