File:Simpson's paradox continuous.svg

原始檔案(SVG 檔案,表面大小:390 × 260 像素,檔案大小:18 KB)


 
W3C-validity not checked.

摘要

描述
English: Illustration of the quantitative version of en:Simpson's paradox: a positive trend appears for two separate groups (blue and red), whereas a negative trend (black, dashed) appears when the groups are combined.
日期
來源 自己的作品
作者 Schutz

Example of the quantitative version of w:Simpson's paradox.

The graphic was created by User:Schutz for Wikipedia on 14 June 2007, using the R statistical project. The program that generated and exported the graphic is given below; the uploaded version was generated slightly differently to workaround a bug during the PS to SVG conversion with pstoedit command. The layout was slightly modified using Inkscape before upload.

 
  x1 <- c(1,2,3,4)
  y1 <- x1 + 5
  
  x2 <- x1 + 7
  y2 <- x2 - 7
  
  x <- c(x1,x2)
  y <- c(y1,y2)
  
  postscript("simpson.eps", paper="special", width=4.5, height=3)
  
  par(las=1)
  par(mar=c(3,3,0.5,0.5))
  par(mgp=c(2,1,0))
  
  plot(x,y, cex=2, pch=21,
       col=rep(c("blue", "red"), each=4), bg=rep(c("lightblue", "pink"), each=4),
       xlim=range(x)+c(-2,2), ylim=range(y)+c(-2,2))
  abline(lm(y1 ~ x1), col="blue", lwd=2)
  abline(lm(y2 ~ x2), col="red", lwd=2)
  abline(lm(y  ~ x), lwd=2, lty=2)
  
  dev.off()
  
 
向量圖形使用R創作。

授權條款

Public domain 此作品已由其作者,I, Schutz,釋出至公有領域。此授權條款在全世界均適用。
這可能在某些國家不合法,如果是的話:
I, Schutz授予任何人有權利使用此作品於任何用途,除受法律約束外,不受任何限制。
 
向量圖形使用R創作。

說明

添加單行說明來描述出檔案所代表的內容
Simpson's paradox for quantitative data: a positive trend appears for two separate groups, whereas a negative trend appears when the groups are combined.

在此檔案描寫的項目

描繪內容

沒有維基數據項目的某些值

作者姓名字串 繁體中文 (已轉換拼寫):​Schutz
維基媒體使用者名稱 繁體中文 (已轉換拼寫):​Schutz

著作權狀態 繁體中文 (已轉換拼寫)

檔案來源 Chinese (Taiwan) (已轉換拼寫)

上傳者的原創作品 繁體中文 (已轉換拼寫)

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸用戶備⁠註
目前2007年6月13日 (三) 23:15於 2007年6月13日 (三) 23:15 版本的縮圖390 × 260(18 KB)Schutz{{Information |Description=Illustration of the continuous version of Simpson's paradox |Source=self-made |Date=14 June 2007 |Author=Schutz }} Example of the continuous version of w:Simpson's paradox. The graphic was created by [[User

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案: