File:WeightNadarayaWatson.png
WeightNadarayaWatson.png (480 × 480 pixels, file size: 8 KB, MIME type: image/png)
File information
Structured data
Captions
Summary
editDescriptionWeightNadarayaWatson.png |
English: Weight functions for Nadaraya Watson estimator |
Date | |
Source | Own work |
Author | Sigbert |
PNG development InfoField | |
Source code InfoField | R codelibrary(mlbench)
data(BostonHousing)
s <- sort(BostonHousing[,13], index.return=T)
x <- BostonHousing[s$ix,13]
png("NWWhi.png")
d <- -0.02*runif(length(x))-0.01
plot(x, d, cex=0.5, ylim=c(-0.03, 0.12), xlab="Anteil der Unterschichtbevölkerung pro Bezirk (in %)", ylab="Gewichtsfunktionen W_hi(x)", main="Boston Housing Daten")
xk <- 30
h <- 2.1
k <- dnorm((x-xk)/h)
k <- k/sum(k)
lines(x,k, col="red", lwd=2)
xk <- 20
k <- dnorm((x-xk)/h)
k <- k/sum(k)
lines(x,k, col="blue", lwd=2)
xk <- 10
k <- dnorm((x-xk)/h)
k <- k/sum(k)
lines(x,k, col="green", lwd=2)
h <- 0.7
xk <- 30
k <- dnorm((x-xk)/h)
k <- k/sum(k)
lines(x,k, col="red", lwd=2, lty=3)
xk <- 20
k <- dnorm((x-xk)/h)
k <- k/sum(k)
lines(x,k, col="blue", lwd=2, lty=3)
xk <- 10
k <- dnorm((x-xk)/h)
k <- k/sum(k)
lines(x,k, col="green", lwd=2, lty=3)
legend("topleft", legend=c("W_hi(10), h=2,1", "W_hi(20), h=2,1", "W_hi(30), h=2,1", "W_hi(10), h=0,7", "W_hi(20), h=0,7", "W_hi(30), h=0,7"), col=c("green", "blue", "red", "green", "blue", "red"), lwd=2, lty=c(1,1,1,3,3,3))
dev.off()
|
Licensing
editPublic domainPublic domainfalsefalse |
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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 14:03, 21 June 2010 | 480 × 480 (8 KB) | Sigbert (talk | contribs) | {{Information |Description={{en|1=Weight functions for Nadaraya Watson estimator }} |Source={{own}} |Author=Sigbert |Date=2010-06-21 |Permission= |other_versions= }} Category:Statistics |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on de.wikipedia.org