File:ICC-example1.svg

頁面內容唔支援其他語言。
出自維基百科,自由嘅百科全書

原本檔案(SVG檔案,表面大細: 720 × 540 像素,檔案大細:52 KB)

摘要

描述
English: Dot plot illustrating the intraclass correlation coefficient
日期
來源 自己作品
作者 Skbkekas
SVG genesis
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
原始碼
InfoField

Python code

from __future__ import division
import numpy as np
import matplotlib.pyplot as plt

def ICC(X):
    K = X.shape[1]
    m = X.mean(1)-X.mean()
    A = (m**2).mean()/X.var()
    A *= K/(K-1)
    A -= 1/(K-1)
    return A

def genplot(X, fname):

    n = X.shape[0]
    plt.clf()

    for i in range(1,n+1):
        plt.plot((i,i), (-2,2), '-', color='grey')
        plt.hold(True)

    for k in range(X.shape[1]):
        plt.plot(np.arange(1,n+1), X[:,k], 'o', color='blue')

    plt.xlim(0,n+1)
    plt.xlabel("Group number")
    plt.ylabel("Data value")

    icc = ICC(X)
    plt.title("ICC=%.2f" % icc)
    plt.xticks(range(1,n+1,2))

    plt.savefig(fname + ".png")
    plt.savefig(fname + ".svg")

X = np.random.uniform(low=-2, high=2, size=(20,4))
genplot(X, "ICC-example1")

V = np.random.uniform(low=-2, high=2, size=20)
X = np.zeros((20,4))
for i in range(len(V)):
    e = min(min(V[i]+2,2-V[i]),0.7)
    X[i,:] = np.random.uniform(low=V[i]-e, high=V[i]+e, size=4)
genplot(X, "ICC-example2")

協議

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head 根據自由軟體基金會發佈嘅無固定段落、封面文字同封底文字GNU自由文件授權條款第1.2或打後嘅版本,你獲授權可以重製、散佈同埋修改爾份文件。授權條款嘅副本喺章節GNU自由文件授權條款
w:en:Creative Commons
署名 相同方式分享
呢個檔案用共享創意 姓名標示-非商業性-相同方式分享3.0 未本地化版本條款授權。
你可以:
  • 去分享 – 複製、發佈同傳播呢個作品
  • 再改 – 創作演繹作品
要遵照下面嘅條件:
  • 署名 – 你一定要畀合適嘅表彰、畀返指向呢個授權條款嘅連結,同埋寫明有無改過嚟。你可以用任何合理方式去做,但唔可以用任何方式暗示授權人認可咗你或者你嘅使用方式。
  • 相同方式分享 – 如果你用任何方式改過呢個作品,你必須要用返原本或者相似嘅條款發佈。
This licensing tag was added to this file as part of the GFDL licensing update.
Licence Art Libre Copyleft: This work of art is free; you can redistribute it and/or modify it according to terms of the Free Art License. You will find a specimen of this license on the Copyleft Attitude site as well as on other sites.
你可以揀你想用嘅牌照。

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

圖中顯示嘅係

9 6 2009

檔案歷史

撳個日期/時間去睇響嗰個時間出現過嘅檔案。

日期/時間縮圖尺寸用戶註解
現時2009年6月9號 (二) 19:58響2009年6月9號 (二) 19:58嘅縮圖版本720 × 540(52 KB)Skbkekas{{Information |Description={{en|1=Dot plot illustrating the intraclass correlation coefficient}} |Source=Own work by uploader |Author=Skbkekas |Date=2009-06-09 |Permission= |other_versions= }} <!--{{ImageUpload|full}}--> [[Category:Stat

以下嘅1版用到呢個檔:

全域檔案使用情況

下面嘅維基都用緊呢個檔案: