File:KernelDensityEstimator.png

Summary

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.
Category:PNG created with R#KernelDensityEstimator.png Category:Kernel density estimation

Licensing

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.
Category:Self-published work#KernelDensityEstimator.pngCategory:PD-self#KernelDensityEstimator.png
Category:Kernel density estimation Category:PD-self Category:PNG created with R Category:Self-published work