Unit 3, topics 3.7 and 3.8 (one-sided z-test for a mean, sigma known)第 3 单元,主题 3.7 与 3.8(总体标准差已知的单侧均值 z 检验)
Type I error, Type II error, and power第一类错误、第二类错误与功效
Test H0: mu = 100 against Ha: mu > 100 with sigma = 15 known. The left curve is the sampling distribution of x-bar when H0 is true; the right curve is the one when the true mean is larger. Reject H0 when x-bar lands beyond the cutoff. The dark area is alpha, the maroon area is beta, and power is everything else under the right curve.检验 H0:mu = 100 对 Ha:mu > 100,已知 sigma = 15。左侧曲线是 H0 成立时 x-bar 的抽样分布;右侧曲线是真实均值更大时的抽样分布。当 x-bar 落在临界值右侧时拒绝 H0。深色面积为 alpha,栗色面积为 beta,右侧曲线下其余部分为功效。
Controls控制
The same seed and settings always reproduce the same picture. Keyboard: Tab to a button, then press Enter or Space.相同的种子与设置总会得到相同的图形。键盘操作:用 Tab 移到按钮,再按 Enter 或空格。
Results结果
- Sampling distribution if H0 is true (mu = 100)H0 成立时的抽样分布(mu = 100)
- Sampling distribution at the true mean真实均值下的抽样分布
- alpha: reject H0 although it is true (Type I)alpha:H0 为真却拒绝(第一类错误)
- beta: fail to reject although H0 is false (Type II)beta:H0 为假却未拒绝(第二类错误)
| Quantity量 | Simulated模拟值 | Exact value精确值 |
|---|
Raise alpha: beta falls提高 alpha:beta 下降
| alpha | beta | Power功效 |
|---|
A larger alpha moves the cutoff left, so more of the true curve is rejected. Beta shrinks, but the chance of a Type I error grows.alpha 变大会使临界值左移,真实曲线下被拒绝的部分变多。beta 变小,但第一类错误的概率变大。
Raise n: power rises增大 n:功效上升
| n | beta | Power功效 |
|---|
A larger n shrinks sigma/sqrt(n), so both curves get narrower and overlap less. Power rises while alpha stays fixed.n 变大使 sigma/sqrt(n) 变小,两条曲线都变窄、重叠变少。alpha 不变而功效上升。
The decision rule决策规则
Reject H0 when x-bar > (z* = , SE = ).当 x-bar > (z* = ,SE = )时拒绝 H0。
Exact values use the normal distribution. Simulated values come from 2,000 seeded samples drawn under each curve; they wobble around the exact values. Synthetic teaching data; no network needed.精确值使用正态分布。模拟值来自在每条曲线下各抽取的 2,000 个带种子的样本,会围绕精确值波动。 合成教学数据,无需联网。