11.兩組資料的比較: 針對母體平均數及成功率
|
|
|
- 缇 弘
- 7 years ago
- Views:
Transcription
1 . 兩 料 數 ( 率 (
2 料 連 兩 數 Q : 女 異 女 料 數 { 女 } 連 女 女 女
3 女 女 女 女? 3
4 料 (biary{ } 兩 率 Q : all pass 女 all pass 例 兩 女 料 Y {all pass, ot all pass} all pass 女 女 all pass 女 all pass 4
5 all pass 例 S/F 女 all pass 例 女 S/F 女 S F S F 女? 5
6 兩 兩 立 例 vs 女 立 6
7 兩 立 女 女 女 立 女 女? 7
8 立. Before-After : 不 例 降 兩 料 8
9 立 : before-after 0? 9
10 立. Match-pair : 類 例 療 療 料 不 降 0
11 立 : match pair 女 女 女 0?
12 Goals: PART I. Two idepedet samples A : Comparig populatio meas(cotiuous data Case I. Normal+kow variaces z-test. Case II. Large sample sizes z-test. Case III. Normal+ukow equal variaces t-test. B : Comparig populatio proportios (biary data Large sample sizes z-test! PART II. Two depedet samples Testig the populatio mea differece DiffereceD-~sigle populatio. Normal+ukow variace. t-test(cotiuous data
13 Recall the statistical iferece i sigle populatio, Iferece about populatio mea :. Poit estimate :. Samplig distributio of Mea Variace, SE( σ / Distributio : Normal, or approimately ormal, or t-distributio A stadardized statistic : Z / t ( µ SE( ~ N(0, / t ( 3. Costruct cofidece iterval of based o the statistic : z or t α / α / SE( SE( µ + z µ + t α / α / SE( SE( Why? How? 3
14 4. Testig 0 : Test statistic : based o the stadardized statistic ( µ 0 poit estimate -µ 0 Z / t SE( SE(poit estimate Rejectio regio : based o the samplig distributio Uder H, Z / t ( µ SE( 0 0 ~ N(0, / t ( 4
15 Now for comparig two populatios, Iferece about populatio meas differece, µ :. Poit estimate : µ. Samplig distributio of Mea µ µ Stadard error SE( σ / + σ / Distributio : Normal, or approimately ormal, or t-distributio A stadardized statistic : Z / t ( ( µ ~ N(0, / t ( SE( If populatio variaces are equal, a pooled estimate is cosidered. 3. Costruct cofidece iterval of based o the statistic : µ µ µ ( ± zα / / t v, α / SE( 5
16 4. Testig µ µ : µ D0 Test statistic : based o the stadardized statistic ( 0 poit estimate µ D? SE(po it estimate Rejectio regio : based o the samplig distributio (poit estimate µ D0 Uder H0, SE(poit estimate ~? 6
17 PART I : Two idepedet samples A comparig meas ~populatio, ~populatio, 料 µ D µ µ? (,s,(,s, µ ˆ D, ~? 7
18 8 D s s s s s, 3.SE( s s s.variace.mea + + σ + σ σ + σ σ σ + σ + σ + σ σ σ µ, ˆ D µ ( 若 異數 ~? ˆ D µ ( 若 異數
19 9 Samplig distributio of Case I : Normal populatios + s kow Data : Result : N(0, ~ ( ( SE( ( (.Z, N( ~. D σ µ µ µ µ + σ σ σ µ µ µ,,,(,, ( σ σ σ σ σ σ, ˆ D µ
20 0 Case II 30 kow/ukow Data : Result : N(0, ( ( s ( (.Z, N(.CLT d D d σ µ µ µ µ + σ σ σ µ µ µ s,s,s,( s,s,s (
21 Eample. (P357~358 The samplig distributio of the differece i the mea hourly wage rates of the plumbers(p sample ad electricias(e sample? Assume meas ad sds of the populatioa are kow through cesus. P: ~ 30, 4.5, variace( E: ~ 9, 4.5, variace(
22 If idepedetly take two radom samples P : 40>30, by CLT, SE ( σ / 0.5/ (0.7 d N(30,(0.7 E : 35>30, by CLT, SE ( σ / 0.5/ (0.76, d N(9,(0.76
23 Samplig distributio of mea var iace µ µ σ 30 9 σ d N(,(.04 σ (.04 See Table - : 0 sample differeces 3
24 µ, σ 0.5 µ, σ Theoretically, d N(,.04 4
25 Table. µ 30, σ 0.5 µ 9, σ d " N(, " Based o 0 samples to validate the theoretical result : 5
26 µ 6
27 . Bous(% : TABLE - 料 0 料 Plumbers ( µ ± k(se( 30 ± k(0.7,k 0,, Electricias ( µ ± k (SE( 9 ± k(0.76,k Differece ( ± k(se( µ 0,, ± k(.04,k 0,, (histogram (empirical rule 7
28 Testig populatio meas for case I ad case II, Z-test. Step. State the hypotheses: o differece vs differece H : µ µ 0 vs H : µ µ 0 0 H : µ µ 0 vs H : µ µ 0 > 0 H : µ µ 0 vs H : µ µ 0 < 0 Step. Determie the sigificace level for type I error rate: 論 0.0 論 0.05 論 0. 8
29 9 Step 3. Test statistic: Case I. Normal populatios + s kow Case II. Sample sizes 30, s (ukow 0 ( SE( 0 ( Z σ + σ S S ( ( SE( ( Z + σ + σ
30 Step 4. Decisio rule the rejectio regio is 若 : µ µ 0 Z z / H 若 : µ µ 0 Z z H > 若 H : µ µ < 0 Z -z Step 5. 料 Z 論 30
31 若 料 z 0 p-value H : µ µ 0 vs H : µ µ p-value P( Z > z H : µ µ 0 vs H : µ µ p-value P( Z > z 0 0 > 0 H : µ µ 0 vs H : µ µ p-value P( Z < z 0 0 < 0 論 若 p-value 3
32 Eample.(p358 Q : Is it reasoable to coclude the mea checkout time is reduced for usig the U-sca? Q : p-value? s mea checkout time for the stadard method u mea checkout time for U-sca H : s > u 0.0 Data : Customer type (miutes s sample size Stadard U-Sca
33 Step. State hypotheses : H 0 : s u vs H : s > u Or equivaletly, H 0 : s u 0vs H : s u >0 Step. Select sigificace level : 0.0 Step 3. Determie the test statistic : s, u 30, Z (s S Step 4. Formulate a decisio rule : z > z s u u ( s S s s u S + u u 33
34 Step 5. Coclusio : The ull hypothesis is rejected at 0.0,. sice z (s u > Ss Su s u.33. Or, sice the p-value ca be foud i Appedi D, P(Z > 3.3 < P(Z > < 0.0 P-value <
35 Case III. Normal populatios, small sample sizes, ukow equal variaces, σ σ t-test Assumptios : Populatios :. Normal distributios. Ukow equal variaces P A pooled estimate,, for the commo variace. S P Samples : Small sample sizes σ σ σ Q : Costruct a 00(- % cofidece iterval for i this case. ( ± t SE( ( ± t (+, α / (+, α / S p ( µ µ + 35
36 36 Test statistic : t-test Uder H0, t ~ t-distributio with df ( -+( ( S ( S S ( SE( ( t p p p + +
37 Variace estimate S P? A pooled estimate weighted average of S, S S p ( S + ( S ( + ( ( + ( ( + ( Why d.f.(+-? There are (- d.f. i S. There are (- d.f. i S. Totally, there are (+- i Sp. 37
38 Eample. (367 vs. Q : Is there a differece i the mea time to mout the egies o the frames of the lawmowers? Q : 不 異 0., Assume ormal populatios ad equal variaces Data : Procedure data (miutes s sample size, 4, 9, 3, , 7, 5, 8, 4, s are small! 38
39 Step. State hypotheses : H 0 : vs H : Or equivaletly, H 0 : - 0 vs H : 0 Step. Select sigificace level : 0. 39
40 40 Step 3. Determie the test statistic :, < 30, ormal populatios with ukow equal variaces T-test Step 4. Formulate a decisio rule : Two-sided t-test Df t t 9, or t -t 9, ( ( ( S S S t p p p + +
41 Step 5. Collect data, calculate t-value, Sample meas : Sample s.d.s : 4, S S ( ( 5 /( /( (.955 (.0976 Pooled sample variace S P ( 6. S + ( S + (5 (.9 + (6 (
42 T-value t S ( p (.833 < Coclusio : ( 5 t 0.66 < Not to reject the ull hypothesis of o differece at 0. There is o differece i the mea times by usig the two methods
43 Alteratively, the p-value ca be foud i Appedi F. Sice 0.6 > -.383, p-value >0. Not reject ull hypothesis at 0. 43
44 P-value > 0. 44
45 B. Statistical iferece of two populatio proportios Recall a populatio proportio :. Poit estimate : p π. Samplig distributio of p Mea π Stadard error SE(p Distributio : approimately ormal, -- coditios? A stadardized quatity: Z (p π SE(p σ p p π π( π π( π d N(0, p( p 45
46 3. A approimate 00(- % cofidece iterval of p( p p ± zα / SE(p p ± zα / π 4. Testig ( p π H 0 : π ( p π π π ( 0 Z σ p π π 0 π 0 ( p π ( or ( p π p ( p π H0 46
47 B. Statistical iferece of two populatio proportios populatio proportios differece π :. Poit estimate : p-p π. Samplig distributio of p-p Mea π π Stadard error, SE(p - p σ p + σ p π( π + π ( π Distributio : approimately ormal, -- coditios? A stadardized statistic : (p p ( π π (p p ( π π d Z N(0, SE(p p π( π π( π + 47
48 3. Costruct cofidece iterval of based o the statistic. π π π π πd0 4. Testig : Test statistic : based o the stadardized statistic ( 0 poit estimate π D SE(po it estimate? Rejectio regio : based o the samplig distributio (poit estimate πd0 Uder H0, ~? SE(poit estimate 48
49 I testig two populatio proportios, : π π or H : π π H0 0 whe, 30, a Z-test is cosidered. 0 Z (p p 0 SE(p p π ( π (p p + π ( π p c ( p (p c p + p c ( p c where p: sample proportio i sample ; p: sample proportio i sample ; pc: the pooled, estimated proportio uder H0 49
50 Uder ull hypothesis, there is a commo populatio proportio. π a pooled estimate. The pooled estimated proportio is p c π p + + : the umber of successes i sample ; : the umber of successes i sample. + the total umber of successes i the two samples. + the total sizes i the two samples p
51 Eample. P363 A ew perfume amed Heavely is developed. The sales departmet is iterested i whether there is a differece i the proportios of youger ad older wome who would purchase Heavely if it were marketed. There are two idepedet populatios : youger, older wome Each sampled woma will be asked to smell Heavely ad idicate whether she likes the perfume or ot. 5
52 Problem : age vs. preferece Step. State the hypotheses H 0 : o differece vs H : differ Y purchase rate of youg wome O purchase rate of elder wome H 0 : Y O vs H : Y O Step. Select the sigificace level, 0.05 Step 3. Determie the test statistic Y 00, O 00, large sample sizes, a Z-test is used. Z (p p σ P P pc( pc pc( (p p + p c 5
53 Step 4. Formulate the decisio rule. A two-sided test, Z-test is used, Sigificace level 0.05, Thus, the ull hypothesis will be rejected if z z or z -z
54 Step 5. Collect data ad compute Z-value ad make a decisio. Sample proportios : Y 00, Y 0, p Y 0/000. O 00, O 00, p O 00/000.5 Pooled proportio : p c (0+00/( The Z-value is Z Coclusio : sice z-5<-.96, the ull hypothesis is rejected at Q : p-value? p (p ( p 5 <.96 c Y c p + O p c ( p c 0.4( ( (
55 Note : alterative z-test Similarly, i testig H0 : π π d whe, 30, a Z-test is cosidered. Z (p p d SE(p p (p p σ d (p P P p( p p( p + d p where p: sample proportio i sample ; p: sample proportio i sample ; 55
56 PART II. Two depedet samples Depedet samples, related samples, paired samples Two kids of ivestigatio :. Before-After : 不 例 vs 量. Match pair : 類 例 56
57 Origial data set: paired samples Hypothesis testig : 0 : Data process: for each pair, calculate D- Processed data set: a sample of D s µ µ Hypothesis testig: let H µ µ H D µ : µ 0 a sigle populatio/sample 0 D problem Pair -D Summary statistics, s ( (, s ( D, s D 57
58 Assumptios : Paired differece : D ~ N( µ D, σ D σ D ukow; The problem is simplified to a sigle populatio case, testig H0 : µ D 0 Whe is ot large, a t-test is used. t S D D / where t-test has d.f.(-; ( D,s is the sample mea ad s.d. D based o the observed differeces (D,, D 58
59 Eample. P37 Nickel Savigs ad Loa wishes to compare the two compaies they use to appraise the value of residetial homes. Eperimet : Nickel Savigs selected a sample of 0 residetial properties ad scheduled both firms for a appraisal. The results are give i et page. At the 0.05 sigificace level, ca we coclude there a differece i the mea appraised values of the homes. 59
60 Origial data: paired samples Home
61 Step. State the hypotheses H0 : o differece, H : differ, that is H0 : µ D 0 vs H : µ D 0 Step. Select the sigificace level 0.05 Step 3. Select the test statistic, Assumptio : the differece, D, follows a ormal distributio. Sice the sample size 0 <30, ukow populatio variace, a t-test is used. t S D D / 6
62 Step 4. Formulate the decisio rule. A two-sided test A t-test, with df -0-9, The sigificace level 0.05, by Appedi F H0 will be rejected at 0.05, if t t 9, or t -t 9,
63 New data set Home -D D ( /0 4.6 sd [( ( (4 4.6 ]/(
64 Step 5. Collect data, calculate t ad draw coclusio. Sice D 4.6,s D 4.40, 0 t S D D / / >.6 Coclusio : the ull hypothesis of o differece is rejected at Note that sice 3.5<3.305<4.78, 0.00<P-value <
65 65
66 ECEL : home Schadek Bowyer 數 異 數 異數 S 數 數 數 度 臨 P-value 臨 66
67 Q : why i previous case, for two idepedet samples, we ca t have such simplificatio? No correspodig pair eists. Q : why uses depedet samples? To reduce variatio. Eample. 療 若 兩 立 不 3 兩 量 量 異 來 :.. 易 異 來 來 67
68 ECEL 料 z 兩 數 異 t 兩 數 異 異數 t 兩 數 異 異數不 t 數 異 68
69 Eercise. Clarify ad add the adequate coditios for the method you use i the eercise. Try to use ECEL for the eercises with large data sets. Two idepedet samples Cotiuous data : 3, 5, 33, 37, 47(ECEL, 48(ECEL Biary data : 9, 3, Two depedet samples 4, 45 69
untitled
金 度 金 度 金 度 金 度 契 列 行 行 行 利 列 行 年 來 利 率 見 年 金 金 列 見 類 金 理 不 利 率 列 不 金 不 金 立 理 金 列 理 行 金 理 利 率 度 不 金 不 列 類 量 類 不 不 類 列 金 來 利 來 金 來 累 列 不 金 立 理 金 金 力 金 不 1/25 列 不 不 金 立 不 領 金 列 不 金 金 金 金 立 理 利 列 力 力 離 列
STANDARD
精 行 例 119 例 2004 年 2004 年 精 錄 1. 1 2. 1 3. 1 4. 1 5. 連 2 6. 2 7. 2 8. 2 9. 2 10. 2 11. 錄 3 律 12. 3 13. 律 3 14. 3 15. 3 16. 3 17. 數 3 18. 3 19. 4 20. 4 數 i 2004 年 精 六 21. 22. 4 23. 4 24. 4 25. 利 率 4 26.
untitled
理 力 理 類 CNHA93-01 力 理 (1) 歷 歷 力 (1) (1) 行 93 年 1 1 93 年 12 31 行 理 理 94 年 2 28 摘要 歷 歷 度 歷 歷 行 歷 年 歷 歷 度 歷 度 歷 歷 行 歷 歷 歷 歷 精 歷 歷 歷 歷 異 立 例 關鍵詞 歷 歷 歷 錄 歷 歷 理 浪 力 年來 歷 療 不 力 歷 立 療 歷 年 立 讀 歷 歷 臨 行 理 療 來 來 療
untitled
什 ~ 什 ~ 異 塞 裂 療 ~ 行 刺 療 刺 刺 不 什 若 刺 來 說 不 數 ~ 刺 量 亂 刺 刺 異 狀 復 什 ~ 例 率 不 了 不 不 ~ 刺 利 不 例 不 良 狀 異 970429 ~ 量 流 降 金 鍊 若 臨 970429 量 狀 了 臨 良 便 便 便 狀 臨 量 漏 不 不 不 流 臨 利 行 量 不 粒 流 若 臨 970429 度 流 念 女 都 度 了 度 罹
十四、特殊需求的嬰兒
1. 糖 2. 什 3. 什 例 療 都 1. 糖 糖 糖 度 狀 糖 連 糖 糖 降 糖 度 異 糖 立 糖 列 療 類 兩 類 37 療 36 5~4.5kg 數 appropriate for gestational age, AGA 1 APGAR 6 糖 尿 利 若 糖 尿 糖 良 力 糖 立 勵 不 糖 量 降 糖 療 不 料 切 36 糖 尿 2500 異 Beckwith-Weidmann
中華民國第45屆中小學科學展覽會
說 DIY DIY 老 說 來 料 年 流 行 裡 說 度 1. 2. 識 錄 3. 不 異 度 4. 度 數 數 寧 寧 酪 度 數 識 立 力 不 1 B K B1 量 不 易 拉 了 酪 降 率 療 降 率 老 不 糖 糖 量 度 度 料 理 度 若 狀 冷 量 量 例 冷 冷 量 量 例 糖 度 料 理 度 不 不 度 不 狀 冷 利 酪 來 便 酪 數 2 了 更 量 度 數 量 數 不
untitled
逸 老 年 1 錄 錄...I 錄...II... III... 1... 1... 1... 2... 4... 4... 4... 6... 7... 7... 7... 8... 9... 9...10 流... 11... 13...13...15...16...17... 21...21...21 度...27 論... 29...29 來...29 I 參 料... 30 料...30
PowerPoint Presentation
療 臨 理 北 理 1. 2. 3. 勞 老 狀 不 療 不 不 療 見 類 臨 了 見 類 類 女 異 老 見 不 數 復 X ( ) 類 類 女 ( ) 狀 見 ( ) 若 療 若 見 女 見 數 烈 路 見 1,, 便 2 若 不 理 48 兩 行 數 療 復 來 數 來 3 95 尿 度 ( 8.0mg/d1) 臨 尿 7.0mg/dl 女 6.0mg/dl 尿 不 狀 理 不 不 復 (
untitled
樂 更 年 更 年 女 理 路 更 年 41 60 年 49 更 年 六 泌 易 老 年 量 泌 尿 量 尿 易 更 年 更 年 不 不 量 易 怒 暈 陵 蓮 易 怒 女 力 更 隆 力 來 龍 蓮 暈 茶 葉 暈 綠 療 療 療 更 年 療 更 年 狀 度 療 不 異 卵 率 塞 狼 切 老 女 更 年 力 降 女 理 女 度 力 了 識 刺 六 列 更 年 狀 什 兩 說 療 療 更 年 列
認識[第2型]糖尿病
識 糖 尿 療 糖 尿 糖 尿 糖 尿 泌 糖 尿 六 糖 尿 糖 尿 療 糖 尿 療 糖 尿 療 糖 尿 糖 尿 糖 異 糖 度 降 不 不 良 糖 度 糖 尿 來 糖 尿 糖 尿 糖 尿 年 糖 尿 狀 糖 糖 糖 糖 糖 尿 類 糖 尿 年 來 類 糖 尿 糖 尿 糖 尿 異 糖 尿 糖 尿 糖 尿 糖 尿 年 糖 糖 尿 數 糖 糖 糖 糖 不 良 糖 糖 不 良 糖 尿 糖 尿 糖 尿 糖
untitled
拾 - 1567 - 六 年 行 年 行 年 行 年 行 年 六 行 令 六 年 六 六 行 六 參 六 令 年 行 令 年 六 行 六 六 令 年 行 六 令 年 行 令 年 六 六 行 六 令 年 六 行 令 年 六 行 六 令 六 例 列 年 年 數 數 療 年 女 理 理 數 年 不 年 年 行 不 留 流 流 流 流 流 流 流 例 六 女 年 數 年 數 例 例 列 參 參 - 1568
正確的姿勢 — 疾病疼痛不上身
了. 北 理 臨 理 不 老 易 李 了 神 什 神 神 神 神 療 神 復 什 神 神 神 神 神 不 不 了 狀 了 不 來 了 不 流 來 狀 都 神 神 神 神 神 來 流 不 異 狀 神 神 不 不 兩 都 神 神 神 神 見 狀 神 不 神 (Bell s s palsy) 冷 不 說 (Herpes simplex) 論 若 狀 神 狀 狀 神 狀 不 了 不 不 不 不 亮
97 CT試題補充(教師版).pdf
Appendix Computed Tomography (CT) X-ray Computed Tomography (I) Physical Principle and Data Acquisition Concepts Types of CT Scanners 列 切 數 輻 量 量 療 不 見 列 不 異 度 度 量 來 理 來 數 理 切 2 Basic Component of CT Scanners
untitled
1 例 21(6)(d) 樓 臨 狀 良 例 16(1)(b) 例 95 例 ( ) 例 10 類 行 令 列 樓 度 樓 論 1.1 行 1.2 行 1.3 1.4 便 ( 不 ) 聯 便 行 聯 1.5 錄 1.6 若 便 1.7 不 便 便 行 1.8 (F.S.172) 便 聯 不 便 1.9 便 1.10 樓 臨 12 樓 行 2 1.11 樓 理 年 連 樓 1.12 樓 理 便 ( 樓
Microsoft Word - hko2005-2006 C_for pdf_final.doc
2005-2006 (1) (2) 輻 (3) 理 料 2005-06 年 度 零 年 度 283 20 2005 年 4 2006 年 3 2005-06 年 度 不 勵 異 III 錄 臨 更 紐 狀 2005 異 2005-06 連 年 金 樂 梁 狀 林 禮 異 樂 2006 年 聯 29 禮 了 利 識 禮 2006 年 1 13 行 聯 參 行 禮 理 列 2005 年 11 WMO 聯
untitled
Lactic acid bacteria 益 降 降 力 柳 料 行 量 柳 都 益 利 利 Lactic acid bacteria 益 例 降 降 力 柳 年 都 類 蘿 類 異 柳 料 行 量 度 了 Cream puff 柳 量 柳 益 料 料 糖 料 行 行 柳 爐 () 度 益 了 不 益 理 柳 柳 理 益 柳 數 理 柳 益 柳 理 益 柳 數 理 料 量 79 126 64 102
untitled
六 1 讀 99 年 度 1 靈 旅 56 說 亮 福 亮 福 讀 年 旅 淚 靈 年 立 靈 葉 流 3 - 讀 - 說 金 什 說 練 龍 立 領 讀 來 樂 力 力 若 年 路 什 了 讀 不 識 不 留 更 不 不 不 不 來 來 了 不 行 路 不 了 樂 留 落 了 樂 碌 碌 了 了 不 來 了 了 不 了 年 來 2 - 讀 - 金 來 了 力 年 老 年 樂 更 年 來 溺 碌 了
untitled
女 錄 老 不 易 例 來 年 老 老 數 裡 不 易 裡 裡 老 臨 力 來 裡 老 度 不 易 流 露 來 年 年 來 來 說 來 老 說 老 來 說 年 來 不 來 說 不 老 說 年 老 行 什 了 參 參 老 老 不 說 說 落 落 都 念 來 什 練 來 兩 老 參 了 不 了 參 識 料 都 了 老 來 什 什 什 都 不 說 說 老 裡 說 什 理 來 說 錄 邏 了 不 說 都 不
untitled
錄 100 年 5 31 2 ~5 30 樓 禮 錄 ( 列 ) 行 北 ( 列 )() 六 () () ( ) ( 料 ) () 參 見 () () ( 17:30) 100 年 6 7 () 立 女 來 參 福 來 了 切 福 輻 福 度 都 福 不 異 兩 年 羽 度 行 年 陸 度 年 4 行 年 10 量 兩 參 了 福 行 了 行 更 力 福 11 56 立 來 行 立 行 精 力 /
