File:NadarayaWatson.png

NadarayaWatson.png(480 × 480 pixels, file size: 10 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

edit
Description
English: Nadaraya Watson estimator for different bandwidths (red, green, blue) and linear regression estimator.
Date
Source Own work
Author Sigbert

The R program creates the PNG file:

library(np)
library(mlbench)
data(BostonHousing)
s <- sort(BostonHousing[,13], index.return=T)
x <- BostonHousing[s$ix,13]
y <- BostonHousing[s$ix,14]
lr <- lm (y~x)
nw  <- npreg(y~x)
nw2 <- npreg(y~x, bws=nw$bw/3)
nw3 <- npreg(y~x, bws=nw$bw*3)
png("NW.png")
plot(x, y, xlab="Anteil der Unterschichtbevölkerung pro Bezirk (in %)", ylab="Mittlerer Hauspreis  pro Bezirk (in 1000 US$)", main="Boston Housing Daten", cex=0.5)
abline(lr, lwd=2)
lines(x, fitted(nw), lwd=2, col="red")
lines(x, fitted(nw2), lwd=2, col="blue")
lines(x, fitted(nw3), lwd=3, col="green")
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
current11:29, 21 June 2010Thumbnail for version as of 11:29, 21 June 2010480 × 480 (10 KB)Sigbert (talk | contribs){{Information |Description={{en|1=Nadaraya Watson estimator for different bandwidths (red, green, blue) and linear regression estimator.}} |Source={{own}} |Author=Sigbert |Date=2010-06-21 |Permission= |other_versions= }} [[Category:Stati

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: