File:KernelDensityEstimator.png

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

KernelDensityEstimator.png(640 × 480 pixels, file size: 11 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Dotplot, Histogramm and Kernel density estimators of a variable.
Date
Source Own work
Author Sigbert

The R program to create the PNG file:

library(np)
library(mlbench)
data(BostonHousing)
s <- sort(BostonHousing[,13], index.return=T)
x <- BostonHousing[s$ix,13]
r <- -0.01*runif(length(x))-0.005
png("D13.png", width=640, height=480)
hist(x, freq=FALSE, ylim=c(-0.015, 0.07), col="gray", xlab="Anteil der Unterschichtbevölkerung pro Bezirk (in %)", ylab="Dichte",  main="Dotplot, Histogramm und Kerndichteschätzer")
d1<-npudens(x, bws=1.5)
lines(x, fitted(d1), col="red", lwd=2)
d2<-npudens(x, bws=1)
lines(x, fitted(d2), col="blue", lwd=2)
d3<-npudens(x, bws=0.5)
lines(x, fitted(d3), col="green", lwd=2)
points(x,r, cex=0.5)
legend("topright", legend=c("h=1,5", "h=1,0", "h=0,5"), col=c("red", "blue", "green"), lwd=2, lty=1, title="Kerndichteschätzer")
dev.off()
 
This chart was created with R.

Licensing[edit]

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

File history

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

Date/TimeThumbnailDimensionsUserComment
current12:45, 22 June 2010Thumbnail for version as of 12:45, 22 June 2010640 × 480 (11 KB)Sigbert (talk | contribs){{Information |Description={{en|1=Dotplot, Histogramm and Kernel density estimators of a variable.}} |Source={{own}} |Author=Sigbert |Date=2010-06-22 |Permission= |other_versions= }} Category:Statistics

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: