← Back to Study Guide← 返回学习指南

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控制

Significance level alpha显著性水平 alpha
True mean (effect size)真实均值(效应大小)
Sample size n样本量 n

The same seed and settings always reproduce the same picture. Keyboard: Tab to a button, then press Enter or Space.相同的种子与设置总会得到相同的图形。键盘操作:用 Tab 移到按钮,再按 Enter 或空格。

Results结果

Simulated results next to the exact values (text version of the chart).模拟结果与精确值对照(图表的文字版)。
Quantity量Simulated模拟值Exact value精确值

Raise alpha: beta falls提高 alpha:beta 下降

Exact beta and power at the current true mean and n, for each alpha.在当前真实均值与 n 下,各个 alpha 对应的精确 beta 与功效。
alphabetaPower功效

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:功效上升

Exact beta and power at the current alpha and true mean, for each sample size.在当前 alpha 与真实均值下,各样本量对应的精确 beta 与功效。
nbetaPower功效

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 个带种子的样本,会围绕精确值波动。 合成教学数据,无需联网。