File:Reg ls heteroscedasticitat.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
![File:Reg ls heteroscedasticitat.svg](https://upload.wikimedia.org/wikipedia/commons/thumb/4/4b/Reg_ls_heteroscedasticitat.svg/600px-Reg_ls_heteroscedasticitat.svg.png?20120815152757)
Size of this PNG preview of this SVG file: 600 × 600 pixels. Other resolutions: 240 × 240 pixels | 480 × 480 pixels | 768 × 768 pixels | 1,024 × 1,024 pixels | 2,048 × 2,048 pixels | 630 × 630 pixels.
Original file (SVG file, nominally 630 × 630 pixels, file size: 83 KB)
File information
Structured data
Captions
Captions
Add a one-line explanation of what this file represents
Summary
[edit]DescriptionReg ls heteroscedasticitat.svg |
Català: Regressió lineal simple amb heteroscedasticitat |
Date | |
Source | Own work |
Author | Pep Roca |
R source code
[edit]# heteroscedasticitat
# Codi original de Vincent Zoonekynd (http://zoonek2.free.fr/UNIX/48_R/11.html#9)
X = runif(100)
Y = 1 - 2 * X + .3 * X * rnorm(100)
DADES_RLS_CED = data.frame(Y, X) # Es crea taula de dades
save(DADES_RLS_CED, file="dades/dades_rls_ced.RData") # Se desa la taula de dades anàlisi posteriors
load("dades/dades_rls_ced.RData") # Carregar dades (no cal)
svg("gra/reg_ls_ced.svg")
plot(Y ~ X, data = DADES_RLS_CED, main = "Variància no constant (heteroscedasticitat)", xlab="X", ylab="Y")
abline(lm(Y ~ X, data = DADES_RLS_CED), col='red') # Recta de regressió
mtext("La recta de regressió (en vermell) és de la Y sobre la X") # Subtítol
title(sub="Codi original de Vincent Zoonekynd (http://zoonek2.free.fr/UNIX/48_R/11.html#9)")
dev.off()
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
![w:en:Creative Commons](https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/CC_some_rights_reserved.svg/90px-CC_some_rights_reserved.svg.png)
![attribution](https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Cc-by_new_white.svg/24px-Cc-by_new_white.svg.png)
![share alike](https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Cc-sa_white.svg/24px-Cc-sa_white.svg.png)
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported 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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 15:27, 15 August 2012 | ![]() | 630 × 630 (83 KB) | Pep Roca (talk | contribs) |
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 ca.wikibooks.org