File:KS-Test.png

Original file(1,200 × 768 pixels, file size: 15 KB, MIME type: image/png)

Description

An image for the german example for the kolmogorov smirnov test

Deutsch: Grafik zu diesem Zahlenbeispiel. Links ein Histogramm, rechts die tatsächliche und die empirische Verteilungsfunktion
Date
Source created with GNU R, source attached (at the bottom of the page)
Author Thomas Steiner
Permission
(Reusing this file)
Thomas Steiner put it under the GFDL


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

q<-c(9.41, 9.92, 11.55, 11.60, 11.73, 12.00, 12.06, 13.02)
m=11
s=1
cs=c("grey35","navy","skyblue")
grenze=0.454

png(filename = "KS-Test.png", width=1200, height=768, pointsize=12)
par(mfrow=c(1,2), bg="lightgrey")
hist(q,breaks=4,freq=FALSE,col=cs[1],xlab=expression(x[i]),ylab="Wahrscheinlichkeit",main="Histogramm")
rug(q,col=cs[1],lwd=0.8)

x=seq(min(q)*0.9,max(q)*1.1,length=100)
lines(x,dnorm(x,mean=m,sd=s),col=cs[2],lwd=3)

F0=stepfun(q,c(0,(1:length(q))/length(q)),right=TRUE)
plot(F0,main="Vergleich der Verteilungsfunktionen",do.points=FALSE,col.hor=cs[1],col.vert=cs[1],col.points =cs[1],lwd=3,xlab=expression(x[i]),ylab="",xlim=range(x))
lines(x,pnorm(x,mean=m,sd=s),type="l",col=cs[2],lwd=3)
lines(x,pnorm(x,mean=m,sd=s)-grenze,type="l",col=cs[3],lwd=2)
lines(x,pnorm(x,mean=m,sd=s)+grenze,type="l",col=cs[3],lwd=2)
legend(x="bottomright",inset=0.01,legend=c("empirische Verteilung",expression(list("Normalverteilung",mu == m, sigma == s)),,"95% - Grenzen"),cex=0.8,col=cs,lwd=3)  

points(q[3],F0(q[3]), pch=8, col="red", cex=2)
dev.off()
 
This chart was created with R.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

20 March 2006

File history

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

Date/TimeThumbnailDimensionsUserComment
current09:18, 20 March 2006Thumbnail for version as of 09:18, 20 March 20061,200 × 768 (15 KB)Thirebetter colors()
09:05, 20 March 2006Thumbnail for version as of 09:05, 20 March 20061,200 × 768 (15 KB)Thire{{Information| |Description = An image for the german example for the kolmogorov smirnov test |Source = created with GNU R, source attached (at the bottom of the page) |Date = 20 march 2006 |Author = Thomas Steiner |Permission = [[:
No pages on the English Wikipedia use this file (pages on other projects are not listed).

Global file usage

The following other wikis use this file: