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

Similar documents
)

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

: p Previous Next First Last Back Forward 1

Microsoft Word - A doc

untitled

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

Microsoft Word doc

spss.doc

PowerPoint Presentation

Microsoft Word - 第四組心得.doc

ENGG1410-F Tutorial 6

TA-research-stats.key

mm 5 1 Tab 1 Chemical composition of PSB830 finishing rolled rebars % C Si Mn P S V 0 38 ~ 1 50 ~ 0 80 ~ ~

: Previous Next First Last Back Forward 1

Microsoft PowerPoint _代工實例-1

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

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

參 加 第 二 次 pesta 的 我, 在 是 次 交 流 營 上 除 了, 與 兩 年 沒 有 見 面 的 朋 友 再 次 相 聚, 加 深 友 誼 外, 更 獲 得 與 上 屆 不 同 的 體 驗 和 經 歴 比 較 起 香 港 和 馬 來 西 亞 的 活 動 模 式, 確 是 有 不 同 特

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

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

Untitled-3

third in 20 years. The student population will be in the range of million before Keywords education age population family planning

《分析化学辞典》_数据处理条目_1.DOC

untitled

续断60 克(酒浸一夜

: p Previous Next First Last Back Forward 1

基礎統計

mode of puzzle-solving

HPM 通 訊 第 八 卷 第 二 三 期 合 刊 第 二 版 數 學 歸 納 法 是 什 麼 玩 意 兒 中 原 大 學 師 資 培 育 中 心 楊 凱 琳 教 授 一 數 學 歸 納 法 不 同 於 歸 納 法 數 學 歸 納 法 在 數 學 知 識 的 領 域 中, 是 屬 於 基 本 原 理

PowerPoint Presentation

,, :, ;,,?, : (1), ; (2),,,, ; (3),,, :,;; ;,,,,(Markowitz,1952) 1959 (,,2000),,, 20 60, ( Evans and Archer,1968) ,,,

% % * ~ 14 % 15~ 64 % 65 %

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>

列印

曹美秀.pdf

Microsoft Word - p11.doc

2. 熟 读 题 目 3. 积 累 核 心 句 式 4. 列 出 每 道 题 的 提 纲 5. 构 造 各 部 分 的 论 证 模 板 6. 全 文 练 习 10 到 20 篇 文 章 如 何 分 析 Argument 题 目 1. Argument 题 目 的 文 字 结 构 1) 题 目 的 出

Introduction to Hamilton-Jacobi Equations and Periodic Homogenization

36 监 管 与 会 计 口 径 差 异 下 的 贷 款 拨 备 率 达 标 及 监 管 研 究 总 第 44 期 失 准 备 金 是 指 商 业 银 行 在 成 本 中 列 支 用 以 抵 御 贷 款 风 险 的 准 备 金, 不 包 括 在 利 润 分 配 中 计 提 的 一 般 风 险 准 备

A Community Guide to Environmental Health

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

\\Lhh\07-02\黑白\内页黑白1-16.p

Microsoft PowerPoint - NCBA_Cattlemens_College_Darrh_B

中 國 學 研 究 期 刊 泰 國 農 業 大 學 บ นทอนเช นก น และส งผลก บการด ดแปลงจากวรรณกรรมมาเป นบทภาพยนตร และบทละคร โทรท ศน ด วยเช นก น จากการเคารพวรรณกรรมต นฉบ บเป นหล

2015年4月11日雅思阅读预测机经(新东方版)

C o n t e n t s Acceptance Allow Love Apologize Archangel Metatron Archangel Michael Ask for

受訪者編號:

CDD全文文件水印保护

CDD全文文件水印保护

摘 要 張 捷 明 是 台 灣 當 代 重 要 的 客 語 兒 童 文 學 作 家, 他 的 作 品 記 錄 著 客 家 人 的 思 想 文 化 與 觀 念, 也 曾 榮 獲 多 項 文 學 大 獎 的 肯 定, 對 台 灣 這 塊 土 地 上 的 客 家 人 有 著 深 厚 的 情 感 張 氏 於

% % % % % % ~


%

:

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


董 事 長 的 話 時 間 總 是 如 此 低 調, 用 一 秒 又 一 秒 極 微 小 的 腳 步, 隱 蔽 它 不 斷 前 進 的 聲 息, 直 至 新 年 到 來, 才 讓 人 察 覺 一 年 的 時 光 竟 已 悄 然 流 逝, 來 到 了 終 點 這 期 電 子 報 正 值 新 年 之 始

untitled


前 言

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


高中英文科教師甄試心得

穨series019-IA.PDF

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

The Development of Color Constancy and Calibration System

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

1

(2002) Gartner Group Toelle and Tersine(1989) VMI (1998) (VMI,Vender-Managed Inventory) (2003) (VMI,Vender-Managed Inventory) VMI AHP VMI - 133

2

川 外 250 人, 上 外 222 人, 广 外 209 人, 西 外 195 人, 北 外 168 人, 中 南 大 学 135 人, 西 南 大 学 120 人, 湖 南 大 学 115 人, 天 外 110 人, 大 连 外 国 语 学 院 110 人, 上 海 外 事 学 院 110 人,

K301Q-D VRT中英文说明书141009

穨control.PDF

27 11/9 ( ) 2

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

2013年度西藏自治区教育厅

實用文格式大全.doc

薛 秦 高 继 宁 宋 明 锁 文 洪 梁 瑞 敏 贾 跃 进 内 蒙 古 自 治 区 (3 人 ) 琪 格 其 图 米 子 良 赵 震 生 辽 宁 省 (8 人 ) 田 素 琴 白 凤 鸣 肖 瑞 崇 黄 恩 申 白 长 川 杨 世 勇 李 敬 林 王 秀 云 吉 林 省 (5 人 ) 赵 继 福

个 小 小 的 乡 下 人 木 匠 的 儿 子, 竟 然 有 这 么 大 的 力 量 其 实 就 是 这 点, 祂 活 出 来 的 那 种 爱, 是 世 界 上 没 有 的 祂 活 出 来 的 爱 是 世 界 上 的 人 都 需 要 的, 但 却 是 人 人 在 这 个 世 界 上 都 得 不 到

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

经济学基础 Essentials of Economics

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

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

瑏瑠 瑏瑠

中國的科學與中國的公民:大陸研究在台灣的困境\\

14052_公開用.pdf

#!! +!,! # &!. / !!, 7!!, & #! % 7! % )

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

# 7 % % % < % +!,! %!!

《儿童少年卫生学》教学大纲

PDFᅲᆰᄏ커￷

威 福 髮 藝 店 桃 園 市 蘆 竹 區 中 山 里 福 祿 一 街 48 號 地 下 一 樓 50,000 獨 資 李 依 純 105/04/06 府 經 登 字 第 號 宏 品 餐 飲 桃 園 市 桃 園 區 信 光 里 民

勇 于 探 索, 优 化 创 新, 更 上 一 层 楼 摘 要 2014 夏 季 学 期 和 秋 季 学 期, 我 继 续 担 任 基 因 与 人 课 程 的 助 教 这 份 深 度 报 告 详 细 记 录 了 我 的 助 教 工 作 的 全 部 内 容 与 成 果 全 文 以 详 实 的 文 字

從詩歌的鑒賞談生命價值的建構

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

"航海王"人物人格特質探究doc

Microsoft Word - 論文封面 修.doc

医学科研方法

〇〇考區105年國中教育會考簡章

untitled

Transcription:

Hypothesis Testing - review The null hypothesis (H 0 ) and the alternative hypothesis (H 1 ) Type I error: rejecting H 0 when H 0 is true Type II error: failing to reject H 0 when H 1 is true (H 0 is false) A test is a decision rule that states when to rejct H 0 based on a statistic. A statistic is a quantity that can be computed based on the data. The size of a test is the largest Type I error probability for the test. When the size of a test is less than or equal to α, we say that the test is of level α. We cannot require both Type I error probabilities and Type II error probabilities to be arbitrarily small. 決定 H 0 Example 1. 1. Suppose that the weight of a can of coke (in ounces) is N(31.2, 0.4 2 ) distributed using the conventional production process. 2. Suppose that some changes have been made in the production process and the weight distribution is N(µ, 0.4 2 ). 3. Check the weights of the next 16 cans of cokes. Sample mean X: 31.02. 4. We want to know whether µ < 31.2. 5. We want to control the probability that we deduce that µ < 31.2 based on the sample when µ 31.2. Which statement should be H 0, µ < 31.2 or µ 31.2? One sample z test. Data: (X 1,..., X n ), a random sample from N(µ, σ 2 ) σ is known. Three testing problems. H 1 : µ µ 0, µ > µ 0 or µ < µ 0. Test statistic: Z = n( X µ 0 )/σ. At level α, the one sample z test rejects H 0 : µ = µ 0 if Z > z α/2 ; H 0 : µ µ 0 if Z > z α ; H 0 : µ µ 0 if Z < z α. Example 2. Suppose that Assumptions 1 3 hold in Example 1. Can we conclude that µ < 31.2 at level 0.05? 1

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 can reject H 0 at level α. If p-value > α, then the test cannot reject H 0 at level α. Suppose that a test rejects H 0 level α whenever Z > z α/2 p-value = 2P (N(0, 1) > observed Z ); whenever Z > z α p-value = P (N(0, 1) > observed Z); whenever Z < z α p-value = P (N(0, 1) < observed Z); Intepreting the p-value. p-value < 0.1 some evidence against H 0. p-value < 0.05 strong evidence against H 0. p-value < 0.01 very strong evidence against H 0. p-value < 0.001 extremely strong evidence against H 0. 可樂問題. 正常製程下, 每瓶可樂重量 ( 以 ounce 計 ) 分布為 N(31.2, 0.4 2 ). 假設新產出的可樂每瓶重量分布為 N(µ, 0.4 2 ). Sample: 新產出的 16 瓶可樂重量. Sample mean X: 31.38. 想知道 : 是否有強烈證據顯示目前製程裝較多可樂 (µ > 31.2). Sol. 考慮以 one sample z test 檢定 H 0 : µ 31.2 versus H 1 : µ > 31.2, 並根據 p-value 判斷是否有強烈證據支持 H 1 : µ > 31.2. One sample z test rejects H 0 : µ 31.2 at level α 的條件為 Z def 16( X 31.2) = > z α, 0.4 且觀察到的 Z 統計量為 16(31.38 31.2)/0.4 = 1.8. 因此 p-value 為 P (N(0, 1) > 1.8) = 0.5 0.4641 = 0.0359. 0.0359 < 0.05, 所以有強烈證據顯示目前製程裝較多可樂. One sample t test. Data: (X 1,..., X n ), a random sample from N(µ, σ 2 ) σ is unknown. Three testing problems. H 1 : µ µ 0, µ > µ 0 or µ < µ 0. 2

Test statistic: T = n( X µ 0 )/S. At level α, the one sample t test rejects H 0 : µ = µ 0 if T > t α/2,n 1 ; H 0 : µ µ 0 if T > t α,n 1 ; H 0 : µ µ 0 if T < t α,n 1. 可樂問題. 正常製程下, 每瓶可樂重量 ( 以 ounce 計 ) 分布為 N(31.2, σ 2 ), σ 未知. 假設新產出的可樂每瓶重量分布為 N(µ, σ 2 ). Sample: 新產出的 16 瓶可樂重量. Sample mean X 為 31.38, sample standard deviation S 為 0.4. 想知道 : 是否可在 0.05 顯著水準下, 推論目前製程裝較多可樂 (µ > 31.2). Sol. 考慮以 one sample t test 檢定 H 0 : µ 31.2 versus H 1 : µ > 31.2, One sample t test rejects H 0 : µ 31.2 at level α 的條件為 16( X 31.2) T = > t α,16 1 = t α,15. 0.4 今 α = 0.05, t α,15 = t 0.05,15 = 1.753 且觀察到的 T 統計量為 16(31.38 31.2)/0.4 = 1.8 > t 0.05,15. 因此可在 0.05 顯著水準下推論目前製程裝較多可樂. Approximate z test for testing for population proportion. Data: (X 1,..., X n ), a random sample from Bin(1, p) Three testing problems. H 1 : p p 0, p > p 0 or p < p 0. Test statistic: Z n = n( X p 0 )/ p 0 (1 p 0 ). At level α, the test rejects H 0 : p = p 0 if Z n > z α/2 ; H 0 : p p 0 if Z n > z α ; H 0 : p p 0 if Z n < z α. 陪審團成員挑選是否公平問題 ( 取自 : 看漫畫學統計 ). 陪審團成員由合格公民中選出. 合格公民中有一半為非裔. 選出的 80 位陪審團成員中, 有 4 位為非裔. 想知道 : 是否有強烈證據顯示陪審團成員挑選並不公平 ( 挑中非裔成員機率 = p < 0.5). 3

Sol 1. 令 X 為選出的 80 位陪審團成員中, 非裔成員個數. 考慮使用 approximate z test 檢定 H 0 : p 0.5 versus H 1 : p < 0.5 並依 p-value 判斷是否有強烈證據顯示陪審團成員挑選並不公平. 當 Z n = 80( X 0.5)/ 0.5(1 0.5) < z α 時, approximate z test 在顯著水準 α 下拒絕 H 0 : p 0.5. 觀察到的 Z n = 80(4/80 0.5)/ 0.5(1 0.5) = 8.049845. p-value = P (N(0, 1) < 8.049845) < P (N(0, 1) < 3.09) = 0.001. p-value < 0.001, 有非常強烈證據顯示陪審團成員挑選並不公平. Sol 2. Using an exact test for testing H 0 : p 0.5 versus H 1 : p < 0.5 based on X, and compute the p-value to see if there is a strong evidence against H 0. Exact test rejects H 0 at level α whenever 80 X C α, where C α is the largest integer such that P (Bin(80, 0.5) C α ) α. Let p v = P (Bin(80, 0.5) observed 80 X) = P (Bin(80, 0.5) 4), then the test can reject H 0 at level α if α > p v and the test cannot reject H 0 at level α if α < p v. Since the p-value is p v = P (Bin(80, 4) 4) = 1.378894 10 18 < 0.001, there is a very strong evidence that the selection is unfair (p < 0.5). Testing for σ. Suppose that (X 1,, X n ) is a random sample from N(µ, σ 2 ). Let S be the sample standard deviation. Consider the testing problem H 0 : σ σ 0 v.s. H 1 : σ > σ 0. Consider the test that rejects H 0 at level a whenever (n 1)S 2 > k a,n 1, where k a,n 1 is the (1 a) quantile for χ 2 (n 1). Then the test is of size a. Example 3. Suppose that we have a random sample of size 61 from N(µ, σ 2 ) and the sample standard deviation is 11. Can we conclude that σ > 10 at level 0.05? Sol. Use the test that rejects H 0 : σ 10 at level a whenever (n 1)S 2 > k a,n 1, 4

where k a,n 1 is the 1 a quantile for χ 2 (n 1). The observed test statistic is (n 1)S 2 (61 1)112 = 10 2 = 72.6 and k a,n 1 = k 0.05,60 = 79.082 > 72.6, so we cannot conclude that σ > 10 at level 0.05. 5