Datoteka:Correlation_examples2.svg
From Wikipedia, the free encyclopedia
![Datoteka:Correlation examples2.svg](http://upload.wikimedia.org/wikipedia/commons/thumb/d/d4/Correlation_examples2.svg/506px-Correlation_examples2.svg.png)
Veličina ovog PNG pregleda za ovu SVG datoteku: 506 × 231 piksela. Ostale rezolucije: 320 × 146 piksela | 640 × 292 piksela | 1.024 × 467 piksela | 1.280 × 584 piksela | 2.560 × 1.169 piksela.
Izvorna datoteka (SVG datoteka, nominalno 506 × 231 piksela, veličina datoteke: 2,18 MB)
![]() | Ova datoteka je s Wikimedia Commonsa. Opis s njene stranice opisa datoteke prikazan je ispod. Commons je skladište slobodnih medija i datoteka za sve projekte fondacije Wikimedia. Možete i Vi pomoći. |
Sažetak
OpisCorrelation examples2.svg |
English: redesign File:Correlation_examples.png using vector graphics (SVG file) |
Datum | |
Izvor | Vlastito djelo, original uploader was Imagecreator |
Autor | DenisBoigelot, original uploader was Imagecreator |
Dopuštenje (Naknadno korištenje ove datoteke) |
Released into the public domain (by the authors). |
Ostale verzije |
Derivative works of this file: CovrarianceCorrelation.svg File:Correlation_examples.png |
#Title: An example of the correlation of x and y for various distributions of (x,y) pairs
#Tags: Mathematics; Statistics; Correlation
#Author: Denis Boigelot
#Packets needed : mvtnorm (rmvnorm), RSVGTipsDevice (devSVGTips)
#How to use: output()
#
#This is an translated version in R of an Matematica 6 code by Imagecreator.
library(mvtnorm)
library(RSVGTipsDevice)
MyPlot <- function(xy, xlim = c(-4, 4), ylim = c(-4, 4), eps = 1e-15) {
title = round(cor(xy[,1], xy[,2]), 1)
if (sd(xy[,2]) < eps) title = "" # corr. coeff. is undefined
plot(xy, main = title, xlab = "", ylab = "",
col = "darkblue", pch = 16, cex = 0.2,
xaxt = "n", yaxt = "n", bty = "n",
xlim = xlim, ylim = ylim)
}
MvNormal <- function(n = 1000, cor = 0.8) {
for (i in cor) {
sd = matrix(c(1, i, i, 1), ncol = 2)
x = rmvnorm(n, c(0, 0), sd)
MyPlot(x)
}
}
rotation <- function(t, X) return(X %*% matrix(c(cos(t), sin(t), -sin(t), cos(t)), ncol = 2))
RotNormal <- function(n = 1000, t = pi/2) {
sd = matrix(c(1, 1, 1, 1), ncol = 2)
x = rmvnorm(n, c(0, 0), sd)
for (i in t)
MyPlot(rotation(i, x))
}
Others <- function(n = 1000) {
x = runif(n, -1, 1)
y = 4 * (x^2 - 1/2)^2 + runif(n, -1, 1)/3
MyPlot(cbind(x,y), xlim = c(-1, 1), ylim = c(-1/3, 1+1/3))
y = runif(n, -1, 1)
xy = rotation(-pi/8, cbind(x,y))
lim = sqrt(2+sqrt(2)) / sqrt(2)
MyPlot(xy, xlim = c(-lim, lim), ylim = c(-lim, lim))
xy = rotation(-pi/8, xy)
MyPlot(xy, xlim = c(-sqrt(2), sqrt(2)), ylim = c(-sqrt(2), sqrt(2)))
y = 2*x^2 + runif(n, -1, 1)
MyPlot(cbind(x,y), xlim = c(-1, 1), ylim = c(-1, 3))
y = (x^2 + runif(n, 0, 1/2)) * sample(seq(-1, 1, 2), n, replace = TRUE)
MyPlot(cbind(x,y), xlim = c(-1.5, 1.5), ylim = c(-1.5, 1.5))
y = cos(x*pi) + rnorm(n, 0, 1/8)
x = sin(x*pi) + rnorm(n, 0, 1/8)
MyPlot(cbind(x,y), xlim = c(-1.5, 1.5), ylim = c(-1.5, 1.5))
xy1 = rmvnorm(n/4, c( 3, 3))
xy2 = rmvnorm(n/4, c(-3, 3))
xy3 = rmvnorm(n/4, c(-3, -3))
xy4 = rmvnorm(n/4, c( 3, -3))
MyPlot(rbind(xy1, xy2, xy3, xy4), xlim = c(-3-4, 3+4), ylim = c(-3-4, 3+4))
}
output <- function() {
devSVGTips(width = 7, height = 3.2) # remove first and last line for no svg exporting
par(mfrow = c(3, 7), oma = c(0,0,0,0), mar=c(2,2,2,0))
MvNormal(800, c(1.0, 0.8, 0.4, 0.0, -0.4, -0.8, -1.0));
RotNormal(200, c(0, pi/12, pi/6, pi/4, pi/2-pi/6, pi/2-pi/12, pi/2));
Others(800)
dev.off() # remove first and last line for no svg exporting
}
Licenciranje
Ja, vlasnik autorskog prava ovog djela, ovdje ga objavljujem pod sljedećom licencom:
![]() ![]() |
Ova datoteka je dostupna pod licencom Creative Commons CC0 1.0 Univerzalnom Posvetom Javne Domene. |
Osoba koja je učestvovala u radu na ovom dokumentu posvetila je rad javnoj domeni odricanjem od svih svojih prava na taj rad širom svijeta po zakonu o autorskim pravima i svim povezanim zakonskim pravima koja bi imao/imala, u mjeri dopuštenoj zakonom. Možete kopirati, mijenjati, distribuirati i prilagođavati rad, čak i u komercijalne svrhe, bez traženja dopuštenja.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
Captions
Add a one-line explanation of what this file represents
OVRHEAD AN D REVENUE
Items portrayed in this file
prikazuje
some value
Creative Commons CC0 License engleski
9 maj 2011
source of file engleski
original creation by uploader engleski
media type engleski
image/svg+xml
checksum engleski
31cfb22bd2b6ebd79849d3d8a0f44e93c16c64af
data size engleski
2.285.771 Bajt
231 piksel
506 piksel
Historija datoteke
Kliknite na datum/vrijeme da vidite verziju datoteke iz tog vremena.
Datum/vrijeme | Smanjeni pregled | Dimenzije | Korisnik | Komentar | |
---|---|---|---|---|---|
trenutno | 08:00, 10 maj 2011 | ![]() | 506 × 231 (2,18 MB) | DenisBoigelot | {{Information |Description ={{en|1=fd}} |Source ={{own}} |Author =DenisBoigelot |Date = |Permission = |other_versions = }} fjdk |
Upotreba datoteke
Sljedeća stranica koristi ovu datoteku:
Globalna upotreba datoteke
Sljedeći wikiji koriste ovu datoteku:
- Upotreba na ast.wikipedia.org
- Upotreba na as.wikipedia.org
- Upotreba na be.wikipedia.org
- Upotreba na bh.wikipedia.org
- Upotreba na bn.wikipedia.org
- Upotreba na ca.wikipedia.org
- Upotreba na cs.wikipedia.org
- Upotreba na el.wikipedia.org
- Upotreba na en.wikipedia.org
- Upotreba na en.wikiversity.org
- Upotreba na en.wiktionary.org
- Upotreba na es.wikipedia.org
- Upotreba na fa.wikipedia.org
- Upotreba na fi.wikipedia.org
- Upotreba na fi.wiktionary.org
- Upotreba na fr.wikipedia.org
- Upotreba na ga.wikipedia.org
- Upotreba na ja.wikipedia.org
- Upotreba na jv.wikipedia.org
- Upotreba na ko.wikipedia.org
- Upotreba na pt.wikipedia.org
- Upotreba na ru.wikipedia.org
- Upotreba na sl.wikipedia.org
- Upotreba na sr.wikipedia.org
- Upotreba na sv.wikipedia.org
- Upotreba na tl.wikipedia.org
- Upotreba na uk.wikipedia.org
- Upotreba na www.wikidata.org
- Upotreba na zh-yue.wikipedia.org
- Upotreba na zh.wikipedia.org
Metapodaci
Ova datoteka sadržava dodatne podatke koje je vjerovatno dodala digitalna kamera ili skener u procesu snimanja, odnosno digitalizacije. Ako je datoteka mijenjana, podaci možda nisu u skladu sa stvarnim stanjem.
Kratki naslov | R SVG Plot |
---|---|
Naslov slike | R SVG Plot with tooltips! (mode=1) |