File:Bostonh sqhetres.svg

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

Original file(SVG file, nominally 900 × 450 pixels, file size: 514 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Linear fit, residual plot and fir of squared residuals of a subset of the Boston Housing data.
Date
Source Own work
Author Sigbert

R program:

library("mlbench")
data(BostonHousing)
x <- subset(BostonHousing, (BostonHousing$medv<50) & (BostonHousing$rm>=4))
svg("bostonh_sqhetres.svg", width=10, height=5)
par(mfrow=c(1,3))
plot(x$rm, x$medv, xlab="Mitt. Anzahl der Räume", ylab="Kaufpreis (in Tsd. US$)", main="Lineare Regression")
fit <- lm(medv ~ rm , data=x)
abline(fit, lwd=2) 
pos <- which.max(x$rm)
lines(c(x$rm[pos], x$rm[pos]), c(fit$fitted.values[pos], x$medv[pos]), col="red")
plot(x$rm, fit$residuals, xlab="Mitt. Anzahl der Räume", ylab="Residuen", main="Heteroskedastische Residuen") 
abline(h=0, lwd=2)
lines(c(x$rm[pos], x$rm[pos]), c(0, fit$residuals[pos]), col="red")
plot(x$rm, fit$residuals^2, xlab="Mitt. Anzahl der Räume", ylab="Quadrierte Residuen",  main="Fit der quadrierten Residuen")
l<-lowess(x$rm, fit$residuals^2)
lines(l, col="red", lwd=2)
dev.off()
 
This W3C-unspecified chart was created with R.


Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International 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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current16:24, 5 October 2014Thumbnail for version as of 16:24, 5 October 2014900 × 450 (514 KB)Sigbert (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata