C19 (1)

Similar documents
)

When the rejection rule for a test at every level α can be re-written as then xxx is the p-value of the test. xxx < α, If p-value < α, then the test c

untitled

( ) t ( ) ( ) ( ) ( ) ( ) t-

Vol. 15 No. 1 JOURNAL OF HARBIN UNIVERSITY OF SCIENCE AND TECHNOLOGY Feb O21 A

(baking powder) 1 ( ) ( ) 1 10g g (two level design, D-optimal) 32 1/2 fraction Two Level Fractional Factorial Design D-Optimal D

%! # # % % & # ( ) ( +, & +, +, & +, & +, +, &!

# ( + + # + # 6 +,! + # +! +, + # ( + ) ( + ( + ) + 7! + # + /8 + ) ( +! + #. + ( +, +! + # + # + + ( ! ( + ) ( + ) +, + ( + 9% +! +, + ( +

untitled

untitled

Microsoft PowerPoint - spss2-1.ppt

第 一 节 科 研 设 计 的 主 要 内 容 确 定 研 究 对 象 设 对 照 组 随 机 分 组 确 定 观 察 指 标 2

(Microsoft PowerPoint - 25\272\330\262\316\255p\244\350\252k\257\265\247\3361_Ruth.ppt)

ENGG1410-F Tutorial 6

( ) ( ) ( NSC M )

天 主 教 輔 仁 大 學 社 會 學 系 學 士 論 文 小 別 勝 新 婚? 久 別 要 離 婚? 影 響 遠 距 家 庭 婚 姻 感 情 因 素 之 探 討 Separate marital relations are getting better or getting worse? -Exp


おおさか経済の動き pwd

TA-research-stats.key

! + +, ) % %.!&!, /! 0! 0 # ( ( # (,, # ( % 1 2 ) (, ( 4! 0 & 2 /, # # ( &

%% &% %% %% %% % () (! #! %!!!!!!!%! # %& ( % & ) +, # (.. /,) %& 0

untitled

Untitled-3

建築工程品質管理案例研討

信頼の水準約95%表記への

Stochastic Processes (XI) Hanjun Zhang School of Mathematics and Computational Science, Xiangtan University 508 YiFu Lou talk 06/

Microsoft PowerPoint - STU_EC_Ch02.ppt

% % 34

PowerPoint Presentation

Introduction to Hamilton-Jacobi Equations and Periodic Homogenization

.., + +, +, +, +, +, +,! # # % ( % ( / 0!% ( %! %! % # (!) %!%! # (!!# % ) # (!! # )! % +,! ) ) &.. 1. # % 1 ) 2 % 2 1 #% %! ( & # +! %, %. #( # ( 1 (

# % & ) ) & + %,!# & + #. / / & ) 0 / 1! 2

<4D F736F F D20BDD7A4E5A4BAA4E5BB50A5D8BFFD2E646F63>

spss.doc

102_BS

國立中山大學論文典藏.PDF

基礎統計

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

Microsoft Word - Probability.doc

C/C++语言 - 运算符、表达式和语句

PowerPoint Presentation

Microsoft PowerPoint - STU_EC_Ch08.ppt

國立中山大學學位論文典藏.PDF

UDC Empirical Researches on Pricing of Corporate Bonds with Macro Factors 厦门大学博硕士论文摘要库

11第十一章階層線性模式.DOC

PowerPoint Presentation

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

Microsoft Word - p11.doc

Microsoft Word - HC20138_2010.doc

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

Microsoft PowerPoint - NCBA_Cattlemens_College_Darrh_B

國家圖書館典藏電子全文

Microsoft Word - ch05note_1210.doc

untitled

Chinese Journal of Applied Probability and Statistics Vol.25 No.4 Aug (,, ;,, ) (,, ) 应用概率统计 版权所有, Zhang (2002). λ q(t)

國家圖書館典藏電子全文

L L L-1 L-1 L-1 L-1 L-1 L-2 L-1 L-1 L-2 L-2 L-2 L-2 L-2 L-2 L-2 L-2 L-2 L-2 L-3 L-3 L-3 L-3 L-2 L-2 L-2 L-2 L

研究論文 Assessment of Effectiveness of Passenger Seatbelt Reminder on Using Belt Rate - Toward Introducing Its Assessment in the New Car Assessm

Microsoft Word - A doc

) & ( +,! (# ) +. + / & 6!!!.! (!,! (! & 7 6!. 8 / ! (! & 0 6! (9 & 2 7 6!! 3 : ; 5 7 6! ) % (. ()

untitled

1 119 Clark 1951 Martin Harvey a 2003b km 2

Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish

天 主 教 輔 仁 大 學 社 會 學 系 學 士 論 文 百 善 孝 為 先? 奉 養 父 母 與 接 受 子 女 奉 養 之 態 度 及 影 響 因 素 : 跨 時 趨 勢 分 析 Changes in attitude toward adult children's responsibilit

第一章合成.ppt

EXCEL EXCEL

Microsoft PowerPoint _代工實例-1

mm 400 mm 15 mm EOF mm/10a Fig. 1 Distributions

: Previous Next First Last Back Forward 1

国信证券股份有限公司

30 ml polystyrene 4 mm ph 0.1 mg blender M -cm D. pulex D. magna 20 L 2 20

ELISA分析

中国科学技术大学学位论文模板示例文档

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>

基礎統計

國立中山大學學位論文典藏.PDF

热设计网

<4D F736F F D B14DA7DEB0AAA6D2AAC0A475AE76312DAAC0B77CA475A740ACE3A873A4E8AA6B>

第八章 審計抽樣 本章學習重點 stratified random sampling systematic sampling PPS PPS MUS 8-3 壹抽樣與審計抽樣 audit sampling 100%

% %! # % & ( ) % # + # # % # # & & % ( #,. %

C/C++ - 函数

Essential procedures of stereological (morphometric( morphometric) ) study / / / / / / /

Microsoft Word 谢雯雯.doc

Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram

:

Microsoft PowerPoint - Ch04.ppt

國立中山大學學位論文典藏.PDF

Microsoft PowerPoint - Lecture7II.ppt

Microsoft Word - WZTU doc

untitled

: ( ),,

Microsoft Word


<4D F736F F D20B2CCA3BA4542B2A1B6BE BFB9CCE5D3EBB1C7D1CAB0A9B7D6C6DAB5C4B9D8CFB52E646F63>

~ 10 2 P Y i t = my i t W Y i t 1000 PY i t Y t i W Y i t t i m Y i t t i 15 ~ 49 1 Y Y Y 15 ~ j j t j t = j P i t i = 15 P n i t n Y

[9] R Ã : (1) x 0 R A(x 0 ) = 1; (2) α [0 1] Ã α = {x A(x) α} = [A α A α ]. A(x) Ã. R R. Ã 1 m x m α x m α > 0; α A(x) = 1 x m m x m +

PowerPoint Presentation

穨control.PDF

統計課程目錄95

公開徵求廠商提供「採購專業人員訓練計畫企劃書」公告

Transcription:

Ch 19 實習 (1)

Agenda Nonparametric statistic 使用時機 Wilcoxon Rank Sum Test Sign Test Wilcoxon Signed Rank Sum Test Kruskal-Wallis Test Friedman Test Spearman Rank Correlation Coefficient 2

1. Nonparametric statistic 使用時機 資料型態 Interval Nominal Ordinary 檢定方式 T Z ANOVA Chi square goodness of fit 列連表 無母數 常態分配 Yes Check No 3

1. Nonparametric statistic 使用時機 有母數 無母數 Independent T Wilcoxon Rank Sum Test Ordinal or Interval ( 非常態 ) N>20 才會趨近常態 ( 或個別樣本都要 >10) Match Paired T Sign Test Ordinal or Interval ( 非常態 ) N>20 才會趨近常態 ( 或 Nd>10 對 ) Match Paired T Wilcoxon Signed Rank Sum Test Interval ( 非常態 ) N>30 才會趨近常態 ( 或 Nd>15 對 ) One way ANOVA Kruskal-Wallis Test Ordinal or Interval ( 非常態 ) Random Block design Friedman Test Ordinal or Interval ( 非常態 ) Correlation Spearman Rank Correlation Coefficient Ordinal or Interval ( 非常態 ) 4

1. 檢驗步驟 S1: 先檢驗是否為常態分配 (chi-square goodness of fit) S2: 非無母數, 用無母數檢定 ( 或 ordinal 直接用無母數 ) S3: 設定假設 S4: 找 critical point S5: 求檢定量 T (or Z) S 6: 結論 H 0 : The population locations are the same (Ho: u1=u2) H 1 : (i) The locations differ, (Ho: u1=u2) (ii) Population 1 is located to the right of population 2(Ho: u1>u2) (ii) Population 1 is located to the left of population 2 (Ho: u1<u2) 5

2. Wilcoxon Rank Sum Test (Mann- Whitney Test) The problem characteristics of this test are: The problem objective is to compare two populations. The data are either ordinal or interval (but not normal). The samples are independent. 類似獨立樣本 T 檢定 6

1. Wilcoxon Rank Sum Test (N 各別 <10) S1: 設定假設 H 0 : The two population locations are the same H 1 : The location of population 1 is different from the location of population 2 S2: 求 critical point 查表 P(T T L )=P(T T U ) S3: 算統計量 T (N 各別 >10) S1: 設定假設 H 0 : The two population locations are the same H 1 : The location of population 1 is different from the location of population 2 S2: 求 critical point 查表 Za/2, Za S3: 算統計量 Z S4: 結論 S4: 結論 7 TL TU

Example 1 Based on the two samples shown below, can we infer at 5% significance level that the location of population 1 is to the left of the location of population 2? ( 類似 H0: u1<u2, 左尾 ) Sample 1: 22, 23, 20 Sample 2: 18, 27, 26 8

S1: Solution 1 H 0 : The two population locations are the same. H 1 : The location of population 1 is to the left of the location of population 2. S2: 查表 T L =6, T U = 15 S3 計算 T( 由小到大排序, 求 T1) Sample 1 22 23 20 Rank 3 4 2 Sample 2 18 27 26 Rank 1 6 5 結論 : T1=2+4+3=9 T1=9 T2=1+6+5=12 9 TL=6 TU=15 Don t reject H0. 表示兩樣本的 location 沒有差異

1. Critical values of the Wilcoxon Rank Sum Test α =.025 for one tail test, or α =.05 for two tail test n2 n1 3 4 5... 10 3 6 15 4 6 18 11 25 17 33... 61 89 5 6 21 12 28 18 37... 64 96... T L T U T L T U T L T U 10 9 33 16 44 24 56... 79 131 T L T U Using the table: For given two samples of sizes n 1 and n 2, P(T T L )=P(T T U )= α. A similar table exists for α =.05 (one tail test) and α =.10 (two tail test) 10

Example 2 (N<10) Use the Wilcoxon rank sum test on the following data to determine the two population locations differ. (Use a 10% significance level.) Sample 1: 15 7 22 20 32 18 26 17 23 30 (n=10) Sample 2: 8 27 17 25 20 16 21 17 10 18 (n=10) 11

Solution 2 H 0 : The two population locations are the same H 1 : The location of population 1 is different from the location of population 2 Sample 7 1 Rank 8 2 10 3 15 4 16 5 17 (6+7+8)/3=7 18 (9+10)/2=9.5 T1=118 12 There is not enough evidence to infer that the location of population 1 is different from the location of population 2 TL=83 TU=127

13

Example 3 (N>10) Given the following statistics, calculate the value of the test statistic to determine whether the population locations differ. In addition, calculate the P-value. (a=0.05) T 1 =250 n 1 =15 T 2 =215 n 2 =15 14

Solution 3 S1: S2: H 0 : The two population locations are the same H 1 : The location of population 1 is different from the location of population 2 Z a/2 =1.96 S4 Z=0.73 S3: n (n1 + n2 E(T) = 2 σ + 1) 15(15 + 15 + 1) 1 = = n1n 2(n1 + n2 12 + 1) 2 (15)(15)(15 + 15 + 1) T = = = 12 232.5 24.11-1.96 1.96 T E( T) z = σ T 250 232.5 = 24.11 = 0.73 p-value = 2P(Z >.73) = 2(.5.2673) =.4654. 15

2. Sign Test The objective is to compare two populations. The data are either ordinal or interval (but not normal). The samples are matched by pairs( 類似 paired T test). 16

S1: 假設檢定 H 0 : The two population locations are the same H 1 : The two population locations are different H 0 : p =.5 H 1 : p. 5 S2:Critical point: Za or Za/2 S3: z = x 0.5n 0.5 n where n 10. 2. The Sign Test X: 有幾的正號 n: 樣本數 ( 但不包含相減為 0) The binomial variable can be approximated by a normal variable if np and n(1-p) >= 5. The Z- statistic becomes z = x np np(1 p) where n 10. = x.5n n(.5)(.5) = x.5n.5 n S4: 結論 17

Example 4 兩位評審員對 12 個參賽選美的候選人進行評分, 其評分係依主觀偏好給予 0-10 分 ; 而評分結果如下 (α=5%) 評審員 I 5 6 10 7 0 9 7 10 9 6 9 9 評審員 II 4 1 7 5 8 5 5 6 8 10 5 4 試以 sign test 來檢定兩位評審員, 對 12 為參選者的評分是否有顯著差異 18

S1: H 0 : 兩位評審員評分沒有差異 (p=0.5) H 1 : 兩位評審員評分有差異 (p 0.5) Solution 4 S2: 拒絕域 :z>1.96 or z<-1.96 S3: 計算 Z 評審員 I 5 6 10 7 0 9 7 10 9 6 9 9 評審員 II 4 1 7 5 8 5 5 6 8 10 5 4 + + + + - + + + + - + + 10 個 +,2 個 -,n=12( 沒有為 0) z = 10 12 0.5 12 0.5 0.5 z = x 0.5n 0.5 n where n 10. X: 有幾的正號 N: 樣本數 ( 但不包含相減為 0) = 2.3094 > 1.96 S4: 拒絕 H 0, 所以兩位評審員評分有差異 19

Example 5 Suppose that in a matched pairs experiment, we find 28 positive differences, 7 zero differences, and 41 negative differences. Can we infer at the 10% significance level that the location of population 1 is to the left of the location 2? 20

Solution 5 H 0 : The two population locations are the same H 1 : The location of population 1 is to the left of the location of population 2 ( 左尾 ) +:28 -:41 0:7 Z=-1.57 21-1.96 1.96

3. Wilcoxon Signed Rank Sum Test This test is used when the problem objective is to compare two populations, the data are interval but not normal the samples are matched pairs. The test statistic and sampling distribution T is based on rank sum of the absolute values of the positive and negative differences When n <=30, reject H 0 if T>T U or T<T L (T L and T U tabulated values related to n, n is the number of nonzero ). When n > 30, T is approximately normally distributed. Use a Z-test. E(T) = n(n+1)/4 standard deviation = [n(n+1)(2n+1)/24]^(1/2) 22

1. Wilcoxon Signed Rank Sum Test (N<30) S1: 設定假設 H 0 : The two population locations are the same H 1 : The location of population 1 is different from the location of population 2 S2: 求 critical point 查表 P(T T L )=P(T T U ) S3: 算統計量 T (N>30) S1: 設定假設 H 0 : The two population locations are the same H 1 : The location of population 1 is different from the location of population 2 S2: 求 critical point 查表 Za/2, Za S3: 算統計量 Z E(T) = n(n+1)/4 S4: 結論 σ # = %(%'()(*%'() *+ S4: 結論 23 TL TU

Example 5 (N<30) Perform the Wilcoxon signed rank sum test to determine whether the location of population 1 differs from the location of population 2 given the data shown here. (Use α =.05) Pair 1 2 3 4 5 6 Sample1 18.2 14.1 24.5 11.9 9.5 12.1 Sample2 18.2 14.1 23.6 12.1 9.5 11.3 Pair 7 8 9 10 11 12 Sample1 10.9 16.7 19.6 8.4 21.7 23.4 Sample2 9.7 17.6 19.4 8.1 21.9 21.6 24

Solution 5 H 0 : The two population locations are the same H 1 : The location of population 1 is different from the location of population 2 Reject region: TL<14; TU>64 (1+2+3)/3=2 (6+7)/2=6.5 T+=34.5 25 TL=14 TU=64

26

Example 6 (N>30) A matched pairs experiment produced the following statistics. Conduct a Wilcoxon signed rank sum test to determine whether the location of population 1 is to the right of the location of population 2.(Useα=.01) + - T=3457 T=2429 n=108 27

Solution 6 H 0 : The two population locations are the same H 1 : The location of population 1 is to the right of the location of population 2 ( 右尾 ) + - T=3457 T=2429 n=108 28

4. Kruskal-Wallis Test The problem characteristics for this test are: The problem objective is to compare two or more populations. ( 比較兩個以上樣本 ) The data are either ordinal or interval but not normal. The samples are independent. The hypotheses are H 0 : The location of all the k populations are the same. H 1 : At least two population locations differ. ( 一定是檢測 K 組相不相似, 因為沒檢測誰比較大 ) 29

S1: 假設檢定 4. Kruskal-Wallis Test H 0 : The location of the 3 are the same H 1 : At least two locations are different S2:Critical point: S3: 計算 H 值 2 H > χ α,k 1 Rank the data from 1(smallest) to n (largest). Calculate the rank sums T 1, T 2, T k for all the k samples. H k = 12 ( + 1) T n n n j= 1 2 j j 3( n + 1) S4: 結論 30

31 Example 7

Solution 7 先找到最小值 :12 12 : (1+2)/2=1.5 17 : 3 18 : (4+5)/2=4.5 H = 12 k T n( n + 1) n j= 1 2 j j 3( n + 1) 3.03 32 5.99

無母數優缺點 無母數統計分析 (Non-parametric Statistics) 母體分配未知, 且樣本數不是很大 優點 : 對母體的假設少, 不需要假設母體是什麼分配 對小樣本的資料, 或是有偏斜分配的母體做推論比較合適 可以分析順序資料 缺點 : 檢定力 (1-β) 較弱 33 對某些較複雜的模式如有交互作用的多因子設計無法做檢定 處理方式不一 ( 很難計算 )