File:Simpsons-vector.svg
Original file (SVG file, nominally 430 × 430 pixels, file size: 5 KB)
Captions
Summary
[edit]DescriptionSimpsons-vector.svg | Illustration of Simpson's paradox applied to vectors | ||
Date | |||
Source | Own work | ||
Author | Schutz | ||
SVG development InfoField | This diagram was created with R.
| ||
Source code InfoField | R codesuccess1 <- c( 8, 1)
total1 <- c(10,10)
success2 <- c( 6, 3)
total2 <- c( 6,17)
printaddvec <- function( vec1, vec2, ...) {
segments( vec1[1], vec1[2], vec1[1]+vec2[1], vec1[2]+vec2[2], lty=3, ... )
segments( vec2[1], vec2[2], vec1[1]+vec2[1], vec1[2]+vec2[2], lty=3, ... )
arrows(0,0, vec1[1], vec1[2], angle=20, code=2, lwd=2, ...)
arrows(0,0, vec2[1], vec2[2], angle=20, code=2, lwd=2, ...)
arrows(0,0, vec1[1]+vec2[1], vec1[2]+vec2[2], angle=20, code=2,
lwd=2, lty=2, ...)
# Redraw the end of the arrows
arrows(0.99*(vec1[1]+vec2[1]), 0.99*(vec1[2]+vec2[2]),
vec1[1]+vec2[1], vec1[2]+vec2[2], code=2, lwd=2, angle=20, ...)
}
postscript("simpsons-vector.eps", paper="special", height=5, width=5,
horizontal=F)
par(xaxs="i")
par(yaxs="i")
par(cex=1.2)
par(las=1)
par(mgp=c(2.5 ,1 ,0))
par(mar=c(4.1, 4.1, 0.6, 0.6))
plot(0, type="n", xlim=c(0,25), ylim=c(0,10), pty="s", xlab="Total", ylab="Successes")
printaddvec( c(total1[1], success1[1]), c(total1[2], success1[2]), col="blue")
printaddvec( c(total2[1], success2[1]), c(total2[2], success2[2]), col="red")
text(total1[2], success1[2]+0.0, "1", pos=4, col="blue", cex=1.2)
text(total2[2], success2[2]+0.0, "1", pos=4, col="red", cex=1.2)
text(total1[1]+0.0, success1[1], "2", pos=3, col="blue", cex=1.2)
text(total2[1]+0.0, success2[1], "2", pos=3, col="red", cex=1.2)
text(sum(total1), sum(success1)+0.0, "+", pos=3, col="blue", cex=1.2)
text(sum(total2), sum(success2)+0.0, "+", pos=3, col="red", cex=1.2)
dev.off()
|
The graphic was created by User:Schutz for Wikipedia on 26 August 2007, using the R statistical project. The program that generated and exported the graphic is given above; the uploaded version was generated by converting the EPS file generated by R to SVG format using pstoedit command. The layout was slightly modified using Inkscape before upload.
Licensing
[edit]Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
- 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 | 18:01, 10 June 2018 | 430 × 430 (5 KB) | JoKalliauer (talk | contribs) | <g transform="scale(1000)"> kerning error: bugzilla:34947 | |
21:53, 1 November 2012 | 430 × 430 (32 KB) | Tiger66 (talk | contribs) | correction des erreurs. | ||
15:46, 26 August 2007 | 430 × 430 (10 KB) | Schutz (talk | contribs) | {{Information |Description=Illustration of w:Simpson's paradox applied to vectors |Source=self-made |Date=26 August 2007 |Author=User:Schutz |Permission=see below }} The graphic was created by User:Schutz for Wikipedia on 26 August 2007, usin |
You cannot overwrite this file.
File usage on Commons
The following 3 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on de.wikipedia.org
- Usage on hu.wikipedia.org
- Usage on ta.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 430 |
---|---|
Height | 430 |